A push button is a temporary electrical switch. Pressing it joins two contacts; releasing it separates them. That simple change gives a microcontroller a way to sense a person’s action and decide what should happen next.
Inputs matter because interactive systems need information from the world before they can respond. Buttons, switches, and sensors all turn real events into values a program can read. This project builds directly on Blink an LED: the Pico still controls an LED on GP15, but now a button on GP14 decides when the light turns on.
This implementation uses the Pico’s internal pull-up resistor. GP14 normally reads HIGH, and pressing the button connects it to GND so it reads LOW. Follow the original diagrams for the circuit overview, then use the official SunFounder resources for the complete vendor-specific build walkthrough.
Engineering Teacher Tip: An unconnected digital input is “floating,” so tiny amounts of electrical noise can make it jump unpredictably between HIGH and LOW. A pull-up or pull-down resistor weakly connects the input to a known voltage when the switch is open. That dependable default state is essential anywhere a digital signal might otherwise be left disconnected.