Twelve Drummers Drumming
Recreate a bongo cat drumming a drum!
- 1 x microbit
- 1 x breakout board
- 2 x servo
Open up the micro:bit code editor at https://makecode.microbit.org/#editor and follow the code as shown. This step resets both servos to a default 0º position when the micro:bit is first turned on.
Now let us work on getting the bongo cat drumming! When button A is pressed, one servo will move to its original position, while the other will move down to 90º (hit the drum).
That's pretty much it for coding! Now, that's left is to decorate your microbit like a bongo cat!