From linear to exponential PWM output

Hi Paco,
Sorry, I think I made a typo. That "255-x" should be"255-i" in the problem line.
The line should be:lookupTable[i] = (int)(0.5 + switchpointYValue + (255-switchpointYValue) * ( 1.0 - pow( (255-i)/(255-switchpointXValue), (endCurvePower/10)) ));

There is no "x" at this time. The lookuptable is being calculated for all 256 values, via the loop index "i".
That should work well.
Good Luck!
Mitch