forked from metachris/RPIO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Auto-cleanup on exit (also shuts down ``wait_for_interrupts(threaded=True)``) * Bugfix in cpuinfo.c: correctly trim over-voltage header * rpio-curses: help shows raspberry sysinfo * switched argument ordering of wait_for_interrupts to (``wait_for_interrupts(threaded=False, epoll_timeout=1)``) * Added ``RPIO.Exceptions``
- Loading branch information
Chris Hager
committed
Mar 14, 2013
1 parent
25e7552
commit 79a7aaa
Showing
22 changed files
with
199 additions
and
134 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.10.0 |
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 |
---|---|---|
@@ -1,25 +1,16 @@ | ||
rpio (0.9.6) unstable; urgency=low | ||
|
||
* RC 0.9.5 had critical bugs. Fixed now. | ||
|
||
-- Chris Hager <[email protected]> Wed, 13 Mar 2013 21:30:14 +0100 | ||
|
||
rpio (0.9.5) unstable; urgency=low | ||
rpio (0.10.0) unstable; urgency=low | ||
|
||
* Cleanup | ||
* Auto-cleanup on exit (also shuts down ``wait_for_interrupts(threaded=True)``) | ||
* Bugfix in cpuinfo.c: correctly trim over-voltage header | ||
* rpio-curses: help shows raspberry sysinfo | ||
* switched argument ordering of wait_for_interrupts to (``wait_for_interrupts(threaded=False, epoll_timeout=1)``) | ||
|
||
-- Chris Hager <[email protected]> Wed, 13 Mar 2013 02:24:08 +0100 | ||
-- Chris Hager <[email protected]> Thu, 14 Mar 2013 15:42:59 +0100 | ||
|
||
rpio (0.9.4) unstable; urgency=low | ||
rpio (0.9.6) unstable; urgency=low | ||
|
||
* Debounce timeout for interrupts (Closes: #XXXXXX) | ||
* Debounce timeout for interrupts | ||
* Threaded argument for wait_for_interrupts() | ||
* Refactoring | ||
|
||
-- Chris Hager <[email protected]> Tue, 12 Mar 2013 22:34:04 +0100 | ||
|
||
rpio (0.9.2) unstable; urgency=low | ||
|
||
* Initial PWM release. (Closes: #XXXXXX) | ||
|
||
-- Chris Hager <[email protected]> Tue, 12 Mar 2013 17:59:56 +0100 | ||
-- Chris Hager <[email protected]> Wed, 13 Mar 2013 21:30:14 +0100 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
""" | ||
This example demonstrates how to easily control servos. | ||
Demonstration of how to control servo pulses with RPIO.PWM | ||
RPIO Documentation: http://pythonhosted.org/RPIO | ||
""" | ||
from RPIO import PWM | ||
|
||
servo = PWM.Servo() | ||
|
||
# Set servo on GPIO17 to 1200µs (1.2ms) | ||
# Add servo pulse for GPIO 17 with 1200µs (1.2ms) | ||
servo.set_servo(17, 1200) | ||
|
||
... | ||
|
||
# Set servo on GPIO17 to 2000µs (2.0ms) | ||
# Add servo pulse for GPIO 17 with 2000µs (2.0ms) | ||
servo.set_servo(17, 2000) | ||
|
||
... | ||
|
||
# Clear servo on GPIO17 | ||
servo.stop_servo(17) |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ def read(fname): | |
|
||
setup( | ||
name="RPIO", | ||
version="0.9.6", | ||
version="0.10.0", | ||
package_dir={"": "source"}, | ||
packages=['RPIO', 'RPIO.PWM'], | ||
ext_modules=[ | ||
|
@@ -27,7 +27,7 @@ def read(fname): | |
author="Chris Hager", | ||
author_email="[email protected]", | ||
|
||
license="MIT", | ||
license="LGPLv3+", | ||
keywords=["raspberry", "raspberry pi", "interrupts", "gpio", "rpio"], | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
|
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This file is part of RPIO. | ||
# | ||
# Copyright | ||
# | ||
# Copyright (C) 2013 Chris Hager <[email protected]> | ||
# | ||
# License | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Lesser General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Lesser General Public License for more details at | ||
# <http://www.gnu.org/licenses/lgpl-3.0-standalone.html> | ||
# | ||
# Documentation | ||
# | ||
# http://pythonhosted.org/RPIO | ||
# | ||
""" | ||
This module contains all the exceptions used by the C GPIO wrapper. | ||
""" | ||
import RPIO._GPIO as _GPIO | ||
|
||
WrongDirectionException = _GPIO.WrongDirectionException | ||
InvalidModeException = _GPIO.InvalidModeException | ||
InvalidDirectionException = _GPIO.InvalidDirectionException | ||
InvalidChannelException = _GPIO.InvalidChannelException | ||
InvalidPullException = _GPIO.InvalidPullException | ||
ModeNotSetException = _GPIO.ModeNotSetException |
Oops, something went wrong.