Currently, the desired PWM cycle period is specified as a float assumed to represent the length of each cycle in seconds. This would be more clear if it was specified with the std::chrono:: system (e.g. queuePwm(pin, duty, std::chrono::microseconds(500)).
Also, this value represents the ideal period, and definitely not the maximum! It should be renamed accordingly.
Currently, the desired PWM cycle period is specified as a float assumed to represent the length of each cycle in seconds. This would be more clear if it was specified with the
std::chrono::
system (e.g.queuePwm(pin, duty, std::chrono::microseconds(500))
.Also, this value represents the ideal period, and definitely not the maximum! It should be renamed accordingly.