Devices & Components
16x2 LCD display with I²C interface
Arduino Uno Rev3
Male/Female Jumper Wires
Software & Tools
Arduino IDE
Project description
Code
Code for screen
c_cpp
1// |———————————————————————————————————————————————————————| 2// | made by Arduino_uno_guy 11/13/2019 | 3// | https://create.arduino.cc/projecthub/arduino_uno_guy| 4// |———————————————————————————————————————————————————————| 5 6 7#include LiquidCrystal_I2C.h 8 9#include Wire.h 10 11//initialize the liquid crystal library 12//the first parameter is the I2C address 13//the second parameter is how many rows are on your screen 14//the third parameter is how many columns are on your screen 15LiquidCrystal_I2C lcd(0x27, 16, 2); 16 17void setup() { 18 19 //initialize lcd screen 20 lcd.init(); 21 // turn on the backlight 22 lcd.backlight(); 23} 24void loop() { 25 //wait for a second 26 delay(1000) 27 // tell the screen to write on the top row 28 lcd.setCursor(0,0); 29 // tell the screen to write “hello, from” on the top row 30 lcd.print(“Hello, From”); 31 // tell the screen to write on the bottom row 32 lcd.setCursor(0,1); 33 // tell the screen to write “Arduino_uno_guy” on the bottom row 34 // you can change whats in the quotes to be what you want it to be! 35 lcd.print(“Arduino_uno_guy”); 36 37} 38
Downloadable files
wiring diagram
wiring diagram

wiring diagram
wiring diagram

Comments
Only logged in users can leave comments