added Map function

added Map function like the arduino has to help show the correct color
when sent to arduino.