Closed mytechguyri closed 2 years ago
Hi, thanks for your comment. It is inefficient but the driver is written to run under CircuitPython. CircuitPython does not support interrupts. I have the same issue with packet radio drivers. If you are only going to use it with a Raspberry Pi then feel free to fork the code and and interrupt support.
Unfortunately, my coding skills aren't there yet.... But, I think I managed to get it working to capture the interrupt with RPi.GPIO.... seems I had to use the dtoverlay in raspberry pi os so that spidev wouldn't have control of pins 7&8 even though those are the spi pins I'm using.... Since the hardware is no longer latching into them, I can use this library, and Rpi.GPIO to handle the interrupt events on the same pins.... Weird, but it works.
On Tue, Feb 15, 2022, 1:16 AM Martin Stephens @.***> wrote:
Hi, thanks for your comment. It is inefficient but the driver is written to run under CircuitPython. CircuitPython does not support interrupts. I have the same issue with packet radio drivers. If you are only going to use it with a Raspberry Pi then feel free to fork the code and and interrupt support.
— Reply to this email directly, view it on GitHub https://github.com/BiffoBear/CircuitPython_AS3935/issues/2#issuecomment-1039898431, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALD3AQXBZOGOVFTEZIT6D7TU3HVVFANCNFSM5ONKGOTQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
Its just so limiting, and inefficient to have to constantly poll the device, since digitalio doesn't support interrupts, whereas RPi.GPIO does support interrupts.