-
1Wire up the buttons and the LEDs. Done.
Build Instructions-
Building this is VERY basic.....
1) Parts Needed
-
1× RP2040 microcontroller board (Raspberry Pi Pico or compatible)
-
2× momentary pushbuttons (Button A, Button B)
-
2× LEDs (LEDA, LEDB)
-
2× resistors for LEDs (220Ω typical)
-
Jumper wires / breadboard or protoboard
2) Wiring
Buttons (active-low inputs)
Each button connects its GPIO pin to GND when pressed.
-
Button A: GPIO 12
-
Button B: GPIO 19
Both buttons go straight to ground.
LEDs (PWM outputs)
Each LED is driven from a GPIO pin through a series resistor to ground:
-
LEDA: GPIO 9
-
LEDB: GPIO 22
Both leds to ground.. (use 220 Ohm resistors if you want)
-
-
2Code
I use PlatformIO.... This project isn't a lesson in programming microcontrollers, so use whatever you like...
fl@C@
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.