1.LED: LED: Connect the anode to pin 13 through a 220Ω resistor and the cathode to GND.
2.Switch: Connect one terminal to pin 8 and the other to GND.
LCD: RS, RW, E, D4-D7 to pins 7, GND, 6, and 5-2 respectively.
Functionality
The LED toggles with the switch, and the LCD shows both states.
Conclusion
This project is ideal for learning microcontroller programming and basic circuitry.
Comments