def set_pulse_width_range(self, min_pulse=750, max_pulse=2250):
        """Change min and max pulse widths."""
        self._min_duty = int((min_pulse * self._pwm_out.frequency) / 1000000 * 0xffff)
        max_duty = (max_pulse * self._pwm_out.frequency) / 1000000 * 0xffff
        self._duty_range = int(max_duty - self._min_duty)
def set_pulse_width_range ( self , min_pulse = 750 , max_pulse = 2250 ) : self . _min_duty = int ( ( min_pulse * self . _pwm_out . frequency ) / 1000000 * 0xffff ) max_duty = ( max_pulse * self . _pwm_out . frequency ) / 1000000 * 0xffff self . _duty_range = int ( max_duty - self . _min_duty )
Change min and max pulse widths.