In edgepi_pwm.py, In set_config, duty_cycle and frequency should both be float. This should be reflected in both the type hints and the docstring. Currently, the type hints have duty_cycle as an int and frequency as a float, while the docstring has both as an int. The docstring should also change the parameter bounds from 0-100 to 0-1 to be consistent with _set_duty_cycle.
In edgepi_pwm.py, In
set_config
,duty_cycle
andfrequency
should both be float. This should be reflected in both the type hints and the docstring. Currently, the type hints haveduty_cycle
as an int andfrequency
as a float, while the docstring has both as an int. The docstring should also change the parameter bounds from 0-100 to 0-1 to be consistent with_set_duty_cycle
.