As MicroDev1 pointed out the problem is a divide by zero when calculating the duty cycle. Maybe need to check again in `common_hal_pwmio_pwmout_set_frequency()`.
As MicroDev1 pointed out the problem is a divide by zero when calculating the duty cycle. Maybe need to check again in `common_hal_pwmio_pwmout_set_frequency()`.