• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
Previous Next

Octopus Gets fatter (Scratch for pcDuino)

Posted by: , May 6, 2014

2014-05-05-080557_1280x720_scrot (2)

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.

 

IMG_0117 (2)

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.

linker base shield01

Step 2: Launch Scratch for pcDuino, and Click button button,drag the role to the stage.

role 2

Step 3,click the octopus   and then click the scripts to edit the scripts.

2014-05-05-080510_1280x720_scrot (3)

Code download :1-puffer,zip

Toggle the slider, you will see the effect, as follows.

2014-05-05-080559_1280x720_scrot (2)

 

Tags: Scratch

Share!
Tweet

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors