Created
April 29, 2019 07:20
-
-
Save smoofra/2e6f1db183e563a359b345cd85d32f79 to your computer and use it in GitHub Desktop.
Hello World for PCF8574 LCD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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