Currently, the method _set_state(value) of LGPIOPin forces the input duty cycle to a whole percentage:
self._pwm = (freq, int(value * 100))
This leads to poor angular resolution when trying to use a Servo instance with a LGPIO pin factory.
Simply removing call to int() should improve performance:
self._pwm = (freq, value * 100)
Currently, the method
_set_state(value)ofLGPIOPinforces the input duty cycle to a whole percentage:This leads to poor angular resolution when trying to use a
Servoinstance with a LGPIO pin factory.Simply removing call to int() should improve performance: