This is code to drive a NeoPixel clock.
I have 4 of the big quarter circle pieces to make a circle (60 LEDs) and so a clock.
When "Daylight saving" starts/ends it is supposed to adjust itself.
I never really got it working but it wasn't a big deal.
Normally it is just plugged into power. Not a computer.
I would simply plug it into a computer and update the date/time that way.
It happened again (a few days ago) and moved the time the wrong way.
Now, I can't even set the time or even compile the code.
Details:
Arduino NANO ATmega328 (Old bootloader)
CH340 USB - I believe.
That is why the OLD BOOTLOADER is set.
I found that got around the problem.
It DID work when I wrote it, or there is no way it could have been flashed into the Arduino.
This was written a long time ago and it worked.
I had to update the clock evey 6 months because of "daylight saving", but it worked.
I have notes for myself on how to set the clock. They no longer work if I send what is written there.
And yes: the code is a mess.
Maybe I should re-write it.
Maybe I should just fix what is wrong.
There is no right answer.
But it is confusing that it now just isn't talking to me at all and I can't set the time.
I see the output fine.
1 Jan 2066 - I seem to remember is the time.
What I remember:
I wanted to optimise how the output was and so the stream library was used.
So that is why it is used.
The errors I see when compiling:
/home/me/Arduino/Ring clock/Ring_Clock14ce/Time_functions.ino: In function 'void test()':
Time_functions:545:20: error: 'inChar' was not declared in this scope
Serial.println(inChar);
^~~~~~
/home/me/Arduino/Ring clock/Ring_Clock14ce/Time_functions.ino:545:20: note: suggested alternative: 'char'
Serial.println(inChar);
^~~~~~
char
exit status 1
'inChar' was not declared in this scope
Ring_Clock14ce.zip (15.8 KB)