Controlling a LED with a Switch: Building upon the Blinking LED lesson, we will now control the blinking LED using a push-button switch. To this end , digital input functions will be introduced. The concept of a pull-up resistor is explained.
Knowledge Check
What is the function of a pull-up resistor?
Describe switch bounce and the problems it could cause to digital logic.
What is the “&&” and “||” conditions within the C language.
Describe how to use the internal pull-up resistor within the microcontroller.