run the given RGB values through gamma-correction to get the PWM-value (which is then adjusted based on battery voltage)
reorg