-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMeuSetup.ino
More file actions
22 lines (21 loc) · 745 Bytes
/
MeuSetup.ino
File metadata and controls
22 lines (21 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
void MeuSetup(){
lcd.init(); //Inicializa a comunicação com o display já conectado
lcd.clear(); //Limpa a tela do display
lcd.backlight(); //Aciona a luz de fundo do display
lcd.setCursor(0, 0); //Coloca o cursor do display na coluna 1 e linha 1
lcd.print("Bora animar?"); //Exibe a mensagem na primeira linha do display
lcd.setCursor(0, 1); //Coloca o cursor do display na coluna 1 e linha 2
lcd.print("Ass: Tomate"); //Exibe a mensagem na segunda linha do display
//LEDS
for(int i=0;i<5;i++){
(layerPin[i],OUTPUT);
}
for(int i=0;i<5;i++){
pinMode(layerPin[i],OUTPUT);
}
for(int i=0;i<25;i++){
pinMode(columnPin[i],OUTPUT);
}
pinMode(btSubir, INPUT_PULLUP);
pinMode(btDescer, INPUT_PULLUP);
}