#MonthofMaking Day 9
March is all about MAKING!!
I have decided to take on the challenge of making a 5-minute micro:bit make every day throughout March.
Day09 – Fill The Screen
Today I have decided to use the built-in compass to turn the lights on the LED screen on by tilting the micro:bit. Let’s get coding!
from microbit import * compass.callibrate() while True: needle = ((15 - compass.heading()) // 30) % 12 display.show(Image.ALL_CLOCKS[needle])
Come back Tomorrow for another fun 5-minute micro:bit make