   Point p = ts.getPoint();
   p.x = map(p.x, TS_MINX, TS_MAXX, 0, 240);
   p.y = map(p.y, TS_MINY, TS_MAXY, 0, 320);
-  
-  dayLightVal = analogRead(A10);
-  //Serial.println(dayLightVal);
-  //backlightPerc = (0.0000003*(dayLightVal*dayLightVal*dayLightVal))-(0.0006*(dayLightVal*dayLightVal))+(0.397*dayLightVal);
-  //Serial.println(backlightPerc);
-  backlightValue = 0.2138*dayLightVal + 20.5;
-  //Serial.println(backlightValue);
-  //backlightValue = ((backlightPercent*backlightPercent*backlightPercent)/3937) + 1.5;
-  //backlightValue = (127 * backlightPercent) / 50 + 1;
-  analogWrite(backlightPin, backlightValue);
-  //Serial.println(backlightValue);
 
   int sensorValue = analogRead(A11);
   float voltage = sensorValue * (5.0 / 1023.0);

  pressure = sumP / numReadings;
}


//float getVoltage(int pin)				        // function that reads the value of the temperature pin and returns it
// to be converted into a temperature value.


void setup()
{
  screen_brightness();

  Tft.TFTinit();                                        // init TFT library

