Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit 69809da

Browse files
committed
Updated capability report with DHT pin type
1 parent aeab660 commit 69809da

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

examples/retrieve_capability_report.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def format_capability_report(data):
3737
pin_modes = {0: 'Digital_Input', 1: 'Digital_Output',
3838
2: 'Analog_Input', 3: 'PWM', 4: 'Servo',
3939
6: 'I2C', 8: 'Stepper',
40-
11: 'Digital_Input_Pullup', 12: 'HC-SR04_Sonar', 13: 'Tone'}
40+
11: 'Digital_Input_Pullup', 12: 'HC-SR04_Sonar', 13: 'Tone',
41+
15: 'DHT'}
4142
x = 0
4243
pin = 0
4344

pymata4/private_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class PrivateConstants:
7070
SYSEX_REALTIME = 0x7F # MIDI Reserved for realtime messages
7171

7272
# reserved for PyMata
73-
PYMATA_EXPRESS_THREADED_VERSION = "1.9"
73+
PYMATA_EXPRESS_THREADED_VERSION = "1.10"
7474

7575
# matching FirmataExpress Version Number
7676
FIRMATA_EXPRESS_VERSION = "1.1"

pymata4/pymata4.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
1414
along with this library; if not, write to the Free Software
1515
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16+
17+
DHT support courtesy of Martyn Wheeler
18+
Based on the DHTNew library - https://github.com/RobTillaart/DHTNew
1619
"""
1720

1821
from collections import deque

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
packages=['pymata4'],
1212
install_requires=['pyserial'],
1313

14-
version='1.9',
14+
version='1.10',
1515
description="A Python Protocol Abstraction Library For Arduino Firmata",
1616
long_description=long_description,
1717
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)