Update 'Greenhouse.ino'
This commit is contained in:
parent
9429ead6f1
commit
a9179ad1f2
@ -162,7 +162,8 @@ int brightness = 255;
|
|||||||
int uda[] = {200, 30, 100, 20, 300};
|
int uda[] = {200, 30, 100, 20, 300};
|
||||||
int sla[] = {10, 90, 300, 280};
|
int sla[] = {10, 90, 300, 280};
|
||||||
int go = true;
|
int go = true;
|
||||||
|
int trange[] = {60, 100}
|
||||||
|
int hrange[] = {30, 70}
|
||||||
|
|
||||||
void setup(void) {
|
void setup(void) {
|
||||||
batteryupd.Every(10000, checkBat);
|
batteryupd.Every(10000, checkBat);
|
||||||
@ -215,7 +216,7 @@ void setup(void) {
|
|||||||
}
|
}
|
||||||
clearLog();
|
clearLog();
|
||||||
printFastCText("Booting GreenhouseOS...");
|
printFastCText("Booting GreenhouseOS...");
|
||||||
printFastCText("Version: 0.2.2");
|
printFastCText("Version: 0.2.3");
|
||||||
printFastCText("");
|
printFastCText("");
|
||||||
delay(250);
|
delay(250);
|
||||||
if(!didDraw) {
|
if(!didDraw) {
|
||||||
@ -360,7 +361,8 @@ void loop(void) {
|
|||||||
drawButton(0, 20, 320, 220, "", ILI9341_WHITE);
|
drawButton(0, 20, 320, 220, "", ILI9341_WHITE);
|
||||||
drawButton(160, 130, 160, 110, "Back", ILI9341_BLUE);
|
drawButton(160, 130, 160, 110, "Back", ILI9341_BLUE);
|
||||||
drawUD(uda);
|
drawUD(uda);
|
||||||
displayText(10, 20, false, "Water amount:", 2);
|
displayText(15, 45, false, "Water amount:", 4);
|
||||||
|
drawButton(5, 100, 20, 20, "Intake", ILI9341_RED);
|
||||||
}
|
}
|
||||||
upd = false;
|
upd = false;
|
||||||
}
|
}
|
||||||
@ -893,4 +895,8 @@ void updUD(int data[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean touch(int x, int y) {
|
||||||
|
if(
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user