BBC micro:bit – In-flight compass

Click to enlarge
Click to enlarge

More of a novelty and very much work-in-progress as the video needs redoing with a sunshield so it’s clearer to see the LEDs, but here’s the micro:bit displaying points of the compass.

It’s a long sequence of if & elseif statements dividing up the 360° of the compass in to 8 segments.

Clearly, it’s not a requirement to do this whilst flying!

The script is here.