Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@CaptEmulation
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CaptEmulation/24d26e784940315d641d to your computer and use it in GitHub Desktop.
Save CaptEmulation/24d26e784940315d641d to your computer and use it in GitHub Desktop.
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