The microbit
module gives you access to all the hardware that is built-in into your board.
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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4