adafruit / adafruit/Adafruit_CircuitPython_AW9523

No deinit() method on DigitalInOut class

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Good morning!

Trying to use HC-SR04 sensors via the AW9523 board. I'm trying to modify the hcsr04 library to accept the DigitalInOut objects from the AW9523 instance, but they don't have a deinit() method. This is counter to the notes in the AW9523 library, which say "this interface is exactly the same as the digitalio.DigitalInOut class". It's not, since at least one method is missing.

So either this library needs to be brought in line with the main digitalio.DigitalInOut class, or the notes should be updated to reflect that they're substantially the same but not 1:1 the same. I've love if it were the first, because then that makes this a drop-in replacement.

Thanks.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the AW9523 DigitalInOut implementation and compare its interface with digitalio.DigitalInOut, focusing on the missing deinit() method. Verify how the hcsr04 library uses deinit() and decide whether the interface should support it or the AW9523 documentation should be revised; done means the compatibility behavior or documentation is consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.