You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
hiya, fastest way to get it added is if you're able to add that function and submit a PR. especially since you're testing in a particular context. deiniting should just set the pin to be an input :)
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.
The text was updated successfully, but these errors were encountered: