Skip to content

Instantly share code, notes, and snippets.

@wisewolf
Created June 7, 2016 11:33
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 wisewolf/a0fd478e36492bb7c3618071c63cf210 to your computer and use it in GitHub Desktop.
Save wisewolf/a0fd478e36492bb7c3618071c63cf210 to your computer and use it in GitHub Desktop.
// Display LCD 16x2 e modulo I2C
// I2C Address: 0x27 or 0x3F
// SDA -> A4
// SCL -> A5
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Inicializa o display no endereco 0x27
LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7,3, POSITIVE);
void setup()
{
lcd.begin (16,2);
}
void loop()
{
lcd.setBacklight(HIGH);
lcd.setCursor(0,0);
lcd.print("Arduino e Cia !!");
lcd.setCursor(0,1);
lcd.print("LCD e modulo I2C");
delay(1000);
lcd.setBacklight(LOW);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment