This repository was archived by the owner on Nov 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,9 +42,6 @@ or individual libraries can be installed using
4242
4343Installing from PyPI
4444=====================
45- .. note :: This library is not available on PyPI yet. Install documentation is included
46- as a standard element. Stay tuned for PyPI availability!
47-
4845On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
4946PyPI <https://pypi.org/project/adafruit-circuitpython-as3935/> `_.
5047To install for current user:
@@ -118,7 +115,7 @@ For a SPI connection:
118115 if sensor.interrupt_set: # An event has occurred
119116 # The interrupt_status is cleared after a read, so assign it
120117 # to a variable in case you need the value later.
121- event_type = sensor.interrupt_status == sensor. LIGHTNING
118+ event_type = sensor.interrupt_status
122119 if event_type == sensor.LIGHTNING : # It's a lightning event
123120 print (f " Strike Energy = { sensor.energy} " )
124121 print (f " Distance to storm front = { sensor.distance} km " )
Original file line number Diff line number Diff line change 2828 if sensor .interrupt_set : # An event has occurred
2929 # The interrupt_status is cleared after a read, so assign it
3030 # to a variable in case you need the value later.
31- event_type = sensor .interrupt_status == sensor . LIGHTNING
31+ event_type = sensor .interrupt_status
3232 if event_type == sensor .LIGHTNING : # It's a lightning event
3333 print (f"Strike Energy = { sensor .energy } " )
3434 print (f"Distance to storm front = { sensor .distance } km" )
You can’t perform that action at this time.
0 commit comments