Skip to content
This repository was archived by the owner on Nov 7, 2024. It is now read-only.

Commit ad8b8a2

Browse files
committed
Ready for upload to PyPi
2 parents 05f4a1f + 3f53aa7 commit ad8b8a2

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

README.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ or individual libraries can be installed using
4242

4343
Installing 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-
4845
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
4946
PyPI <https://pypi.org/project/adafruit-circuitpython-as3935/>`_.
5047
To 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")

examples/as3935_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
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")

0 commit comments

Comments
 (0)