Find how much the micro:bit is tilted in different directions using its accelerometer.
Measure the light level around you using the micro:bit's light sensor.
Get the acceleration value in milli g-force in three dimensions or combined force in all directions.
Learn how to measure temperature using the micro:bit and display it in Celsius or Fahrenheit.
Find whether the pin you say is pressed or not pressed.
Find which direction on a compass the micro:bit is facing.
Check if a button on the micro:bit is currently pressed, with examples and parameters.
Learn how to use the on pin pressed event handler for micro:bit to detect pin presses and trigger actions.
Learn how to use the on button pressed event handler for micro:bit programming.
Explore events and data from sensors in Microsoft MakeCode.
Pause the program for a specified duration in milliseconds to control execution timing.
Turn off all the LED lights on the LED screen using the basic.clearScreen() function.