9 |
P a g e
D. Buttons
The mBot2 is controlled by a module called
cyberpi
. This has a joystick, a home button and two push buttons (A and
B). We can use the joystick and buttons in our code. It also has a light sensor and microphone that we can use.
Instead of the code running automatically when it is up
loaded, let’s tur
n on the display when we press button A.