leonvandenbeukel / Round-LED-Clock

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

NodeMCU ESP8266 #20

Open sayeedNIAZ opened 3 years ago

sayeedNIAZ commented 3 years ago

Please convert this code for NodeMCU 1.0 (ESP-12E Module)

Dancopy commented 3 years ago

I would also like to; any new?

Input-BDF commented 2 years ago

Tested it on an ESP-12F Module. You maybe have to specify FastLeds Pin order cmp.: https://github.com/FastLED/FastLED/wiki/ESP8266-notes

Cause there seems a timing problem in FastLed with ESP8266, which causes to always illuminate pixel 1 in random color you have to do some change on line 127

for (int i=0; i<NUM_LEDS; i++) 
      LEDs[i] = CRGB::Black;

to: FastLED.clear(); which is more elegant ;)

Also fix a little bug and change night() according to suggestions/ answers in #12

for correct console prints don't forget to specify correct baud rate on Serial.begin