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

Commit

Permalink
Version 2.18
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYsLab authored and MrYsLab committed Jul 4, 2018
1 parent 11e8a13 commit ae40457
Show file tree
Hide file tree
Showing 7 changed files with 322 additions and 322 deletions.
Binary file modified ArduinoSketch/libraries.zip
Binary file not shown.
16 changes: 9 additions & 7 deletions PyMata/pymata.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Copyright (c) 2015-2017 Alan Yorinks All rights reserved.
Copyright (c) 2015-2018 Alan Yorinks All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
Expand Down Expand Up @@ -69,9 +69,11 @@ class PyMata:
I2C = 0x06 # pin included in I2C setup
ONEWIRE = 0x07 # possible future feature
STEPPER = 0x08 # any pin in stepper mode
TONE = 0x09 # Any pin in TONE mode
ENCODER = 0x0a
SONAR = 0x0b # Any pin in SONAR mode
ENCODER = 0x09 # Any pin in encoder mode
SERIAL = 0x0a
PULLUP = 0x0b # Any pin in pullup mode
SONAR = 0x0c # Any pin in SONAR mode
TONE = 0x0d # Any pin in tone mode
IGNORE = 0x7f
LATCH_MODE = 0xE0 # this value is or'ed with pin modes for latched data callback

Expand Down Expand Up @@ -124,7 +126,7 @@ def __init__(self, port_id='/dev/ttyACM0', bluetooth=True, verbose=True, baud_ra

if self.verbose:
print("\nPython Version %s" % sys.version)
print('\nPyMata version 2.17 Copyright(C) 2013-17 Alan Yorinks All rights reserved.')
print('\nPyMata version 2.18 Copyright(C) 2013-18 Alan Yorinks All rights reserved.')

# Instantiate the serial support class
self.transport = PyMataSerial(port_id, self.command_deque, self.baud_rate)
Expand Down Expand Up @@ -788,7 +790,7 @@ def set_pin_mode(self, pin, mode, pin_type, cb=None):
:param pin: Pin number (for analog use the analog number, for example A4: use 4)
:param mode: INPUT, OUTPUT, PWM
:param mode: INPUT, OUTPUT, PWM, PULLUP
:param pin_type: ANALOG or DIGITAL
Expand All @@ -800,7 +802,7 @@ def set_pin_mode(self, pin, mode, pin_type, cb=None):
self._command_handler.send_command(command)

# enable reporting for input pins
if mode == self.INPUT:
if mode == self.INPUT or mode == self.PULLUP:
if pin_type == self.ANALOG:

# set analog response table to show this pin is an input pin
Expand Down
2 changes: 1 addition & 1 deletion documentation/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ <h2 class="section-title" id="header-submodules">Sub-modules</h2>
<p class="name"><a href="pymata.m.html">PyMata.pymata</a></p>


<div class="desc"><p>Copyright (c) 2015-2017 Alan Yorinks All rights reserved.</p>
<div class="desc"><p>Copyright (c) 2015-2018 Alan Yorinks All rights reserved.</p>
<p>This program is free software; you can redistribute it and/or
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
Version 3 as published by the Free Software Foundation; either
Expand Down
88 changes: 56 additions & 32 deletions documentation/html/pymata.m.html

Large diffs are not rendered by default.

285 changes: 134 additions & 151 deletions documentation/html/pymata_command_handler.m.html

Large diffs are not rendered by default.

244 changes: 114 additions & 130 deletions documentation/html/pymata_serial.m.html

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@

from setuptools import setup

with open('README.md') as f:
long_description = f.read()


setup(
name='PyMata',
packages=['PyMata'],
#install_requires=['pyserial==2.7'],
install_requires=['pyserial'],

version='2.17',
version='2.18',
description="A Python Protocol Abstraction Library For Arduino Firmata",
long_description=long_description,
long_description_content_type='text/markdown',

author='Alan Yorinks',
author_email='MisterYsLab@gmail.com',
url='https://github.com/MrYsLab/PyMata',
Expand Down

0 comments on commit ae40457

Please sign in to comment.