mirror of
https://github.com/thearn/Python-Arduino-Command-API.git
synced 2026-01-11 07:28:02 -05:00
some pep8 fixes
This commit is contained in:
@@ -1,4 +1 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
|
||||
from arduino import Arduino, Shrimp
|
||||
from .arduino import Arduino, Shrimp
|
||||
|
||||
@@ -375,7 +375,7 @@ class Arduino(object):
|
||||
|
||||
def shiftOut(self, dataPin, clockPin, pinOrder, value):
|
||||
"""
|
||||
Shift a byte out on the datapin using Arduino's shiftOut().
|
||||
Shift a byte out on the datapin using Arduino's shiftOut()
|
||||
|
||||
Input:
|
||||
dataPin (int): pin for data
|
||||
|
||||
@@ -37,7 +37,7 @@ def softBlink(led_pin, baud, port=""):
|
||||
def adjustBrightness(pot_pin, led_pin, baud, port=""):
|
||||
"""
|
||||
Adjusts brightness of an LED using a
|
||||
potentiometer
|
||||
potentiometer.
|
||||
"""
|
||||
board = Arduino(baud, port=port)
|
||||
while True:
|
||||
|
||||
2
setup.py
2
setup.py
@@ -4,7 +4,7 @@ setup(name='arduino-python',
|
||||
version='0.2',
|
||||
install_requires=['pyserial >= 2.6'],
|
||||
description="A light-weight Python library that provides a serial \
|
||||
bridge for communicating with Arduino microcontroller boards",
|
||||
bridge for communicating with Arduino microcontroller boards.",
|
||||
author='Tristan Hearn',
|
||||
author_email='tristanhearn@gmail.com',
|
||||
url='https://github.com/thearn/Python-Arduino-Command-API',
|
||||
|
||||
Reference in New Issue
Block a user