Pages: [1]   Go Down
Author Topic: Rainbowduino Firmware  (Read 407 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am working with a Arduino <> Rainbowdruino connected via i2c setup.

[1] I am searching for a Rainbowdruino Firmeware that offeres a functions that takes a full 8x8 rgb frame and displays it.

[2] I am using the Rainbow_CMD_V2_0 *, and I would like to know how the dots_color array exactly works. So that I could write such a function by my own.


* http://code.google.com/p/rainbowduino/source/browse/trunk/Rainbow_commandVersion_Beta/Rainbow_CMD_V2_0/Rainbow_CMD_V2_0.pde?r=2

Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8933
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would like to know how the dots_color array exactly works. So that I could write such a function by my own.

The dots_color array stores four bits of brightness for each LED.  Because it only uses 4 bits (16 levels) it can cram values for two LEDs into a single byte.  That's why it uses only 4 bytes per row per color:
Code:
const int Frames = 2;
const int Colors = 3;
const int Rows = 8;
const int PixelPairs = 4;
unsigned char dots_color[Frames][Colors][Rows][PixelPairs];
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hm could you describe this a bit more detailed? maybe with an example? this would be very nice
Logged

Pages: [1]   Go Up
Jump to: