mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 21:20:13 +01:00
This allows to set the pulse width (for PWM mode) as a ratio relative to the period of the timer. Eg, 0.5 is a 50% duty cycle. You can set the ratio in the channel init, or using channel.pulse_width_ratio; the latter can also read the pulse width as a ratio.
1.7 KiB
1.7 KiB