Skip to content

Commit 45a4dec

Browse files
Ecce_LiEcce_Li
Ecce_Li
authored and
Ecce_Li
committed
Initial version: set_pullupdn had implemented by Da Vinci
Change-Id: I5113aa22232fab86d24cc40700841318d1c41237
1 parent 9a6a51a commit 45a4dec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+5570
-0
lines changed

ASUS/__init__.py

Whitespace-only changes.

ASUS/__init__.pyc

108 Bytes
Binary file not shown.

CHANGELOG.txt

+168
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
Change Log
2+
==========
3+
4+
0.5.11
5+
------
6+
- Fix - pins > 26 missing when using BOARD mode
7+
- Add getmode()
8+
- Raise exception when a mix of modes is used
9+
- GPIO.cleanaup() unsets the current pin mode
10+
11+
0.5.10
12+
------
13+
- Issue 95 - support RPi 2 boards
14+
- Introduce RPI_INFO
15+
- Deprecate RPI_REVISION
16+
- Issue 97 - fixed docstring for setup()
17+
18+
0.5.9
19+
-----
20+
- Issue 87 - warn about pull up/down on i2c pins
21+
- Issue 86/75 - wait_for_edge() bugfix
22+
- Issue 84 - recognise RPi properly when using a custom kernel
23+
- Issue 90 - cleanup() on a list/tuple of channels
24+
25+
0.5.8
26+
-----
27+
- Allow lists/tuples of channels in GPIO.setup()
28+
- GPIO.output() now allows lists/tuples of values
29+
- GPIO.wait_for_edge() bug fixes (issue 78)
30+
31+
0.5.7
32+
-----
33+
- Issue 67 - speed up repeated calls to GPIO.wait_for_event()
34+
- Added bouncetime keyword to GPIO.wait_for_event()
35+
- Added extra edge/interrupt unit tests
36+
- GPIO.wait_for_event() can now be mixed with GPIO.add_event_detect()
37+
- Improved cleanups of events
38+
- Issue 69 resolved
39+
40+
0.5.6
41+
-----
42+
- Issue 68 - support for RPi Model B+
43+
- Fix gpio_function()
44+
45+
0.5.5
46+
-----
47+
- Issue 52 - 'unallocate' a channel
48+
- Issue 35 - use switchbounce with GPIO.event_detected()
49+
- Refactored events code
50+
- Rewrote tests to use unittest mechanism and new test board with loopbacks
51+
- Fixed adding events after a GPIO.cleanup()
52+
- Issue 64 - misleading /dev/mem permissions error
53+
- Issue 59 - name collision with PWM constant and class
54+
55+
0.5.4
56+
-----
57+
- Changed release status (from alpha to full release)
58+
- Warn when GPIO.cleanup() used with nothing to clean up (issue 44)
59+
- Avoid collisions in constants (e.g. HIGH / RISING / PUD_DOWN)
60+
- Accept BOARD numbers in gpio_function (issue 34)
61+
- More return values for gpio_function (INPUT, OUTPUT, SPI, I2C, PWM, SERIAL, UNKNOWN)
62+
- Tidy up docstrings
63+
- Fix /dev/mem access error with gpio_function
64+
65+
0.5.3a
66+
------
67+
- Allow pydoc for non-root users (issue 27)
68+
- Fix add_event_detect error when run as daemon (issue 32)
69+
- Simplified exception types
70+
- Changed from distribute to pip
71+
72+
0.5.2a
73+
------
74+
- Added software PWM (experimental)
75+
- Added switch bounce handling to event callbacks
76+
- Added channel number parameter to event callbacks (issue 31)
77+
- Internal refactoring and code tidy up
78+
79+
0.5.1a
80+
------
81+
- Fixed callbacks for multiple GPIOs (issue 28)
82+
83+
0.5.0a
84+
------
85+
- Added new edge detection events (interrupt handling)
86+
- Added add_event_detect()
87+
- Added remove_event_detect()
88+
- Added add_event_callback()
89+
- Added wait_for_edge()
90+
- Removed old experimental event functions
91+
- Removed set_rising_event()
92+
- Removed set_falling_event()
93+
- Removed set_high_event()
94+
- Removed set_low_event()
95+
- Changed event_detected() for new edge detection functionality
96+
- input() now returns 0/LOW == False or 1/HIGH == True (integers) instead of False or True (booleans).
97+
- Fix error on repeated import (issue 3)
98+
- Change SetupException to a RuntimeError so it can be caught on import (issue 25, Chris Hager <[email protected]>)
99+
- Improved docstrings of functions
100+
101+
0.4.2a
102+
------
103+
- Fix for installing on Arch Linux (Python 3.3) (issue 20)
104+
- Initial value when setting a channel as an output (issue 19)
105+
106+
0.4.1a
107+
------
108+
- Added VERSION
109+
- Permit input() of channels set as outputs (Eric Ptak <[email protected]>)
110+
111+
0.4.0a
112+
------
113+
- Added support for Revision 2 boards
114+
- Added RPI_REVISION
115+
- Added cleanup() function and removed automatic reset functionality on program exit
116+
- Added get_function() to read existing GPIO channel functionality (suggestion from Eric Ptak <[email protected]>)
117+
- Added set_rising_event()
118+
- Added set_falling_event()
119+
- Added set_high_event()
120+
- Added set_low_event()
121+
- Added event_detected()
122+
- Added test/test.py
123+
- Converted debian to armhf
124+
- Fixed C function short_wait() (thanks to Thibault Porteboeuf <[email protected]>)
125+
126+
0.3.1a
127+
------
128+
- Fixed critical bug with swapped high/low state on outputs
129+
- Added pull-up / pull-down setup functionality for inputs
130+
131+
0.3.0a
132+
------
133+
- Rewritten as a C extension
134+
- Now uses /dev/mem and SoC registers instead of /sys/class/gpio
135+
- Faster!
136+
- Make call to GPIO.setmode() mandatory
137+
- Added GPIO.HIGH and GPIO.LOW constants
138+
139+
0.2.0
140+
-----
141+
- Changed status from alpha to beta
142+
- Added setmode() to be able to use BCM GPIO 00.nn channel numbers
143+
- Renamed InvalidPinException to InvalidChannelException
144+
145+
0.1.0
146+
------
147+
- Fixed direction bug
148+
- Added MANIFEST.in (to include missing file)
149+
- Changed GPIO channel number to pin number
150+
- Tested and working!
151+
152+
0.0.3a
153+
------
154+
- Added GPIO table
155+
- Refactored
156+
- Fixed a few critical bugs
157+
- Still completely untested!
158+
159+
0.0.2a
160+
------
161+
- Internal refactoring. Still completely untested!
162+
163+
0.0.1a
164+
------
165+
- First version. Completely untested until I can get hold of a Raspberry Pi!
166+
167+
0.2a
168+
- Add the the functions of GPIO pull up and down

GPIOLIST.ods

71.8 KB
Binary file not shown.

INSTALL.txt

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
If you are using ASUS, all you need to do to install the latest release is:
2+
$ sudo apt-get update
3+
$ sudo apt-get install python-ASUS.gpio python3-ASUS.gpio
4+
5+
------------
6+
7+
If you are not using ASUS, it is recommended that you install this module using pip:
8+
$ sudo pip install RPi.GPIO
9+
10+
------------
11+
12+
If you want to build your own version from this downloaded copy, make
13+
sure that you have the Python development source installed first!
14+
15+
On Raspbian:
16+
$ sudo apt-get install python-dev python3-dev
17+
18+
To install the module:
19+
20+
$ sudo python setup.py install
21+
or
22+
$ sudo python3 setup.py install

LICENCE.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2012-2014 Ben Croston
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7+
of the Software, and to permit persons to whom the Software is furnished to do
8+
so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.
20+

Makefile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
PROG=ASUS.GPIO
2+
3+
install:
4+
sudo python setup.py install --record log
5+
6+
uninstall:
7+
cat log |xargs rm -rf
8+
clean:
9+
sudo python setup.py clean
10+
11+

0 commit comments

Comments
 (0)