Build a code to turn on all 25 LEDs when the micro:bit starts, turn off the center square when Button A is pressed, and Clear entire screen when the micro:bit is shaken.
Solution.
Shake function can be used to use the accelerometer of the micro:bit. The mobile phone uses a similar code and same sensor to detect motion while playing mobile games.