palsayantan / Neopixel-7-Segment-Digital-Clock

Digital Clock using WS2812b RGB 7 Segment Digit Display & ESP8266
14 stars 7 forks source link

Not not correct (seconds) #2

Open digitongithub opened 1 year ago

digitongithub commented 1 year ago

Compilation error: 'second' was not declared in this scope; did you mean 'Second'?

palsayantan commented 1 year ago

Check if you have installed all the necessary libraries. Both codes are tested. There should not be any Compilation issues

digitongithub commented 1 year ago

Thanx for fast answer. Yes, all the librarys are installed and latest version. I tried with nodemcu and wemos d1. Could that be the problem? A other program with teh same librarys working good.

palsayantan commented 1 year ago

Okay, no it should work with nodemcu and wemos d1. Can you check which line is highlighted with the error?

digitongithub commented 1 year ago

Second = second(unix_epoch); // get seconds (do you have also a sketch?)

digitongithub commented 1 year ago

I have "deleted": // Second = second(unix_epoch); // get seconds // Minute = minute(unix_epoch); // get minutes // Hour = hour(unix_epoch); // get hours

// if (TIME_FORMAT == 12) { // if (Hour >= 13) { // Hour = Hour - 12; // } // if (Hour == 00) { // Hour = 12; // } // else // Hour = Hour; // } // else if (TIME_FORMAT == 24) { // Hour = Hour; // }

And the time is working. How i connect the neopixels?

Thanx