Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Programa : Display LCD 16x2 e modulo I2C
- // Autor : Arduino e Cia
- #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);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement