How To Blinking LCD With Arduino

Required Hardware

For users who do not have Hackerspace Karachi Arduino Kit v1.0

  • Arduino Board
  • LCD
  • Resistor 220 Ohms LCDI2C
  • Hook-up Wires

Circuit

For users who do not have Hackerspace Karachi Arduino KiT v1.

Schematic

Code

                    

1. /*
2. Blinking LED with Arduino
3.
4. This example shows how to make LED blink using Arduino.
5.
6. The circuit:
7. – LED
8. Anode connected to digital pin 4.
9. Cathode connected to Ground.
10.
11.
12. http://hackerspacekarachi.org/
13. */
14.
15. void setup() {
16. // initialize digital pin as an output.
17. pinMode(4, OUTPUT);
18. }
19.
20. // the loop function runs over and over again forever
21. void loop() {
22. digitalWrite(4, HIGH); // turn the LED on (HIGH is the voltage level)
23. delay(1000); // wait for a second
24. digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
25. delay(1000); // wait for a second
26. }

1. /*