Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // Programa : Display LCD 16x2 e modulo I2C
  2. // Autor : Arduino e Cia
  3.  
  4. #include <Wire.h>
  5. #include <LiquidCrystal_I2C.h>
  6.  
  7. // Inicializa o display no endereco 0x27
  8. LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7,3, POSITIVE);
  9.  
  10. void setup()
  11. {
  12. lcd.begin (16,2);
  13. }
  14.  
  15. void loop()
  16. {
  17. lcd.setBacklight(HIGH);
  18. lcd.setCursor(0,0);
  19. lcd.print("Arduino e Cia !!");
  20. lcd.setCursor(0,1);
  21. lcd.print("LCD e modulo I2C");
  22. delay(1000);
  23. lcd.setBacklight(LOW);
  24. delay(1000);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement