This page describe how to use your hardware device to control a sprite or control your device through a sprite.
Example: interaction between CyberPi and the sprite Panda
1. Connect CyberPi to mBlock 5.
For details, see Program a Device. You can use another device and program it in the similar way.
2. Set the coding mode to Live.
3. Program CyberPi.
Set the operation on CyberPi.
4. Program Panda.
Set the action of Panda.
6. Program CyberPi.
Set the action of CyberPi.
The program is complete.
When you press button A on CyberPi, Panda moves on the stage on mBlock 5.
Keep pressing button A.
When Panda touches an edge of the stage, it goes to a random position and the LEDs on CyberPi are lit up in red for one second.