Advertisement
RuiViana

Untitled

May 5th, 2015
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. //Testa LCD
  2. int Teste = 8080;
  3. #include <LiquidCrystal.h> //Inclui a biblioteca do LCD
  4.  
  5. //LiquidCrystal lcd( 2, 3, 9, 10, 11, 12);
  6. LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
  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