|
@ -593,14 +593,12 @@ class Keyboard{ |
|
|
static char cont; |
|
|
static char cont; |
|
|
if(digitalRead(this->goBack) == LOW){ |
|
|
if(digitalRead(this->goBack) == LOW){ |
|
|
cont++; |
|
|
cont++; |
|
|
Serial.println("Ayudaaaaa"); |
|
|
|
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
cont = 0; |
|
|
cont = 0; |
|
|
if(cont == debounceTime/REFRESH){ |
|
|
if(cont == debounceTime/REFRESH){ |
|
|
cont = 0; |
|
|
cont = 0; |
|
|
this->screen->goBack(); |
|
|
this->screen->goBack(); |
|
|
Serial.println("Ayudaaaaant"); |
|
|
|
|
|
while(digitalRead(this->goBack) == LOW){ |
|
|
while(digitalRead(this->goBack) == LOW){ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -647,7 +645,6 @@ Keyboard keyboard(14, 4, 12, 13, 40, disp); |
|
|
|
|
|
|
|
|
void setup(){ |
|
|
void setup(){ |
|
|
screen.configure(true); |
|
|
screen.configure(true); |
|
|
Serial.println("Screen created"); |
|
|
|
|
|
|
|
|
|
|
|
screen.createMenu(128, 13); //Menu 0
|
|
|
screen.createMenu(128, 13); //Menu 0
|
|
|
screen.createMenu(128, 13); //Menu 1
|
|
|
screen.createMenu(128, 13); //Menu 1
|
|
@ -657,7 +654,7 @@ void setup(){ |
|
|
|
|
|
|
|
|
screen.createVGraph("Grafica 1", 25, 60, 40, 40, 0, 100, 10, 0); //Graph 0
|
|
|
screen.createVGraph("Grafica 1", 25, 60, 40, 40, 0, 100, 10, 0); //Graph 0
|
|
|
screen.createHGraph("Grafica 2", 10, 40, 100, 20, 0, 100, 10, 0); //Graph 1
|
|
|
screen.createHGraph("Grafica 2", 10, 40, 100, 20, 0, 100, 10, 0); //Graph 1
|
|
|
screen.createCGraph("Grafica 3", 30, 50, 75, 30, 0, 100, 0, 100, 25, 25, 0); //Graph 2
|
|
|
|
|
|
|
|
|
screen.createCGraph("Grafica 3", 30, 50, 75, 30, 0, 100, 0, 1000, 25, 250, 0); //Graph 2
|
|
|
|
|
|
|
|
|
screen.createOption(0, "Vertical graph", 1, 0); |
|
|
screen.createOption(0, "Vertical graph", 1, 0); |
|
|
//Creates the first option in Menu 0, directing to a graph (contentType = 1 (Graph)), 0 (Graph 0)
|
|
|
//Creates the first option in Menu 0, directing to a graph (contentType = 1 (Graph)), 0 (Graph 0)
|
|
|