Data Sheet
Piano for micro:bit User Manual
10 / 10
In turn, written above you can see the corresponding picture:
Download: Download the program to micro:bit.
Save: Save the python program to the computer.
Load: upload the local python program to the editor.
Snippets: These are the definitions and usages of common statements.
Help: Ask for Help with a more detailed description of the editor's usage.
You can download the program from the product information corresponding to our
website, and upload the WSTouchPiano is in the folder to the editor.
Within Visual Programming there are the following functions.
TouchPress():Listens to the key press and return the corresponding key value.
ShowRGB (RGB): Displays the color of four corresponding lights, where RGB are four tuples with
three elements each, that is (0, 255, 255), (0, 255, 255), (0, 255, 255), (0, 255, 255).
PlayPiano(): Keeps listening to key pressing. When the key is pressed, the four RGB lights up any
random colors, as well as the buzzer emits the corresponding sound at the same time.
For learning more about control functions, please refer to micro:bit official python library, If you
don't know the python library, you can find micro:bit's python library in the following places:
https://github.com/bbcmicrobit/micropython
http://microbit-micropython.readthedocs.io/en/latest/index.html