• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeScratchLesson 2: Press Button to Turn on LED (Scratch on ...
Previous Next

Lesson 2: Press Button to Turn on LED (Scratch on pcDuino)

Posted by: admin , February 22, 2014

[vc_row][vc_column width=”1/1″][vc_column_text]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 turn on LED by pressing a button 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.[/vc_column_text][vc_tour][vc_tab title=”Parts List” tab_id=”1393127193-1-44″][vc_column_text]

  1. 1  x pcDuino v2
  2. 1 x Linker Base Shield
  3. 1 x Linker LED
  4. 1 x Linker Button
  5. 2 x 20mm cable

[/vc_column_text][/vc_tab][vc_tab title=”Setup” tab_id=”1393127193-2-87″][vc_column_text]We install the Linker base shield onto pcDuino, connect LED module to D3 of pcDuino. and connect Button module to D4 of pcDuino.

pcduino_scratch_lesson2_1[/vc_column_text][/vc_tab][vc_tab title=”Scratch Sreen Shot” tab_id=”1393127415945-2-4″][vc_column_text]The Scratch used will look as:

pcduino_scratch_lesson2_2

Click the little green flag, we will see the LED is on when we press the button!

[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: Scratch

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors