We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import gpio import gpio.pwm main: led := gpio.Pin 5 generator := pwm.Pwm --frequency=400 channel2 := generator.start (gpio.Pin 12) channel3 := generator.start (gpio.Pin 13) channel4 := generator.start (gpio.Pin 14) channel5 := generator.start (gpio.Pin 15) x := 50 [ channel2, channel3, channel4, channel5 ].do: it.set_duty_factor (x/100.0) x += 10
The setting of the duty_factor is unreliable. Things get much more stable, if there is a sleep --ms=10 between the start and the set_duty_factor.
sleep --ms=10
start
set_duty_factor
The text was updated successfully, but these errors were encountered:
This is an ESP-IDF issue: espressif/esp-idf#6710 espressif/esp-idf#7288 espressif/arduino-esp32#5306
Sorry, something went wrong.
This has been solved by updating the esp-idf.
No branches or pull requests
The setting of the duty_factor is unreliable.
Things get much more stable, if there is a
sleep --ms=10
between thestart
and theset_duty_factor
.The text was updated successfully, but these errors were encountered: