Ben Nuttall
0e4caaaef6
Add MCP3008 usage to docs
2015-09-30 21:36:30 +01:00
Ben Nuttall
8a2ae1052a
Add contributors to readme
2015-09-30 19:02:24 +01:00
Ben Nuttall
fbede611df
Add MCP3008 and potentiometer example
2015-09-30 19:02:12 +01:00
Ben Nuttall
21297ab2bb
Expand docs
2015-09-30 12:00:46 +01:00
Ben Nuttall
5ab5aa601c
Merge branch 'master' of github.com:rpi-distro/python-gpiozero
2015-09-29 21:55:11 +01:00
Ben Nuttall
b515d070af
Fix typo
2015-09-29 21:54:59 +01:00
Ben Nuttall
68bcafe89b
Merge pull request #39 from waveform80/explicit-cleanup
...
Explicit cleanup
2015-09-29 20:31:46 +01:00
Dave Jones
034b88b478
Add close method and context manager
...
Permit devices to be explicitly closed and used as context managers.
Also deal with cleanup properly at script end and ensure objects don't
step on the global cleanup function.
2015-09-29 19:10:01 +01:00
Ben Nuttall
8fc8e3444e
Add RGBLED using new PWMOutputDevice
2015-09-28 19:34:55 +01:00
Ben Nuttall
cbc2b95494
Fix RST in readme
v0.6.0
2015-09-28 12:50:38 +01:00
Ben Nuttall
2aede36365
Add recipes
2015-09-28 12:47:21 +01:00
Ben Nuttall
c1db2dce55
Tidy up docs index
2015-09-28 11:50:56 +01:00
Ben Nuttall
9ca5b60aa8
Ignore built documentation directory
2015-09-28 11:48:53 +01:00
Ben Nuttall
b2a36bba47
Resolve merge conflict
2015-09-28 11:38:09 +01:00
Ben Nuttall
3f960f6da3
Update docstrings and add initial set of documentation
2015-09-28 11:11:00 +01:00
Ben Nuttall
3d6b16e4e4
Merge pull request #35 from waveform80/pull-up-fix
...
Fix #27
2015-09-27 22:30:21 +01:00
Dave Jones
c35dd1698b
Fix #27
2015-09-27 17:29:21 +01:00
Ben Nuttall
a38ab6cd45
Merge pull request #33 from waveform80/blink-fg-bg
...
Fix #32
2015-09-24 18:49:45 +01:00
Dave Jones
980e4e7144
Fix #32
2015-09-24 16:45:55 +01:00
Ben Nuttall
7811ed67c9
Ensure args are passed to flash()
2015-09-24 12:23:09 +01:00
Ben Nuttall
cfed671972
Add docstrings, close #26
v0.5.0
2015-09-24 11:39:50 +01:00
Ben Nuttall
c619aab630
Expose LEDBoard
2015-09-23 17:47:49 +01:00
Ben Nuttall
d47aff9f69
Make TrafficLights extend LEDBoard
2015-09-23 17:30:17 +01:00
Ben Nuttall
12800db25f
Refactor PiLiter into generic LEDBoard class
2015-09-23 16:32:00 +01:00
Ben Nuttall
b97e97909c
Add flash method to output devices and boards, close #22
2015-09-23 15:31:06 +01:00
Ben Nuttall
931571b85d
Add toggle to boards
2015-09-23 14:44:41 +01:00
Ben Nuttall
3a19d8f5ab
Merge branch 'master' of github.com:rpi-distro/python-gpiozero
2015-09-23 14:18:44 +01:00
Ben Nuttall
5e0a56b11c
Make buzzer blink, close #19
2015-09-23 14:18:40 +01:00
Ben Nuttall
63a1dc16b1
Merge pull request #31 from waveform80/nice-repr
...
Fix #25
2015-09-23 14:14:16 +01:00
Dave Jones
6b7a3c8851
Fix #25
...
Add a nice __repr__ to the GPIODevice base class.
This isn't much but generally I think `__repr__` implementations should
be deliberately simple: firstly, they're frequently used for debugging
so if they're at all complex you risk making a debugging tool buggy
(very annoying!). Secondly, if you pour too much info into them you risk
making the debugging output cluttered, so I tend to prefer keeping it to
straight-forward simple to retrieve/calculate info without excessive
detail (if the user wants more, they can always query it directly).
There is one refinement here: in SmoothedInputDevice, `__repr__` is
tweaked to ensure that when partial is False (the default), and the
queue isn't filled, `__repr__` doesn't block (because it should *never*
block).
2015-09-23 14:07:17 +01:00
Ben Nuttall
d869d1e092
Merge pull request #30 from waveform80/flexible-events-opt-params
...
Flexible events opt params
2015-09-23 13:50:23 +01:00
Ben Nuttall
25b5756b8c
Merge pull request #29 from waveform80/output-toggle
...
Fix #23
2015-09-23 13:50:01 +01:00
Dave Jones
4e33052703
Fix #28
...
Re-order the test bindings to prefer using no parameters if possible
2015-09-23 13:47:32 +01:00
Dave Jones
7c647ec616
Fix #23
...
Add OutputDevice.toggle method with locking for correct threaded
operation
2015-09-23 13:38:37 +01:00
Ben Nuttall
e805eedd13
Add properties for leds and all on boards
2015-09-23 11:42:06 +01:00
Ben Nuttall
4a7d60f6a3
Release v0.4.0
v0.4.0
2015-09-23 11:20:43 +01:00
Ben Nuttall
bb33b9aff3
Fix PiTraffic and TrafficHat
2015-09-23 11:16:42 +01:00
Ben Nuttall
2d999f82ab
Merge branch 'master' of github.com:rpi-distro/python-gpiozero
2015-09-23 11:15:17 +01:00
Ben Nuttall
5b846a53ca
Merge pull request #24 from waveform80/flexible-events
...
Flexible events
2015-09-23 11:14:39 +01:00
Dave Jones
5c12d8c2e0
Flexible events
...
Permit event callbacks to accept no parameters, or a single parameter
providing the source input object
2015-09-22 23:20:29 +01:00
Dave Jones
b81d9ed875
Fix missing comma in __init__
2015-09-22 22:08:06 +01:00
Ben Nuttall
8fe2a9d8ca
Add missing comma
2015-09-22 18:23:56 +01:00
Ben Nuttall
b878905f4d
Version bump
2015-09-22 18:07:32 +01:00
Ben Nuttall
65d363b7ed
Tidy up
2015-09-22 17:52:19 +01:00
Ben Nuttall
b16127dd39
Add PiTraffic back in (was accidentally deleted in e474215)
2015-09-22 17:18:38 +01:00
Ben Nuttall
1bc5a5fa92
Release v0.3.0
v0.3.0
2015-09-22 16:34:25 +01:00
Ben Nuttall
74045c794a
Merge pull request #21 from waveform80/tidy-boards
...
Minor cleanup in boards
2015-09-22 15:25:47 +01:00
Dave Jones
3df061b1bd
Minor cleanup in boards
...
super calls weren't specified correctly, and there's no need to convert
to lists for adding tuples - tuples add to tuples just fine, just not
lists.
2015-09-22 15:05:11 +01:00
Ben Nuttall
03a14c0db5
Merge pull request #20 from waveform80/when-active-when-inactive
...
Nicely named event attributes
2015-09-22 14:48:08 +01:00
Dave Jones
0c208efff8
Merge branch 'master' into when-active-when-inactive
...
Conflicts:
gpiozero/devices.py
gpiozero/input_devices.py
2015-09-22 12:55:56 +01:00