Vixen 3.6 to Arduino No (Inventr.io Hero)

Hello all.

I am rather new to the idea of controlling lights via my arduino board. Right now I am just trying to test the basic connectivity via a bread board and leds, however I seem to be having some issue getting Vixen 3.6 to talk to the arduino properly.

This is the code i am using.
#define UNO_VIXEN

#ifdef UNO_VIXEN
#define MAX_CHANNELS 18
int channels[MAX_CHANNELS] = {2,3,4,5,6,7,8,9,10,11,12,13,A0,A1,A2,A3,A4,A5};
#endif

int incomingByte[MAX_CHANNELS];

void setup()
{
int i;

Serial.begin(9600); // set up Serial at 9600 bps

for ( i = 0; i < MAX_CHANNELS; i ++ ) pinMode(channels, OUTPUT);
}

void loop()
{
int i;

if (Serial.available() >= MAX_CHANNELS)

for (i = 0; i < MAX_CHANNELS; i ++ ) analogWrite(channels, incomingByte);
}

Sometimes it will light the LED’s but now on the right channel. (I’m trying to use 3 thru 7 for the test), or it will just flash them in a random array.

Any ideas?