Skip to content

pulseio timers not properly cleared w/o hard reset on gemma/trinket #331

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
ladyada opened this issue Oct 15, 2017 · 1 comment
Closed

Comments

@ladyada
Copy link
Member

ladyada commented Oct 15, 2017

import pulseio
import time
import board

pwm = pulseio.PWMOut(board.D0)
pwm.duty_cycle = int(0.5 * 65535)

save this code to a gemma/trinket then try to change D0 to D2 and back, you will get a

Traceback (most recent call last):
File "main.py", line 5, in
RuntimeError: All timers in use

on the switch-back. when you hard reset, tho, pwm works great :)

doesnt seem to happen with CPX (so maybe some #ifdef w/ATSAMD21E18?)

@ladyada
Copy link
Member Author

ladyada commented Oct 16, 2017

fixed by dan in latest build thx!

@ladyada ladyada closed this as completed Oct 16, 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