Professional Documents
Culture Documents
Controlling LEDs Using Pushbuttons. Part II 1 ESO
Controlling LEDs Using Pushbuttons. Part II 1 ESO
Part II.
diagram
code
activity 8
BTN2 OR BTN3 are pressed, the green LED is off,
otherwiseif on
code
activity 9
If BTN1 AND BTN3 are pressed at the same time,
OR BTN2is pressed, the red LED blinks every 0,4
seconds.
device type pin
green led digital input 9
BTN1 digital input 2
BTN2 digital input 4
BTN3 digital input 3
diagram
code