Declaration of a pull-up resistor circuit connected to the pin. More...
#include <Circuits.h>
Public Types | |
enum | { PIN_MODE = INPUT_PULLUP , BUTTON_PRESSED = LOW , BUTTON_RELEASED = HIGH } |
Declaration of a pull-up resistor circuit connected to the pin.
Pull-up resistors "pull" the pin signal HIGH when the button is not pressed. When a button is pressed, the signal changes to LOW as the button is connected to ground. Using internal pull-up resistors in Arduino microcontrollers allows a button to be connected to ground without any additional resistors. This makes them easy to connect up and use.
Definition at line 60 of file Circuits.h.
anonymous enum |
Definition at line 65 of file Circuits.h.