Microbit Module — BBC micro:bit MicroPython 1.0.1 documentation (original) (raw)
The microbit
module gives you access to all the hardware that is built-in into your board.
Functions¶
microbit.
panic
(n)¶
Enter a panic mode. Requires restart. Pass in an arbitrary integer <= 255 to indicate a status:
microbit.
reset
()¶
Restart the board.
microbit.
sleep
(n)¶
Wait for n
milliseconds. One second is 1000 milliseconds, so:
will pause the execution for one second. n
can be an integer or a floating point number.
microbit.
running_time
()¶
Return the number of milliseconds since the board was switched on or restarted.
microbit.
temperature
()¶
Return the temperature of the micro:bit in degrees Celcius.