Alphabot2 for micro:bit User Manual
28
/
76
PLAY MELODY 2
We create a new project, to play different melody when buttons are pressed.
1.
Place
on button pressed
block and set the
start melody repeating
on it
2.
Duplicate and complete the script as below
3.
Download the script to your micro:bit, try to press the buttons