Currently browsing

May 6, 2012

Arduino language tutorial Lesson 2

Arduino language tutorial (Lesson 2) LESSON 2 : Using a Pushbutton to Control the LED To monitor the state of a switch, there’s a new Arduino instruction that you’re going to learn: the digitalRead()function. digitalRead()checks to see whether there is any voltage applied to the pin that you specify between …