Skip to content

Pi Pico (RP2040): pulseio.PulseIn.deinit() doesn't seem to release the pin hardware #4657

@eigenein

Description

@eigenein

Firmware

Adafruit CircuitPython 6.2.0 on 2021-04-05; Raspberry Pi Pico with rp2040

Code 1

from board import GP13
from pulseio import PulseIn

PulseIn(GP13).deinit()
PulseIn(GP13).deinit()  # Traceback 1

Code 2

from board import GP13
from pulseio import PulseIn

with PulseIn(GP13):
    pass
with PulseIn(GP13):  # Traceback 2
    pass

Traceback 1

Traceback (most recent call last):
  File "code.py", line 5, in <module>
ValueError: GP13 in use

Traceback 2

Traceback (most recent call last):
  File "code.py", line 6, in <module>
ValueError: GP13 in use

Metadata

Metadata

Assignees

Labels

bugrp2040Raspberry Pi RP2040

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions