       break;
   }
   canvas.add(&numkey, 80,0);
-  dial.visible = false; // do not redraw dial while numkey is shown
+
   return;
 }
 

	if(nk->getTextSize()>0){
    switch(grid.lastPressed){
      case 1:
        dial.hiLimit = nk->getNum();
        break;
      case 2:
        dial.setpoint = nk->getNum();
        break;
      case 3:
        dial.lowLimit = nk->getNum();
        break;
      default:
        break;

// before the setup() routine.
#define LED1 10
#define LED2 2
#define BACKLIGHT 7

#define TMP_PIN A4
#define tempUpdate 1000
#define trendUpdate 300000
#define backLightOffDelay 100

float tempF;
long lastUpdate,lastTrendUpdate, backLightOffUpdate;

void setup() {
  Serial.begin(9600);
  pinMode(LED1, OUTPUT);
  pinMode(LED2, OUTPUT);
  pinMode(BACKLIGHT,OUTPUT);
  digitalWrite(BACKLIGHT,HIGH);
  backLightOffUpdate = backLightOffDelay;
  canvas.init(TFT_LANDSCAPE);

  delay(1000);
  //Configure the widgets
  //=========================================  
    trend.setSize(220,100);
    trend.setColors(BLACK,GREEN,GRAY1);
    trend.setLimits(70,80,90);
    trend.init();
    trend.setHiLimit(85,RED);
    trend.setLowLimit(75,BLUE);
    trend.enableAutoFit = false;

    
    dial.setSize(50);
    dial.setColors(BLACK,YELLOW,GRAY1);
    dial.setLimits(60,80,100);
    dial.init();
    dial.setHiLimit(85,RED);
    dial.setLowLimit(75,BLUE);

    grid.setSize(80,90);
    grid.setColors(GRAY2,WHITE,WHITE);
    grid.setEventHandler(&gridEventHandler);
    grid.setName(1,"HI");
    grid.setName(2,"SP");
    grid.setName(3,"Low");
    grid.init();
    
    numkey.setSize(120,180);
    numkey.setColors(GRAY1,BLACK,WHITE);
