From dc7a75331278ad2e06a5ba58c30e3b861861cdb8 Mon Sep 17 00:00:00 2001 From: Alexei Chetroi Date: Thu, 26 Dec 2019 14:13:26 -0500 Subject: [PATCH 1/2] Version bump 0.9.0dev0 --- zigpy_xbee/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zigpy_xbee/__init__.py b/zigpy_xbee/__init__.py index 65276e3..3d6e1c1 100644 --- a/zigpy_xbee/__init__.py +++ b/zigpy_xbee/__init__.py @@ -1,5 +1,5 @@ MAJOR_VERSION = 0 -MINOR_VERSION = 8 +MINOR_VERSION = 9 PATCH_VERSION = "0.dev0" __short_version__ = "{}.{}".format(MAJOR_VERSION, MINOR_VERSION) __version__ = "{}.{}".format(__short_version__, PATCH_VERSION) From 09fd091a618d382fc4d05757fa554b93ebbb6996 Mon Sep 17 00:00:00 2001 From: Alexei Chetroi Date: Wed, 29 Jan 2020 15:41:38 -0500 Subject: [PATCH 2/2] Add GPIO pins (#79) --- zigpy_xbee/api.py | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/zigpy_xbee/api.py b/zigpy_xbee/api.py index 70e8f59..0c6183e 100644 --- a/zigpy_xbee/api.py +++ b/zigpy_xbee/api.py @@ -99,7 +99,7 @@ class ModemStatus(t.uint8_t, t.UndefinedEnum): "node_id_indicator": (0x95, (), None), } -# https://www.digi.com/resources/documentation/digidocs/PDFs/90000976.pdf pg 157 +# https://www.digi.com/resources/documentation/digidocs/pdfs/90001539.pdf pg 175 AT_COMMANDS = { # Addressing commands "DH": t.uint32_t, @@ -153,15 +153,13 @@ class ModemStatus(t.uint8_t, t.UndefinedEnum): "NB": t.uint8_t, # 0 - 3 (an Enum) "SB": t.uint8_t, # 0 - 1 (an Enum) "RO": t.uint8_t, - "D7": t.uint8_t, # 0 - 7 (an Enum) "D6": t.uint8_t, # 0 - 5 (an Enum) + "D7": t.uint8_t, # 0 - 7 (an Enum) + "P3": t.uint8_t, # 0 - 5 (an Enum) + "P4": t.uint8_t, # 0 - 5 (an Enum) # I/O commands "IR": t.uint16_t, "IC": t.uint16_t, - "P0": t.uint8_t, # 0 - 5 (an Enum) - "P1": t.uint8_t, # 0 - 5 (an Enum) - "P2": t.uint8_t, # 0 - 5 (an Enum) - "P3": t.uint8_t, # 0 - 5 (an Enum) "D0": t.uint8_t, # 0 - 5 (an Enum) "D1": t.uint8_t, # 0 - 5 (an Enum) "D2": t.uint8_t, # 0 - 5 (an Enum) @@ -169,6 +167,15 @@ class ModemStatus(t.uint8_t, t.UndefinedEnum): "D4": t.uint8_t, # 0 - 5 (an Enum) "D5": t.uint8_t, # 0 - 5 (an Enum) "D8": t.uint8_t, # 0 - 5 (an Enum) + "D9": t.uint8_t, # 0 - 5 (an Enum) + "P0": t.uint8_t, # 0 - 5 (an Enum) + "P1": t.uint8_t, # 0 - 5 (an Enum) + "P2": t.uint8_t, # 0 - 5 (an Enum) + "P5": t.uint8_t, # 0 - 5 (an Enum) + "P6": t.uint8_t, # 0 - 5 (an Enum) + "P7": t.uint8_t, # 0 - 5 (an Enum) + "P8": t.uint8_t, # 0 - 5 (an Enum) + "P9": t.uint8_t, # 0 - 5 (an Enum) "LT": t.uint8_t, "PR": t.uint16_t, "RP": t.uint8_t,