0 votes
in Touch Interface by (360 points)
In this code hour() only ever returns a sero (0), what am I doing wrong? This snippet is nserted into "void Loop"  of "esp8266-Weather-Station-Color.ino"

// Set Brightness       

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

      analogWrite(TFT_LED,255); // Day Mode

      Serial.println (hour());

      Serial.println("Day Mode");       

      }

 else {

      analogWrite(TFT_LED,40);  //Night Mode

      Serial.println (hour());

      Serial.println ("Night Mode");  

      }

  delay(10000);
by (19.9k points)
There is no hour() function in our code. Hence, we can't support code we don't know. If you edit your question to include the hour() implementation we may be able to help.

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

...