Data Sheet
Piano for micro:bit User Manual
6 / 10
Removing blocks and slots:
Move back those blocks or slots that are not needed in the programming area to the block
selection area on the left.
Experiment phenomenon
Touch the white piano keys from left to right, and in turn, DO, RE, MI, FA, SOL, LA, SI, DO.
On each time you touch, the RBG LED lights up different colors. Of course, when you touch the
key is in between of two white keys, it’ll produce a tone higher than the key is on its left, and a
tone lower that the key is on its right.
2 DETERMINE KEY PRESSING.
Placement steps
Within “Logic” package, place “if then” slot to the right area. This block is used to make a
logic evaluation. If a given event is true, “then” performs some action. On the “if then” slot, click
the blue button next to “if”. This will pop up a small box. Drag the “else if” slot from within this
small box to the “if then” slot on the right. Go to Basic, and drag the “show leds” block to “then”
inside, and click on the corresponding LED for red.
Experiment phenomenon