edge lab LIVE! starts Tuesday in Munich. Grab a workshop seat and take home the board you build on. Code FRIEND-HACKSTER saves 20%. () Learn more!
Arnov Sharma
Published © CC BY

LCD I2C Tutorial

Learn how to use an LCD with I2C ASAP.

BeginnerFull instructions provided3 minutes309,373
LCD I2C Tutorial

Things used in this project

Story

Read more

Custom parts and enclosures

enclosure

you can 3D print this

Schematics

Schematics

Code

disp_hello.ino

C/C++
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,20,4);  // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
{
  lcd.init();                      // initialize the lcd 
  lcd.init();
  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(1,0);
  lcd.print("hello everyone");
  lcd.setCursor(1,1);
  lcd.print("konichiwaa");
}


void loop()
{
}

Credits

Arnov Sharma
403 projects • 445 followers
I'm Arnov. I build, design, and experiment with tech; 3D printing, PCB design, and retro consoles are my jam.

Comments