Skip to content

Instantly share code, notes, and snippets.

@elktros
Created February 27, 2021 08:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elktros/2df1899c6801809b725c157e49c94d43 to your computer and use it in GitHub Desktop.
Save elktros/2df1899c6801809b725c157e49c94d43 to your computer and use it in GitHub Desktop.
Interface PCF8574 I2C LCD with ESP32.
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x3F, 16, 2);
void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0,0);
lcd.print(" I2C LCD with ");
lcd.setCursor(0,1);
lcd.print(" ESP32 DevKit ");
//delay(2000);
}
void loop()
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment