Arduino LCD 2×16 char. I²C []

Outils pour utilisateurs

Outils du site


Arduino LCD 2×16 char. I²C

Arduino LCD 2×16 char. I²C

Arduino Wiring

Hitachi HD44780 LCD Controller

LiquidCrystal_I2C library

Code sample

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>
 
LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x27 for a 16 chars and 2 line display at 0x27 I²C address
 
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()
{
}
projets/ez8x7/lcd16x2/index.txt · Dernière modification : de f1sls