This is the MSP430 C code to process the input from an array of photosensors and output a PWM to a motor driver