8000 pulseio timers not properly cleared w/o hard reset on gemma/trinket · Issue #331 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
pulseio timers not properly cleared w/o hard reset on gemma/trinket #331
Closed
@ladyada

Description

@ladyada
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?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0