|
|
@ -593,14 +593,12 @@ class Keyboard{ |
|
|
|
static char cont; |
|
|
|
if(digitalRead(this->goBack) == LOW){ |
|
|
|
cont++; |
|
|
|
Serial.println("Ayudaaaaa"); |
|
|
|
} |
|
|
|
else |
|
|
|
cont = 0; |
|
|
|
if(cont == debounceTime/REFRESH){ |
|
|
|
cont = 0; |
|
|
|
this->screen->goBack(); |
|
|
|
Serial.println("Ayudaaaaant"); |
|
|
|
while(digitalRead(this->goBack) == LOW){ |
|
|
|
} |
|
|
|
} |
|
|
@ -647,7 +645,6 @@ Keyboard keyboard(14, 4, 12, 13, 40, disp); |
|
|
|
|
|
|
|
void setup(){ |
|
|
|
screen.configure(true); |
|
|
|
Serial.println("Screen created"); |
|
|
|
|
|
|
|
screen.createMenu(128, 13); //Menu 0
|
|
|
|
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.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); |
|
|
|
//Creates the first option in Menu 0, directing to a graph (contentType = 1 (Graph)), 0 (Graph 0)
|
|
|
|