0 votes
ago by (250 points)
I am trying to get the display to dim between 10:00 pm and 7:00 am. I tried the following code to no avail. What am i missing??

 if(hour()> =7 && hour()<=10) {

      analogWrite(TFT_LED,255);

      }

   else {

      analogWrite(TFT_LED,40);      //dim backlight between 10:00pm and 7:00am

  }

Please log in or register to answer this question.

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...