-
Hi how do I manually define my PWM frequency for both servo and PWM? i see in the pwm.c file there's a "freq_hz" being set via some config variable. Is it possible to define this in the manifest and/or function? |
Beta Was this translation helpful? Give feedback.
Answered by
phoddie
Mar 30, 2024
Replies: 1 comment 5 replies
-
Use the new device.io.PWM({
pin: 12,
hz: 5000
}); |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
ptunstall
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use the
hz
property as described here: