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

Commit

Permalink
Ready for upload to PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
BiffoBear committed Mar 11, 2021
2 parents 05f4a1f + 3f53aa7 commit ad8b8a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ or individual libraries can be installed using

Installing from PyPI
=====================
.. note:: This library is not available on PyPI yet. Install documentation is included
as a standard element. Stay tuned for PyPI availability!

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-as3935/>`_.
To install for current user:
Expand Down Expand Up @@ -118,7 +115,7 @@ For a SPI connection:
if sensor.interrupt_set: # An event has occurred
# The interrupt_status is cleared after a read, so assign it
# to a variable in case you need the value later.
event_type = sensor.interrupt_status == sensor.LIGHTNING
event_type = sensor.interrupt_status
if event_type == sensor.LIGHTNING: # It's a lightning event
print(f"Strike Energy = {sensor.energy}")
print(f"Distance to storm front = {sensor.distance} km")
Expand Down
2 changes: 1 addition & 1 deletion examples/as3935_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
if sensor.interrupt_set: # An event has occurred
# The interrupt_status is cleared after a read, so assign it
# to a variable in case you need the value later.
event_type = sensor.interrupt_status == sensor.LIGHTNING
event_type = sensor.interrupt_status
if event_type == sensor.LIGHTNING: # It's a lightning event
print(f"Strike Energy = {sensor.energy}")
print(f"Distance to storm front = {sensor.distance} km")
Expand Down

0 comments on commit ad8b8a2

Please sign in to comment.