Update 'Greenhouse.ino'
This commit is contained in:
		@@ -162,7 +162,8 @@ int brightness = 255;
 | 
			
		||||
int uda[] = {200, 30, 100, 20, 300};
 | 
			
		||||
int sla[] = {10, 90, 300, 280};
 | 
			
		||||
int go = true;
 | 
			
		||||
 | 
			
		||||
int trange[] = {60, 100}
 | 
			
		||||
int hrange[] = {30, 70}
 | 
			
		||||
 | 
			
		||||
void setup(void) {
 | 
			
		||||
  batteryupd.Every(10000, checkBat);
 | 
			
		||||
@@ -215,7 +216,7 @@ void setup(void) {
 | 
			
		||||
  }
 | 
			
		||||
  clearLog();
 | 
			
		||||
  printFastCText("Booting GreenhouseOS...");
 | 
			
		||||
  printFastCText("Version: 0.2.2");
 | 
			
		||||
  printFastCText("Version: 0.2.3");
 | 
			
		||||
  printFastCText("");
 | 
			
		||||
  delay(250);
 | 
			
		||||
  if(!didDraw) {
 | 
			
		||||
@@ -360,7 +361,8 @@ void loop(void) {
 | 
			
		||||
      drawButton(0, 20, 320, 220, "", ILI9341_WHITE);
 | 
			
		||||
      drawButton(160, 130, 160, 110, "Back", ILI9341_BLUE);
 | 
			
		||||
      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;
 | 
			
		||||
  }
 | 
			
		||||
@@ -894,3 +896,7 @@ void updUD(int data[]) {
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
boolean touch(int x, int y) {
 | 
			
		||||
  if(
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user