Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Arduino 20x4 Sainsmart I2C example
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
void setup() {
LiquidCrystal_I2C lcd(0x27, 20, 4);
lcd.init();
lcd.backlight();
lcd.setCursor(5, 0);
lcd.print("Hello from");
lcd.setCursor(3, 1);
lcd.print("CaptEmulation");
lcd.setCursor(1, 2);
lcd.print("johnny-five/issues");
lcd.setCursor(8, 3);
lcd.print("326");
}
void loop() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment