Project Introduction: We will slide the slider back and forth to control the octopus in the stage. You can see the octopus will get fatter or thinner when you change the position of the slider.
Part list
1. 1 x pcDuino
2. 1 x Sliding Potentiometer
First step: Install the Linker Base Shield to PcDuino,then install the Sliding Potentiometer as shown in the following diagram.
Step 2: Launch Scratch for pcDuino, and Click button,drag the role to the stage.
Step 3,click the and then click the to edit the scripts.
Code download :1-puffer,zip
Toggle the slider, you will see the effect, as follows.
Leave a Reply
You must be logged in to post a comment.