diff --git a/PyMata/pymata.py b/PyMata/pymata.py index 7bcb06e..0b36a9c 100644 --- a/PyMata/pymata.py +++ b/PyMata/pymata.py @@ -121,7 +121,7 @@ def __init__(self, port_id='/dev/ttyACM0', bluetooth=True, verbose=True): if self.verbose: print("\nPython Version %s" % sys.version) - print('\nPyMata version 2.12 Copyright(C) 2013-16 Alan Yorinks All rights reserved.') + print('\nPyMata version 2.13 Copyright(C) 2013-16 Alan Yorinks All rights reserved.') # Instantiate the serial support class self.transport = PyMataSerial(port_id, self.command_deque) diff --git a/PyMata/pymata_command_handler.py b/PyMata/pymata_command_handler.py index bab2de6..2b8d465 100644 --- a/PyMata/pymata_command_handler.py +++ b/PyMata/pymata_command_handler.py @@ -54,12 +54,12 @@ class PyMataCommandHandler(threading.Thread): REPORT_VERSION = 0xF9 # report protocol version # user defined SYSEX commands - ENCODER_CONFIG = 0x20 # create and enable encoder object + ENCODER_CONFIG = 0x60 # create and enable encoder object TONE_PLAY = 0x5F # play a tone at a specified frequency and duration - SONAR_CONFIG = 0x60 # configure pins to control a Ping type sonar distance device + SONAR_CONFIG = 0x62 # configure pins to control a Ping type sonar distance device - ENCODER_DATA = 0x21 # current encoder position data - SONAR_DATA = 0x61 # distance data returned + ENCODER_DATA = 0x61 # current encoder position data + SONAR_DATA = 0x63 # distance data returned SERVO_CONFIG = 0x70 # set servo pin and max and min angles STRING_DATA = 0x71 # a string message with 14-bits per char diff --git a/setup.py b/setup.py index 4f6b118..7ebe8de 100644 --- a/setup.py +++ b/setup.py @@ -5,8 +5,8 @@ setup( name='PyMata', packages=['PyMata'], - install_requires=['pyserial>=2.7'], - version='2.12', + install_requires=['pyserial==2.7'], + version='2.13', description="A Python Protocol Abstraction Library For Arduino Firmata", author='Alan Yorinks', author_email='MisterYsLab@gmail.com',