pcDuino team developed a custom version of Scratch for pcDuino. It’s fairly easy to install it. We simply need to type:
$sudo apt-get install pcduino-scratch
In this tutorial, we are going to see how to create a pong game on pcDuino using Scratch.
Compared to the MIT scratch, the Scratch of pcDuino has a hardware tab, and this makes the hardware programming really easy.
In this game, we will use hand to control the movement of the boards to reflect the ball back. When we wave the hand closer to the sensor, the board will move down, and move up when we move away from the sensor.
The pong scratch file can be downloaded from: https://github.com/pcduino/scratch4pcduino_project/blob/master/s4p_lesson3.sb