791 Commits

Author SHA1 Message Date
Dave Jones
c5c80afe50 Merge pull request #170 from waveform80/gen-recipes
Fix #119
2016-02-07 19:46:33 +00:00
Dave Jones
183b854717 Fix #119
Add a bunch of code snippets demonstrating generators to the recipes
chapter, including a temperature recipe for the MCP3008.
2016-02-07 19:45:52 +00:00
Andrew Scheller
29ca48d2a7 Minor tweak to PWMOutputDevice.is_active
...so that its implementation is more consistent with the other is_active methods
2016-02-03 03:34:12 +00:00
Andrew Scheller
c133110ab9 Add PWMOutputDevice.pulse method
...which simply calls blink with different default arguments
2016-02-03 01:01:54 +00:00
Dave Jones
4fc0673233 Merge pull request #163 from lurch/patch-1
Move LED example from GPIO2 to GPIO17
2016-02-02 21:16:34 +00:00
Andrew Scheller
26337bedd7 Move LED example from GPIO2 to GPIO17
See #116 and #153
2016-02-01 12:00:22 +00:00
Andrew Scheller
3ed1ab8446 Add a blink thread to LEDBoard
Fixes #94
2016-02-01 04:49:54 +00:00
Dave Jones
cf75e8516a Merge pull request #159 from waveform80/fixup-prototypes
Fix prototypes in docs
2016-01-31 20:09:03 +00:00
Dave Jones
e52ad37200 Fix prototypes in docs
The prototypes in the docs are rigged to make out the first parameter as
mandatory (as it effectively is); however this does mean you've got to
remember to update the prototype when you modify it in the code! :)
2016-01-31 20:07:34 +00:00
Dave Jones
d77ee6e71f Merge pull request #158 from waveform80/fixup-rest
Re-apply #120 and #117 to rest-docs
2016-01-31 19:30:25 +00:00
Dave Jones
44e943b322 Re-apply #120 and #117 to rest-docs
Knew I'd missed some patches to the docs! This re-applies the
aforementioned doc patches and also fixes the last RGBLED example (which
was subtly incorrect in the original docs)
2016-01-31 19:28:35 +00:00
Dave Jones
96a9112884 Merge pull request #157 from waveform80/output-initial-value
Fix #118
2016-01-31 18:05:51 +00:00
Dave Jones
5791d50ded Merge pull request #156 from lurch/patch-1
Typo fix
2016-01-31 18:03:04 +00:00
Dave Jones
8b21599257 Fix #118
... and fix up active_high values while we're at it ...
2016-01-31 17:50:02 +00:00
Andrew Scheller
03e2f8779f Typo fix 2016-01-31 17:10:58 +00:00
Dave Jones
3d30d17f70 Merge pull request #155 from waveform80/minor-changes
Minor changes
2016-01-31 16:26:38 +00:00
Dave Jones
d5226d1fee Minor changes 2016-01-31 16:25:35 +00:00
Dave Jones
80f0597345 Merge pull request #154 from waveform80/pwm-active-high
Fix #143
2016-01-31 16:18:15 +00:00
Dave Jones
de5dff3c1d Fix #143
Add active_high parameter to PWMOutputDevice (there's no reason PWM
devices can't be wired active low after all)
2016-01-31 16:17:43 +00:00
Dave Jones
741a9b48ed Merge pull request #153 from lurch/patch-1
Move LED example from GPIO2 to GPIO17
2016-01-31 16:17:23 +00:00
Andrew Scheller
7ea312acb9 Move LED example from GPIO2 to GPIO17 2016-01-31 15:54:57 +00:00
Dave Jones
792bed9b57 Merge pull request #152 from waveform80/pwm-heritage
Fix #121
2016-01-31 13:48:07 +00:00
Dave Jones
cf18fb971e Fix #121
Change parent of PWMOutputDevice to OutputDevice and implement blink to
maintain compatibility. The version of blink implemented here is
slightly extended to include functionality like Explorer HAT's "pulse".
The parameter defaults behave identically to OutputDevice's blink but
can be adjusted to have the device smoothly fade in and out.
2016-01-31 13:47:11 +00:00
Dave Jones
9dc4a2208a Merge pull request #101 from waveform80/rest-docs
Generic docs need reST
2016-01-30 23:47:59 +00:00
Dave Jones
0bc62aee73 Generic docs need reST
Conversion of all docs to reST so that the generic docs can link easily
with the rest of the docs.
2016-01-30 23:40:12 +00:00
Dave Jones
bcb8758dcf Merge pull request #151 from waveform80/mcp-chips
Tidying up bits for #150
2016-01-30 22:00:54 +00:00
Dave Jones
075841249e Tidying up bits for #150 2016-01-30 21:58:00 +00:00
Dave Jones
33f59ec1d8 Merge pull request #150 from pcopa/master
Adding MCP3208/3204 12 bit ADC with 8 or 4 channels
2016-01-30 11:09:06 +00:00
pcopa
38bc27b546 Have made a simpler structure for MCP3008/3004 and MCP3208/3204.
The code is running on my Pi and seems to be stable
 Have added MCP3301/3302/3304
 have implemented the "M" bit to allow Differential mode
 Have added an "absVal" for absolute values
 Have added a "relVal" for relative val from 0 to 1 (same as "value")
 left "value" for backwards compatabilety, but propse to delete it
 shifted Rx bits for MCP330x

 On branch master
 Your branch is up-to-date with 'origin/master'.

 Changes to be committed:
	modified:   gpiozero/__init__.py
	modified:   gpiozero/input_devices.py

 Untracked files:
	ZeroCombo11.py

 Date:      Mon Jan 18 20:25:36 2016 -0500
2016-01-29 22:03:13 -05:00
Dave Jones
15ce68d1a7 Merge pull request #139 from waveform80/exceptions-module
Move exceptions to their own sub-module
2016-01-07 12:04:59 +00:00
Dave Jones
ef5761d409 Merge pull request #138 from alexwlchan/awlc/fishdish
Fix return type of TrafficLightsBuzzer.value
2016-01-07 11:18:40 +00:00
Dave Jones
59ba7154c5 Move exceptions to their own sub-module
This removes the circular dependency introduced in PR#137. This also
fixes up an issue in the base meta-class which meant it wasn't working
in Python 3 (only Python 2), and adds a bit to the meta-class to allow
docstrings to be inherited (taken from the rest-docs branch).
2016-01-07 11:01:49 +00:00
Alex Chan
cca4c85afe Fix return type of TrafficLightsBuzzer.value
The FishDishTuple was renamed to TrafficLightsBuzzerTuple in
commit b87e2a4, but the `value` property wasn't modified to match.
2016-01-06 15:06:09 +00:00
Ben Nuttall
7976966d38 Merge pull request #137 from alexwlchan/awlc/missing-import
Add missing InputDeviceError import to devices.py
2016-01-06 15:05:10 +00:00
Alex Chan
6538d5de7b Add missing InputDeviceError import to devices.py 2016-01-06 14:59:10 +00:00
Ben Nuttall
e172caf2cb Merge branch 'master' of github.com:rpi-distro/python-gpiozero 2016-01-04 14:37:04 +00:00
Ben Nuttall
61f4b4919b Correct RGBLED recipe 2016-01-04 14:36:55 +00:00
Ben Nuttall
dfbd06daa1 Merge pull request #127 from lurch/patch-1
Fix upgrade instructions
2015-12-04 22:06:34 +00:00
Andrew Scheller
21f542cb8d Fix upgrade instructions
'apt-get upgrade' always upgrades all packages, to upgrade a single package we need to use 'apt-get install'
2015-12-01 10:19:57 +00:00
Ben Nuttall
942859b5a2 Merge branch 'master' of github.com:rpi-distro/python-gpiozero 2015-11-28 02:58:46 +00:00
Ben Nuttall
81a782b5f3 Add apt install instructions 2015-11-28 02:58:37 +00:00
Ben Nuttall
dbb95b5e37 Fix typo 2015-11-23 11:32:35 +00:00
Ben Nuttall
f1d4ca0c05 Add LineSensor 2015-11-23 08:36:14 +00:00
Ben Nuttall
cfe200af35 Add CamJamKitRobot interface 2015-11-22 18:35:11 +00:00
Ben Nuttall
4cf634a9c3 Fix typo 2015-11-22 18:25:41 +00:00
Ben Nuttall
744fb6ae19 Merge pull request #120 from lurch/patch-1
Update recipes
2015-11-22 18:23:04 +00:00
Andrew Scheller
f55d92e9db Update recipes
Remove superfluous function from Music Box example, and add pause() to all the recipes that need it
2015-11-19 12:16:39 +00:00
Dave Jones
c432439320 Merge pull request #117 from lurch/patch-1
typo
2015-11-19 10:58:19 +00:00
Andrew Scheller
ccd880424b typo 2015-11-19 02:04:15 +00:00
Dave Hughes
34822198d0 Merge branch 'master' of github.com:RPi-Distro/python-gpiozero 2015-11-16 12:46:27 +00:00