How to Translate a PWM pulses to standard RC values

From the Adafruit code:
pwm.setPWM(pin, 4096, 0); // turns pin fully on
pwm.setPWM(pin, 0, 4096); // turns pin fully off
Strange, because I expected 0-4095.

I suppose you map that 940-1860 value to 0-4095.
And then use
pwm.setPWM(pin, mappedValue ,(4095 - mappedValue));
Leo..