Difference between revisions of "2 -Read Switch and Display on LED"
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
− | ''' | + | ''' Aim: ''' Blink the LED when the Switch Button is press |
Line 22: | Line 22: | ||
Our experiment can be resume as : | Our experiment can be resume as : | ||
− | when '''Button''' is clicked | + | when '''Button''' is clicked, Always when '''digital 2''' send the value '''1''' to '''the digital 13''' , |
− | it receives it and '''ON the LED''' for '''0.1 sec''' then '''OFF''' when it is released | + | it receives it and '''ON the LED''' for '''0.1 sec''' then '''OFF''' when it is released. |
− | + | ||
and it will keep repeating until stop is clicked | and it will keep repeating until stop is clicked |
Latest revision as of 18:49, 12 January 2015
Read Switch and Display on LED.
Aim: Blink the LED when the Switch Button is press
digital 2 is declared as the input port to read the values from the switch. digital 13 is the output LED for our board in this experiment
wait 0.1 is the delay timing
Our experiment can be resume as :
when Button is clicked, Always when digital 2 send the value 1 to the digital 13 , it receives it and ON the LED for 0.1 sec then OFF when it is released. and it will keep repeating until stop is clicked