0 votes
by (360 points)
It will dim and go to night mode and stay there when the time changes to day mode?

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

      analogWrite(TFT_LED,255); // Day Mode

      } else {

      analogWrite(TFT_LED,40);  //Night Mode

  }
by (10.5k points)
Hi. What exactly is the question? If your code will be working? If the hardware can to this? Also, which hardware do you have? The Color Kit Grande or the Weather Station Color?
KR, Dani
by (360 points)
Thanks. 1. Weather Station Color, 2. NodeMCU 0.9, 3. ILI9341 3.2" TFT, 4. Code is in Void Loop, Code compiles but does nothing to dim TFT.

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

...