-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bce8a19
commit a0836ee
Showing
26 changed files
with
89 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,15 @@ | |
# display the version and help for Rpi package RpiMotorlib | ||
# author :Gavin Lyons | ||
# web :https://github.com/gavinlyonsrepo/RpiMotorLib | ||
# mail :[email protected] | ||
# python_version :3.5.3 | ||
# python_version :3.7.3 | ||
""" | ||
|
||
# ==========================IMPORTS====================== | ||
# Import the system module needed to run rpiMotorScriptLib.py | ||
import argparse | ||
import sys | ||
|
||
__version__ = "3.1-2" | ||
__version__ = "3.2-3" | ||
__author__ = "Gavin Lyons" | ||
__url__ = "https://github.com/gavinlyonsrepo/RpiMotorLib" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,7 @@ | |
author :Gavin Lyons | ||
web :https://github.com/gavinlyonsrepo/RpiMotorLib | ||
mail :[email protected] | ||
python_version :3.5.3 | ||
python_version :3.7.3 | ||
""" | ||
|
||
# ========================== IMPORTS ====================== | ||
|
@@ -112,6 +111,7 @@ def cleanup(self, clean_up=False): | |
GPIO.output(self.pin_one, False) | ||
GPIO.output(self.pin_two, False) | ||
self.my_pwm.ChangeDutyCycle(0) | ||
self.my_pwm.stop() | ||
if clean_up: | ||
GPIO.cleanup() | ||
|
||
|
@@ -193,8 +193,9 @@ def cleanup(self, clean_up=False): | |
if self.verbose: | ||
print("rpi_dc_lib.py : Cleaning up") | ||
GPIO.output(self.pin_one, False) | ||
self.my_pwm.ChangeDutyCycle(0) | ||
GPIO.output(self.pin_two, False) | ||
self.my_pwm.ChangeDutyCycle(0) | ||
self.my_pwm.stop() | ||
if clean_up: | ||
GPIO.cleanup() | ||
|
||
|
@@ -331,6 +332,7 @@ def cleanup(self, clean_up=False): | |
GPIO.output(self.pin_one, False) | ||
GPIO.output(self.pin_two, False) | ||
self.my_pwm.ChangeDutyCycle(0) | ||
self.my_pwm.stop() | ||
if clean_up: | ||
GPIO.cleanup() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,7 @@ | |
# This file is for servos controlled by GPIO PWM | ||
# author :Gavin Lyons | ||
# web :https://github.com/gavinlyonsrepo/RpiMotorLib | ||
# mail :[email protected] | ||
# python_version :3.4.2 | ||
# python_version :3.7.3 | ||
""" | ||
# ========================== IMPORTS ====================== | ||
# Import the system modules needed to run rpiMotorlib.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
setup( | ||
name="rpimotorlib", | ||
version="3.1", | ||
version="3.2", | ||
author="Gavin Lyons", | ||
author_email="[email protected]", | ||
description="A python 3 library for various motors and servos to connect to a raspberry pi", | ||
|
@@ -11,14 +11,14 @@ | |
license="GPL", | ||
keywords="TB6612FNG L9110S DRV8833 A3967 L298 servo motor library raspberry pi 28BYJ-48 A4988 stepper DRV8825", | ||
url="https://github.com/gavinlyonsrepo/RpiMotorLib", | ||
download_url='https://github.com/gavinlyonsrepo/RpiMotorLib/archive/3.1.tar.gz', | ||
download_url='https://github.com/gavinlyonsrepo/RpiMotorLib/archive/3.2.tar.gz', | ||
packages=['RpiMotorLib'], | ||
data_files=[('', ['README.md'])], | ||
install_requires=['pip'], | ||
setup_requires=['pip'], | ||
scripts=['RpiMotorLib/RpiMotorScriptLib.py'], | ||
classifiers=[ | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.7", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.