leonvandenbeukel / Round-LED-Clock

Wi-Fi connected round LED Clock
Apache License 2.0
134 stars 64 forks source link

Just getting LEDs lighting all in green #24

Open cmora111 opened 2 years ago

cmora111 commented 2 years ago

I had the clock working fine for months. Then after an update The LEDs light as if it was waiting for NTP. I've put printlns in and found that it is not refreshing properly. The printlns are before and after the show in loop(). but it is only lighting up all LEDs green

I am using an Adafruit Feather Huzzan ESP8266

cmora111 commented 2 years ago

Code: ... if ( night() && USE_NIGHTCUTOFF == true ) FastLED.setBrightness (NIGHTBRIGHTNESS);

Serial.println("Just before FastLED.show"); 
FastLED.show();
Serial.println("Just after FastLED.show");

}
}

byte getLEDHour(byte hours, byte minutes) { ....

20:51:07.705 -> Just after FastLED.show 20:51:08.702 -> 2022 8 4 21 51 8 day of week: 5 summer time: 1 night time: 1 20:51:08.702 -> 192.168.x.x 20:51:08.702 -> Time server IP: 45.33.37.82 20:51:08.702 -> Just before FastLED.show 20:51:08.702 -> Just after FastLED.show 20:51:09.698 -> 2022 8 4 21 51 9 day of week: 5 summer time: 1 night time: 1