]> git.piffa.net Git - sketchbook_andrea/blob - hardware/LCD_2x16/LCD_2x16.ino
Struct
[sketchbook_andrea] / hardware / LCD_2x16 / LCD_2x16.ino
1 #include <LiquidCrystal.h>
2
3 // initialize the library with the numbers of the interface pins
4 LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
5
6 void setup() {
7   // set up the LCD's number of columns and rows:
8   lcd.begin(16, 2);
9   // Print a message to the LCD.
10   lcd.print("Funziona benone!");
11 }
12
13 void loop() {
14   // set the cursor to column 0, line 1
15   // (note: line 1 is the second row, since counting begins with 0):
16   lcd.setCursor(0, 1);
17   // print the number of seconds since reset:
18   lcd.print(millis()/1000);
19 }
20