Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 6cb0db5

Browse files
Version 2.13 Values made consistent with latest FiramatPlus
1 parent 54be0ac commit 6cb0db5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

PyMata/pymata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(self, port_id='/dev/ttyACM0', bluetooth=True, verbose=True):
121121

122122
if self.verbose:
123123
print("\nPython Version %s" % sys.version)
124-
print('\nPyMata version 2.12 Copyright(C) 2013-16 Alan Yorinks All rights reserved.')
124+
print('\nPyMata version 2.13 Copyright(C) 2013-16 Alan Yorinks All rights reserved.')
125125

126126
# Instantiate the serial support class
127127
self.transport = PyMataSerial(port_id, self.command_deque)

PyMata/pymata_command_handler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ class PyMataCommandHandler(threading.Thread):
5454
REPORT_VERSION = 0xF9 # report protocol version
5555

5656
# user defined SYSEX commands
57-
ENCODER_CONFIG = 0x20 # create and enable encoder object
57+
ENCODER_CONFIG = 0x60 # create and enable encoder object
5858
TONE_PLAY = 0x5F # play a tone at a specified frequency and duration
59-
SONAR_CONFIG = 0x60 # configure pins to control a Ping type sonar distance device
59+
SONAR_CONFIG = 0x62 # configure pins to control a Ping type sonar distance device
6060

61-
ENCODER_DATA = 0x21 # current encoder position data
62-
SONAR_DATA = 0x61 # distance data returned
61+
ENCODER_DATA = 0x61 # current encoder position data
62+
SONAR_DATA = 0x63 # distance data returned
6363

6464
SERVO_CONFIG = 0x70 # set servo pin and max and min angles
6565
STRING_DATA = 0x71 # a string message with 14-bits per char

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
setup(
66
name='PyMata',
77
packages=['PyMata'],
8-
install_requires=['pyserial>=2.7'],
9-
version='2.12',
8+
install_requires=['pyserial==2.7'],
9+
version='2.13',
1010
description="A Python Protocol Abstraction Library For Arduino Firmata",
1111
author='Alan Yorinks',
1212
author_email='[email protected]',

0 commit comments

Comments
 (0)