#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!

Python Code

from microbit import *
while True:
    needle = ((15 - compass.heading()) // 30) % 12

EduBlocks Code

EduBlocks code


Final Words

Come back Tomorrow for another fun 5-minute micro:bit make

Series Navigation<< #MonthOfMaking Day 8#MonthOfMaking Day 10 >>

Leave a Reply