arduino lcd hello world

Solutions on MaxInterview for arduino lcd hello world by the best coders in the world

showing results for - "arduino lcd hello world"
Martina
02 Sep 2018
1// include the library code:
2#include <LiquidCrystal.h>
3
4// initialize the library with the numbers of the interface pins
5LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
6
7void setup() {
8  // set up the LCD's number of columns and rows:
9  lcd.begin(16, 2);
10  
11  // Print a message to the LCD.
12  lcd.print("ROBO-CREATORS");//YOU CAN CHANGE IT
13}
14
15void loop() {
16  // set the cursor to column 0, line 1
17  // (note: line 1 is the second row, since counting begins with 0):
18  lcd.setCursor(0, 1);
19  
20  // print the number of seconds since reset:
21  lcd.print(millis() / 1000);
22}
23