A library for the spark core to correct for the nonlinearity in the RGB LED