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

Commit

Permalink
Version 2.13 Values made consistent with latest FiramatPlus
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterYsLab@gmail.com committed Sep 3, 2016
1 parent 54be0ac commit 6cb0db5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PyMata/pymata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions PyMata/pymata_command_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 6cb0db5

Please sign in to comment.