You are on page 1of 1

An LED is connected to Digital Output Pin 13 and separate it from

ground by a 220Ω resistor.


A push-button is connected to Digital Input Pin 10 using a 10kΩ resistor.

When the push-button is pressed, a message “Push-button PRESSED” is


printed on on serial monitor, and “Push-button NOT PRESSED” when
push-button is not pressed.
An LED is turned ON/OFF (wait: 5 seconds) when the button is not
pressed and turns ON/OFF (Wait: 1 second) when the button is pressed.

You might also like