Display Tilt Direction
Makecode’s show clock(…) list has 8 LED patterns that resemble a cardinal compass, hand at each direction. It can be used for more than directions though. It can also point in the direction you are tilting the micro:bit! This visual feedback will be useful for tilt-controlling the cyber:bot.
First, let’s train an example project that displays each direction hand at N, NW, W and all the way through NE.
Example project: display_clock_positions
- Enter this project and name it display_clock_positions.
- Flash the project into the micro:bit.
- Verify that it displays all the clock needle positions.