/* LiquidCrystal Library
The circuit:
Arduino Uno <—> IC 47HC595
D10 <—> Pin 12 (Latch)
D11 <—> Pin 14 (Data)
D13 <—> Pin 11 (Clock)
LCD 16X02 <—> IC 47HC595
4 (RS) <—> Pin 1
6 (E) <—> Pin 3
11 (D4) <—> Pin 4
12 (D5) <—> Pin 5
13 (D6) <—> Pin 6
14 (D7) <—> Pin 7
LCD 16X02
1 (GND) <—> GND
2 (+5V) <—> 5V
3 (Vo Contras) <—> Potensiometer
5 (R/W) <—> GND
15 (Led+) <—> 220 ohm <—> 5V
16 (Led-) <—> GND
*/
#include < SPI.h >
//#include < LiquidCrystal.h >
//remove the spaces above
// Initialize the LCD screen using the latch pin
LiquidCrystal lcd(10);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello, world!");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
}