Skip to content

In this example, the buttonPin is configured with an internal pull-up resistor using INPUT_PULLUP in the pinMode function. The button state is then read, and if the button is pressed, the LED on pin 13 is turned ON, and a message is printed to the Serial Monitor. When the button is released, the LED is turned OFF, and another message is printed.

Notifications You must be signed in to change notification settings

thisara011/Internal-Pull-UP-Resistor-code-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Internal-Pull-UP-Resistor-code-example

In this example, the buttonPin is configured with an internal pull-up resistor using INPUT_PULLUP in the pinMode function. The button state is then read, and if the button is pressed, the LED on pin 13 is turned ON, and a message is printed to the Serial Monitor. When the button is released, the LED is turned OFF, and another message is printed.

About

In this example, the buttonPin is configured with an internal pull-up resistor using INPUT_PULLUP in the pinMode function. The button state is then read, and if the button is pressed, the LED on pin 13 is turned ON, and a message is printed to the Serial Monitor. When the button is released, the LED is turned OFF, and another message is printed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages