Skip to content

SAMD51 - Soft reset doesnt clear out pin usage state #352

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 20, 2017 · 0 comments
Closed

SAMD51 - Soft reset doesnt clear out pin usage state #352

ladyada opened this issue Oct 20, 2017 · 0 comments
Assignees
Milestone

Comments

@ladyada
Copy link
Member

ladyada commented Oct 20, 2017

run this code

import board
from digitalio import DigitalInOut, Direction, Pull

led = DigitalInOut(board.D13)
led.direction = Direction.OUTPUT

while True:
    led.value = not led.value

then soft reset or save the file, you get a

main.py output:
Traceback (most recent call last):
File "main.py", line 4, in
ValueError: Pin PA21 in use

@ladyada ladyada added this to the 3.0 Beta milestone Oct 20, 2017
@ladyada ladyada changed the title Soft reset doesnt clear out pin usage state SAMD51 - Soft reset doesnt clear out pin usage state Oct 20, 2017
@tannewt tannewt self-assigned this Oct 20, 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

2 participants