RGB LED Array Algorithm

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

RGB LED Array Algorithm

Post by Jay Dee »

Hi all,
I have a project that uses a 24 channel LED driver (TLC5947), It is designed to run with 12 Bit PWM adjustment per channel but for ease of use I have fudged it so that I can use nice round 8 bit byte values and have a tidy and expandable R,G,B x 8 LED solution. The main project just needs a selection of fixed colours which is nice and easy and runs just fine.
But since I have all the hardware working I was thinking of playing a bit more with RGB colour mixing, fading and stuff.
I have yet to get my head around a way to flowcode a elegant colour mixing solution and though it was worth asking if anyone else has played with RGBs and come up with any cute algorithms for fading, cycling etc.
Im using an ECIO 40P, (18F4455)
Thanks for any pointers,
JayDee

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: RGB LED Array Algorithm

Post by JohnCrow »

Hi JayDee

Have you seen this article on the RGB LED
http://www.matrixmultimedia.com/article.php?a=365
1 in 10 people understand binary, the other one doesn't !

Post Reply