Closed
Description
In the latest builds (esp32-20210924-unstable-v1.17-68-g35fb90bd5.bin, esp32-20211009-unstable-v1.17-74-gd42cba0d2.bin) PWM object fails to set frequency and duty cycle.
Probably there is a mismatch between the build process and PR #7817
PWM methods:
['__class__', 'deinit', 'duty', 'freq', 'init']
So following latest docs duty_ns
and duty_u16
are missing
And the errors are:
>>> pwm.duty(200)
E (227090) ledc: ledc_set_duty(485): speed_mode argument is invalid
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: (-258, 'ESP_ERR_INVALID_ARG')
>>> pwm.freq(200)
E (256550) ledc: ledc_bind_channel_timer(220): speed_mode argument is invalid
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: failed to bind timer to channel
Metadata
Metadata
Assignees
Labels
No labels