Skip to content

Instantly share code, notes, and snippets.

@smoofra
Created April 29, 2019 07:20
Show Gist options
  • Save smoofra/2e6f1db183e563a359b345cd85d32f79 to your computer and use it in GitHub Desktop.
Save smoofra/2e6f1db183e563a359b345cd85d32f79 to your computer and use it in GitHub Desktop.
Hello World for PCF8574 LCD
#include <LiquidCrystal_PCF8574.h>
LiquidCrystal_PCF8574 lcd(0x27);
void setup() {
lcd.begin(20, 4); // initialize the lcd
lcd.home();
lcd.clear();
lcd.print("1234567890Hello&....");
lcd.setCursor(0,1);
lcd.print("foo");
lcd.setCursor(0,2);
lcd.print("bar");
lcd.setCursor(0,3);
lcd.print("quux");
lcd.setBacklight(255);
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment