#include <LiquidCrystal.h>
 
#define DS1307_ADDRESS 0x68
 
// Inicializa o LCD
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
 
byte zero = 0x00; 
int bot1 = 6;
int bot2 = 7;
int buttonState = - 1;
int buttonState2 = -1 ;
int last; 
int last2;
char v[] = {'O', 'i', ' ', 'm', 'u', 'n', 'd', 'o', '!'};

void breakLine(){
  // Pular para próxima linha. Obter posição atual e incrementar.
}
void setup() {
  lcd.clear();
  
  //pinMode(bot1, INPUT_PULLUP);
  //pinMode(bot2, INPUT_PULLUP);
  
 // Define o LCD com 20 colunas e 4 linhas
 lcd.begin(16, 2);
 lcd.setCursor(0,0);
 lcd.cursor();
 //lcd.print("> Oi");
 //lcd.println("");
 // last = digitalRead(bot1);
 // last2 = digitalRead(bot2);
 lcd.clear();
 lcd.setCursor(4, 0);
                  
}

void loop() {
  //digitalWrite(6, 0x42);
  //delay(100);
  //digitalWrite(6, 0x41);
  //lcd.clear();
  //lcd.setCursor(0,0);
  //lcd.print("oi");
  //delay(100);
  /*
  buttonState = digitalRead(bot1);
  buttonState2 = digitalRead(bot2);
  
  if ( buttonState != last ){
    //lcd.print("0");
    last = buttonState;
    delay(10);
    if (buttonState = digitalRead(bot1) ){
      last = buttonState;
      lcd.print("0");
  	}
  }
  
   if ( buttonState2 != last2 ){
    //lcd.print("0");
    last2 = buttonState2;
    delay(10);
    if (buttonState2 = digitalRead(bot2) ){
      last2 = buttonState2;
      lcd.print("1");
  	}
  }
  //delay(1000);
*/
  lcd.setCursor(3, 0);
  for (int i = 0; i < 10 ; i ++){
    lcd.print(v[i]);
    delay(1000);
  }
  delay(1000);
  lcd.clear();
}