Rainbowduino v3.0

The Rainbowduino board is an Arduino compatible controller board with professional multiplexed LED driver. It can drive an 8x8 RGB Led Matrix or a 4x4x4 RGB LED Cube in common Anode mode. Rainbowduino v3.0 uses two MY9221 chips which is a 12-channels (R/G/B x 4) constant current Adaptive Pulse Density Modulation**(APDM)**. Rainbowduino v3.0 has provisions for cascading more such boards with I2C interface.

Rainbowduino v3.0 is flashed with Arduino boot-loader and this makes it easy to program sketches using Arduino IDE. Unlike other LED drivers, this comes with a USB to UART (FT232RL) inbuilt for programming the sketches.

Always set the slide switch to USB position for programming the Rainbowduino v3.0. Setting the slide switch to HOST position makes the onboard FT232 act as UartSBee (This feature is not required for Rainbowduino v3.0 normal operation)

/* Rainbowduino v3.0 Library examples: Print Shapes on 2D plane (8x8 matrix) */#include<Rainbowduino.h>voidsetup(){Rb.init();}unsignedcharx,y,z;voidloop(){Rb.drawCircle(3,4,3,0xFF0000);// draw a red circle of radius 3 at (3,4).delay(1000);Rb.blankDisplay();Rb.fillCircle(3,4,2,0x0000FF);// draw a filled blue circle of radius 2 at (3,4).delay(1000);Rb.blankDisplay();Rb.drawLine(0,0,7,7,0x00FF00);// draw a line from (0,0) to (7,7).delay(1000);Rb.blankDisplay();Rb.drawVerticalLine(0,0,7,random(0xFFFFFF));// draw a vertical line from (0,0) of length 7 pixelsdelay(1000);Rb.blankDisplay();Rb.drawHorizontalLine(0,0,7,random(0xFFFFFF));// draw a horizontal line from (0,0) of length 7 pixelsdelay(1000);Rb.blankDisplay();Rb.drawRectangle(0,0,4,6,random(0xFFFFFF));// draw a rectangle line from (0,0) of length 4 and width 6 pixelsdelay(1000);Rb.blankDisplay();Rb.fillRectangle(0,0,7,7,random(0xFFFFFF));// draw a filled rectangle line from (0,0) of length and width 7 pixelsdelay(1000);Rb.blankDisplay();}