A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://microbit-micropython.readthedocs.io/en/v1.0.1/microbit.html below:

Website Navigation


Microbit Module — BBC micro:bit MicroPython 1.0.1 documentation

Microbit Module¶

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.


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