Skip to content

Commit

Permalink
Merge pull request #43 from jposada202020/correcting_readthedocs_API
Browse files Browse the repository at this point in the history
readthedocs_API_improvement
  • Loading branch information
jposada202020 committed May 20, 2021
2 parents 0844e35 + 97b1583 commit 2f625ce
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 9 deletions.
2 changes: 1 addition & 1 deletion adafruit_tinylora/adafruit_tinylora.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later

"""
`Adafruit_TinyLoRa`
`adafruit_tinylora`
====================================================
CircuitPython LoRaWAN implementation for use with
The Things Network.
Expand Down
2 changes: 1 addition & 1 deletion adafruit_tinylora/adafruit_tinylora_encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: MIT

"""
`adafruit_tinylora_encryption.py`
`adafruit_tinylora_encryption`
======================================================
Required tinyLoRA Encryption Methods for AES and
Message Integrity checks.
Expand Down
2 changes: 1 addition & 1 deletion adafruit_tinylora/ttn_as.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

"""
`ttn_as.py`
`ttn_as`
======================================================
AS920 The Things Network Frequency Plans
* Author(s): Brent Rubell
Expand Down
2 changes: 1 addition & 1 deletion adafruit_tinylora/ttn_au.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

"""
`ttn_au.py`
`ttn_au`
======================================================
The Things Network Frequency Plans - AU915
* Author(s): Brent Rubell
Expand Down
2 changes: 1 addition & 1 deletion adafruit_tinylora/ttn_cn.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: MIT

"""
`ttn_cn.py`
`ttn_cn`
======================================================
The Things Network Frequency Plans - CN470
* Author(s): IAMLIUBO
Expand Down
2 changes: 1 addition & 1 deletion adafruit_tinylora/ttn_eu.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

"""
`ttn_eu.py`
`ttn_eu`
======================================================
The Things Network Frequency Plans - EU863
* Author(s): Brent Rubell
Expand Down
2 changes: 1 addition & 1 deletion adafruit_tinylora/ttn_usa.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

"""
`ttn_usa.py`
`ttn_usa`
======================================================
The Things Network Frequency Plans - US902
* Author(s): Brent Rubell
Expand Down
25 changes: 23 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,28 @@
.. If your library file(s) are nested in a directory (e.g. /adafruit_foo/foo.py)
.. use this format as the module name: "adafruit_foo.foo"
TinyLoRa
========
.. automodule:: adafruit_tinylora
:members:
:member-order: bysource


.. automodule:: adafruit_tinylora.adafruit_tinylora
:members:

.. automodule:: adafruit_tinylora.adafruit_tinylora_encryption
:members:

.. automodule:: adafruit_tinylora.ttn_as
:members:

.. automodule:: adafruit_tinylora.ttn_au
:members:

.. automodule:: adafruit_tinylora.ttn_cn
:members:

.. automodule:: adafruit_tinylora.ttn_eu
:members:

.. automodule:: adafruit_tinylora.ttn_usa
:members:
18 changes: 18 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,21 @@ Ensure your device works with this simple test.
.. literalinclude:: ../examples/tinylora_simpletest.py
:caption: examples/tinylora_simpletest.py
:linenos:

Using TinyLora with a Sensor
----------------------------

Using TinyLoRa with a Si7021 Sensor

.. literalinclude:: ../examples/tinylora_simpletest_si7021.py
:caption: examples/tinylora_simpletest_si7021.py
:linenos:

Using a single Channel
----------------------

Ensure your device works with this simple test.

.. literalinclude:: ../examples/tinylora_simpletest_single_channel.py
:caption: examples/tinylora_simpletest_single_channel.py
:linenos:

0 comments on commit 2f625ce

Please sign in to comment.