The Planted Tank Forum - View Single Post - Another Arduino LED light schedule sketch
View Single Post
post #10 of (permalink) Old 05-15-2013, 05:28 PM
Algae Grower
Join Date: May 2013
Location: Chicago Suburb
Posts: 26

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][5] =

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!
AquaPorn is offline  
For the best viewing experience please update your browser to Google Chrome