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 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.
Displays selected arrows on an LED screen using Microsoft MakeCode.
Pause the program for a specified duration in milliseconds to control execution timing.
Learn how to use the forever loop to keep parts of your program running continuously in MakeCode.
Turn off all the LED lights on the LED screen using the basic.clearScreen() function.