This set up will be linked up to a RTC (DS1307). I already have both aspects (matrix & RTC) of this working independently, that was easy. My issue is in coding these to talk to each other.
The 1440 mins of day /3 = 480.
I am tempted to reduce the 0-255 down to 0-239 as this results in much simpler maths 480/240=2
So the pattern for blue could be
(Min0 to Min480)= OFF
(Min481 to Min960)= Increment up one every 2 mins
(Min961 to Min1440)= Increment down one every 2 mins
I know that if I had one table that described blue's pattern the other colours could reuse it with a 480 min offset.
All of this logical stuff is quite straight forward but when it comes to writing the code every time I try I realise I have know idea what I'm doing and the computer and Arduino both say NO!
What think ye? I know I am jumping from the flashing LED project to this quickly but I'm an inpatient fellow.
Cheers! Thank for you time
--
You received this message because you are subscribed to the Google Groups "Not Just Arduino" group.
To post to this group, send an email to not-just...@googlegroups.com.
To unsubscribe from this group, send email to not-just-ardui...@googlegroups.com.
Visit this group at http://groups.google.com/group/not-just-arduino?hl=en-GB.
I have a working prototype thanks to Bradley's advice, help and some pasted code.
Cheers. Will post up the code after a little editing and colour tuning
Ian