Loading topic
INPUT_PULLUP reverses the logic you might expect, what contact bounce does to the readings, and why delay() stops a sketch from responding to anything else.1 min readsetup() and loop(), pinMode(), digitalRead(), digitalWrite(), if statements, and the unsigned long and bool types. You need an Arduino board with a pushbutton wired to pin 2 and GND.1 min readsetup() and loop(), use digitalRead(), and wire a pushbutton with pull-up input (INPUT_PULLUP). You should also understand millis() and unsigned integers.1 min read