I was hoping you can help me a bit with your code. I came across this thread searching for sunrise/sunset code for my marine build.
I am new to Arduino as well as coding, but I usually can dissect it and figure out what does what.
I used this code with the only deviation being I have 9 CHANNELS and 3 MAXPERIODS.
The code compiles, however the results are not what I expect. I vaguely understand most of the code except for:
int lightMatrix [CHANNELS][MAXPERIODS] =
Channels index the array 9
Maxperiods index the array 3
5 = ? what does the 5 index in this statement?
I think that this is where my issue might be.
Thanks for the help, and the code!