biffobear / circuitpython_as3935 Goto Github PK
View Code? Open in Web Editor NEWA CircuitPython driver library for the Franklin AS3935 lightning detector. The driver supports connections via SPI and I2C.
License: MIT License
A CircuitPython driver library for the Franklin AS3935 lightning detector. The driver supports connections via SPI and I2C.
License: MIT License
Release action is failing on the upload to PyPi upload step.
I've found some bugs in the latest release. It seems that the code in the repo differs from what the latest release has... and if I'm reading this correctly it doesn't seem to be for 8.X version of Circuit Python. It has some very basic errors trying to use the constants (since they're declared in one class and being referenced from a self.XX where self is a different class)
So, I'm wondering if this has been tested recently (with the latest CircuitPython) and if you could point me towards which version of the .py files I should be working from.
I've tried 2 different boards, checked the wiring multiple times on each, and always get this stack trace:
Traceback (most recent call last):
File "code.py", line 21, in
File "/lib/biffobear_as3935.py", line 548, in init
File "/lib/biffobear_as3935.py", line 135, in init
File "/lib/biffobear_as3935.py", line 488, in _startup_checks
File "/lib/biffobear_as3935.py", line 456, in calibrate_clocks
File "/lib/biffobear_as3935.py", line 443, in _check_clock_calibration
OSError: Problem communicating with the sensor. Check your wiring.
I'm just using the basic example. My Interrupt Pin is D21 and CS is D20.
I also noted that there are two different SPI start functions I could use, either one in board or one in busio.
Thanks!
Hi,
Can any one tell me how to set up the driver to reduce false possitives, unfortuntaly my knowledge of python3 is a little limited, I would be greatful for any help.
Michael
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.