Controlling DMX light thru Sparkfun Flex Glove Controller - How do I send values to the light?

Hello all,

I am working on this project where I have to be able to control a 3 channel DMX PAR with a Sparkfun Flex Glove Controller. I am having trouble actually sending the values coming from the flex glove to the light. I tried using an “if” statement to grab certain values and send it thru one of the pins to the light. There must be something I’m missing here… I’m pretty new to this and I’m not really sure even the direction I should head in.
Here is my code right now:

#include <SparkFun_ADS1015_Arduino_Library.h>
#include <DMXSerial.h>

const int RedPin = 9; // PWM output pin for Red Light.
const int GreenPin = 6; // PWM output pin for Green Light.
const int BluePin = 5; // PWM output pin for Blue Light.

int RedList = {255, 255, 255, 255, 255, 255};
int GreenList = { 255, 255, 255, 255, 255, 255};
int BlueList = { 255, 255, 255, 255, 255, 255};

int RedLevel, GreenLevel, BlueLevel;

int RedNow = 0;
int GreenNow = 0;
int BlueNow = 0;

int state = 0;

ADS1015 indexSensor;
uint16_t hand[2] = {0, 0};

void setup() {
Wire.begin();
Serial.begin(115200);

//Set up each sensor, change the addresses based on the location of each sensor
if (indexSensor.begin(ADS1015_ADDRESS_GND) == false) {
Serial.println(“Index not found. Check wiring.”);
while (1);

DMXSerial.init(DMXController);

pinMode(RedPin, OUTPUT); // sets the digital pin as output
pinMode(GreenPin, OUTPUT);
pinMode(BluePin, OUTPUT);
}
indexSensor.setGain(ADS1015_CONFIG_PGA_TWOTHIRDS); // Gain of 2/3 to works well with flex glove board voltage swings (default is gain of 2)
}
void loop() {
RedLevel = RedList[state];
GreenLevel = GreenList[state];
BlueLevel = BlueList[state];

uint16_t data;
//Read and print our data
for (int finger = 0; finger < 2; finger++) {
hand[finger] = indexSensor.getAnalogData(finger);
}
for (int finger = 0; finger < 2; finger++)
{
Serial.print(finger);
Serial.print(": “);
Serial.print(hand[finger]);
Serial.print(” ");
delay(100);
}

Serial.println();
}

I took the basic Setup_Hand program that comes with the flex glove controller and am attempting to edit it to send the values thru DMX.
Thank you,

Cody