User Tools

Site Tools


tutorials:learn:arduino:lesson5.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:learn:arduino:lesson5.html [2010/10/22 15:01]
daigo
tutorials:learn:arduino:lesson5.html [2016/01/28 18:05] (current)
Line 260: Line 260:
 Here is how we will wire up the switch and LED.  Here is how we will wire up the switch and LED. 
  
-{{  http://​www.ladyada.net/​images/​arduino/​digitallight.png?​nolink&​289x272 ​ |}} \\ Fig 5.8 +{{  http://​www.ladyada.net/​images/​arduino/​digitallight.png?​nolink&​289x272 ​ |}}  
 +<class center>Fig 5.8 </​class>​
  
 Build this schematic on your protoshield Build this schematic on your protoshield
Line 347: Line 348:
 **Now its your turn:** add another red LED and resistor to pin 11, modify the sketch so that when the button is pressed one LED is lit and the other one is off and when the button is released the first LED is off and the second ​ LED is lit. **Now its your turn:** add another red LED and resistor to pin 11, modify the sketch so that when the button is pressed one LED is lit and the other one is off and when the button is released the first LED is off and the second ​ LED is lit.
  
-{{  http://​www.ladyada.net/​images/​arduino/​2ledswitch.png?​nolink&​409x272 ​ |}} \\ //Fig 5.9//+{{  http://​www.ladyada.net/​images/​arduino/​2ledswitch.png?​nolink&​409x272 ​ |}}  
 +<class center>//Fig 5.9//</​class>​
  
 Try to wire up the protoshield just from the schematic. If you're having trouble, [[http://​www.ladyada.net/​images/​arduino/​2ledswitch.jpg|click here for a photo of the parts wired up]]. Try to wire up the protoshield just from the schematic. If you're having trouble, [[http://​www.ladyada.net/​images/​arduino/​2ledswitch.jpg|click here for a photo of the parts wired up]].
/home/ladyada/public_html/wiki/data/attic/tutorials/learn/arduino/lesson5.html.1287759700.txt.gz · Last modified: 2016/01/28 18:05 (external edit)