adafruit-circuitpython-rfm 1.0.2__tar.gz → 1.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/.readthedocs.yaml +1 -1
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/PKG-INFO +1 -1
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_circuitpython_rfm.egg-info/PKG-INFO +1 -1
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_rfm/rfm69.py +3 -2
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_rfm/rfm9x.py +5 -4
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_rfm/rfm9xfsk.py +3 -2
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_rfm/rfm_common.py +3 -3
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/pyproject.toml +1 -1
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/.github/PULL_REQUEST_TEMPLATE/adafruit_circuitpython_pr.md +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/.github/workflows/build.yml +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/.github/workflows/failure-help-text.yml +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/.github/workflows/release_gh.yml +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/.github/workflows/release_pypi.yml +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/.pre-commit-config.yaml +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/CODE_OF_CONDUCT.md +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/LICENSE +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/LICENSES/CC-BY-4.0.txt +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/LICENSES/MIT.txt +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/LICENSES/Unlicense.txt +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/README.rst +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/README.rst.license +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_circuitpython_rfm.egg-info/SOURCES.txt +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_circuitpython_rfm.egg-info/dependency_links.txt +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_circuitpython_rfm.egg-info/requires.txt +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_circuitpython_rfm.egg-info/top_level.txt +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_rfm/__init__.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/_static/favicon.ico +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/_static/favicon.ico.license +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/api.rst +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/api.rst.license +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/conf.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/examples.rst +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/examples.rst.license +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/index.rst +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/index.rst.license +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/requirements.txt +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_fsk_node1.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_fsk_node2.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_msgpack_data.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_raw.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_rh_asyncio_listen.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_rh_asyncio_listen_ack.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_rh_asyncio_node1.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_rh_base.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_rh_base_ack.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_rh_node1.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_rh_node1_ack.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_simpletest.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_transmit.py +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/optional_requirements.txt +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/requirements.txt +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/ruff.toml +0 -0
- {adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/setup.cfg +0 -0
|
@@ -44,7 +44,7 @@ except ImportError:
|
|
|
44
44
|
pass
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
__version__ = "1.0.
|
|
47
|
+
__version__ = "1.0.3"
|
|
48
48
|
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RFM.git"
|
|
49
49
|
|
|
50
50
|
|
|
@@ -639,10 +639,11 @@ class RFM69(RFMSPI):
|
|
|
639
639
|
# Write payload to transmit fifo
|
|
640
640
|
self.write_from(_RF69_REG_00_FIFO, complete_payload)
|
|
641
641
|
|
|
642
|
-
def read_fifo(self) -> bytearray:
|
|
642
|
+
def read_fifo(self) -> Optional[bytearray]:
|
|
643
643
|
"""Read the packet from the FIFO."""
|
|
644
644
|
# Read the length of the FIFO.
|
|
645
645
|
fifo_length = self.read_u8(_RF69_REG_00_FIFO)
|
|
646
|
+
packet = None # return None if FIFO empty
|
|
646
647
|
if fifo_length > 0: # read and clear the FIFO if anything in it
|
|
647
648
|
packet = bytearray(fifo_length)
|
|
648
649
|
# read the packet
|
|
@@ -23,14 +23,14 @@ try:
|
|
|
23
23
|
from circuitpython_typing import ReadableBuffer
|
|
24
24
|
|
|
25
25
|
try:
|
|
26
|
-
from typing import Literal
|
|
26
|
+
from typing import Literal, Optional
|
|
27
27
|
except ImportError:
|
|
28
28
|
from typing_extensions import Literal
|
|
29
29
|
|
|
30
30
|
except ImportError:
|
|
31
31
|
pass
|
|
32
32
|
|
|
33
|
-
__version__ = "1.0.
|
|
33
|
+
__version__ = "1.0.3"
|
|
34
34
|
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RFM.git"
|
|
35
35
|
|
|
36
36
|
# pylint: disable=duplicate-code
|
|
@@ -131,7 +131,7 @@ class RFM9x(RFMSPI):
|
|
|
131
131
|
- preamble_length: The length in bytes of the packet preamble (default 8).
|
|
132
132
|
- high_power: Boolean to indicate a high power board (RFM95, etc.). Default
|
|
133
133
|
is True for high power.
|
|
134
|
-
- baudrate: Baud rate of the SPI connection, default is
|
|
134
|
+
- baudrate: Baud rate of the SPI connection, default is 5mhz but you might
|
|
135
135
|
choose to lower to 1mhz if using long wires or a breadboard.
|
|
136
136
|
- agc: Boolean to Enable/Disable Automatic Gain Control - Default=False (AGC off)
|
|
137
137
|
- crc: Boolean to Enable/Disable Cyclic Redundancy Check - Default=True (CRC Enabled)
|
|
@@ -517,10 +517,11 @@ class RFM9x(RFMSPI):
|
|
|
517
517
|
# Write payload and header length.
|
|
518
518
|
self.write_u8(_RF95_REG_22_PAYLOAD_LENGTH, len(payload))
|
|
519
519
|
|
|
520
|
-
def read_fifo(self) -> bytearray:
|
|
520
|
+
def read_fifo(self) -> Optional[bytearray]:
|
|
521
521
|
"""Read the data from the FIFO."""
|
|
522
522
|
# Read the length of the FIFO.
|
|
523
523
|
fifo_length = self.read_u8(_RF95_REG_13_RX_NB_BYTES)
|
|
524
|
+
packet = None # return None if FIFO empty
|
|
524
525
|
if fifo_length > 0: # read and clear the FIFO if anything in it
|
|
525
526
|
packet = bytearray(fifo_length)
|
|
526
527
|
current_addr = self.read_u8(_RF95_REG_10_FIFO_RX_CURRENT_ADDR)
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_rfm/rfm9xfsk.py
RENAMED
|
@@ -32,7 +32,7 @@ try:
|
|
|
32
32
|
except ImportError:
|
|
33
33
|
pass
|
|
34
34
|
|
|
35
|
-
__version__ = "1.0.
|
|
35
|
+
__version__ = "1.0.3"
|
|
36
36
|
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RFM.git"
|
|
37
37
|
|
|
38
38
|
# pylint: disable=duplicate-code
|
|
@@ -563,10 +563,11 @@ class RFM9xFSK(RFMSPI):
|
|
|
563
563
|
# Write payload to transmit fifo
|
|
564
564
|
self.write_from(_RF95_REG_00_FIFO, complete_payload)
|
|
565
565
|
|
|
566
|
-
def read_fifo(self) -> bytearray:
|
|
566
|
+
def read_fifo(self) -> Optional[bytearray]:
|
|
567
567
|
"""Read the data from the FIFO."""
|
|
568
568
|
# Read the length of the FIFO.
|
|
569
569
|
fifo_length = self.read_u8(_RF95_REG_00_FIFO)
|
|
570
|
+
packet = None # return None if FIFO empty
|
|
570
571
|
if fifo_length > 0: # read and clear the FIFO if anything in it
|
|
571
572
|
packet = bytearray(fifo_length)
|
|
572
573
|
# read the packet
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_rfm/rfm_common.py
RENAMED
|
@@ -36,7 +36,7 @@ except ImportError:
|
|
|
36
36
|
pass
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
__version__ = "1.0.
|
|
39
|
+
__version__ = "1.0.3"
|
|
40
40
|
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RFM.git"
|
|
41
41
|
|
|
42
42
|
|
|
@@ -430,7 +430,7 @@ class RFMSPI:
|
|
|
430
430
|
self.crc_error_count += 1
|
|
431
431
|
else:
|
|
432
432
|
packet = self.read_fifo()
|
|
433
|
-
if self.radiohead:
|
|
433
|
+
if (packet is not None) and self.radiohead:
|
|
434
434
|
if len(packet) < 5:
|
|
435
435
|
# reject the packet if it is too small to contain the RAdioHead Header
|
|
436
436
|
packet = None
|
|
@@ -503,7 +503,7 @@ class RFMSPI:
|
|
|
503
503
|
self.crc_error_count += 1
|
|
504
504
|
else:
|
|
505
505
|
packet = self.read_fifo()
|
|
506
|
-
if self.radiohead:
|
|
506
|
+
if (packet is not None) and self.radiohead:
|
|
507
507
|
if len(packet) < 5:
|
|
508
508
|
# reject the packet if it is too small to contain the RAdioHead Header
|
|
509
509
|
packet = None
|
|
@@ -13,7 +13,7 @@ requires = [
|
|
|
13
13
|
[project]
|
|
14
14
|
name = "adafruit-circuitpython-rfm"
|
|
15
15
|
description = "Support for RFM69 and RFM9x modules"
|
|
16
|
-
version = "1.0.
|
|
16
|
+
version = "1.0.3"
|
|
17
17
|
readme = "README.rst"
|
|
18
18
|
authors = [
|
|
19
19
|
{name = "Adafruit Industries", email = "circuitpython@adafruit.com"}
|
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/.github/workflows/build.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/.pre-commit-config.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/LICENSES/CC-BY-4.0.txt
RENAMED
|
File without changes
|
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/LICENSES/Unlicense.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/adafruit_rfm/__init__.py
RENAMED
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/_static/favicon.ico
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/examples.rst.license
RENAMED
|
File without changes
|
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/docs/index.rst.license
RENAMED
|
File without changes
|
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_fsk_node1.py
RENAMED
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_fsk_node2.py
RENAMED
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_msgpack_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_rh_base.py
RENAMED
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_rh_base_ack.py
RENAMED
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_rh_node1.py
RENAMED
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_rh_node1_ack.py
RENAMED
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_simpletest.py
RENAMED
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/examples/rfm_transmit.py
RENAMED
|
File without changes
|
{adafruit_circuitpython_rfm-1.0.2 → adafruit_circuitpython_rfm-1.0.3}/optional_requirements.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|