Created
June 7, 2016 11:33
-
-
Save wisewolf/a0fd478e36492bb7c3618071c63cf210 to your computer and use it in GitHub Desktop.
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
// 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