Skip to content

How do I set the PWM frequency? #1327

Answered by phoddie
ptunstall asked this question in Q&A
Discussion options

You must be logged in to vote

Use the hz property as described here:

new device.io.PWM({
   pin: 12,
   hz: 5000
});

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ptunstall
Comment options

@phoddie
Comment options

@ptunstall
Comment options

@phoddie
Comment options

@ptunstall
Comment options

Answer selected by ptunstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants