Aim
The goal of the activity is to demonstrate the use of a two-way switch operation using an LED and two buttons connected to a Raspberry pi 4 B board. The LED can be switched on by one of the two buttons and be switched off by the other button.
Materials Required
- Raspberry Pi 4 B -1
- Breadboard – 1
- LED -1
- Push Button-2
- Several Jumper Wires
- 220Ω Resistors – 1
- Type-C USB Cable-1
Wiring Diagram
Desired Outcome
The LED can be switched on by using either of the buttons and switched off with the same or the other button.