Advertisement
RuiViana

Testa LCD

Jul 29th, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. //Testa LCD
  2. int Teste = 8080;
  3. #include <LiquidCrystal.h> //Inclui a biblioteca do LCD
  4.  
  5. LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
  6.  
  7.  
  8. void setup() {
  9. lcd.begin(16, 2); //Inicia o LCD com dimensões 16x2(Colunas x Linhas)
  10. }
  11.  
  12. void loop(){
  13. lcd.clear();// Limpa do buffer do LCD
  14. lcd.setCursor(0, 0);
  15. lcd.print("Imprimindo TXT");
  16. lcd.setCursor(0, 1);
  17. lcd.print("Linha 1");
  18. lcd.setCursor(10, 1);
  19. lcd.print(Teste);
  20. delay(500);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement