SHARE
TWEET

Untitled

a guest Jun 27th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top