8000 PWMOut duty_cycle wrong when using variable frequency. · Issue #148 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

PWMOut duty_cycle wrong when using variable frequency. #148

New issue

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

Closed
tannewt opened this issue Jun 6, 2017 · 0 comments
Closed

PWMOut duty_cycle wrong when using variable frequency. #148

tannewt opened this issue Jun 6, 2017 · 0 comments

Comments

@tannewt
Copy link
Member
tannewt commented Jun 6, 2017

The duty cycle is incorrect after changing the frequency of a variable frequency PWMOut.

    piezo.frequency = int(tone)
    piezo.duty_cycle = 2 ** 15  # half of max
    time.sleep(duration)
    piezo.duty_cycle = 0
@tannewt tannewt closed this as completed in a884acc Jun 9, 2017
dhalbert pushed a commit to dhalbert/circuitpython that referenced this issue Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0