Skip to content

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

Closed

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

Activity

  1. ladyada commented on Oct 16, 2017

    @ladyada
    MemberAuthor

    fixed by dan in latest build thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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