Commit Graph

52 Commits

Author SHA1 Message Date
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
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
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
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
Andrew Scheller
ccd880424b typo 2015-11-19 02:04:15 +00:00
Dave Hughes
f1299037b5 Bump versions for release 2015-11-16 12:15:39 +00:00
Andrew Scheller
f1e3ee03b3 Minor typo 2015-11-16 10:34:40 +00:00
Ben Nuttall
4975e9c8fb Update docs: add PWMLED and include value, values and source properties 2015-11-15 17:18:10 +00:00
Ben Nuttall
382d6e45fc Reverse order of MCP300X arguments, close #92 2015-11-15 13:51:49 +00:00
Ben Nuttall
492f311cc4 Remove incomplete TemperatureSensor for 1.0 release, close #93 2015-11-15 13:00:06 +00:00
Dave Jones
f69b6195ca Fix #75
Alias blink to beep for Buzzer
2015-11-15 11:48:53 +00:00
Clare Macrae
b22eebfebe Correct constructor arg names in TrafficLights 2015-11-08 22:38:21 +00:00
Ben Nuttall
010f1fd65c Update LEDBoard init docs 2015-10-25 22:05:17 +00:00
Ben Nuttall
766646f772 Release v0.9.0 beta 4 2015-10-25 18:56:58 +00:00
Ben Nuttall
af2bf9325c Update docs 2015-10-25 18:54:20 +00:00
Ben Nuttall
fe16149b12 Add install dependencies to docs 2015-10-25 15:09:49 +00:00
Ben Nuttall
0805579175 Add 'Initialisation options' to docs 2015-10-18 22:57:22 +01:00
Ben Nuttall
d61f0ff5ec Make default arguments bold 2015-10-18 12:28:53 +01:00
Ben Nuttall
d9bbed2cdf Update release date in docs 2015-10-18 10:46:12 +01:00
Ben Nuttall
cc79749758 Update docs 2015-10-17 15:28:10 +01:00
Ben Nuttall
b7cce51497 Update docs for v0.8.0 2015-10-17 12:36:41 +01:00
Ben Nuttall
fc1fe62bfe Fix copy-paste error on LED pin numbers, close #71 2015-10-14 12:18:42 +01:00
Ben Nuttall
43fdf71ae3 Use second level headers on notes page 2015-10-13 14:45:56 +01:00
Dave Jones
f0eefdb8f2 Fix Notes
Notes now works with embedded code sections, but the spacing is still
wrong as is the language selection. Oh well, come back to it later...
2015-10-12 22:17:45 +01:00
Dave Jones
28f57d2710 Attempt to fix example syntax sections
Something fishy going on with the Markdown for the code examples in the
Notes page. Might be down to the indentation of the list item's content?
The vim markdown parser seems to think so anyway; let's see what
pythonhosted.org says ...
2015-10-12 19:35:09 +01:00
Ben Nuttall
3f18b3f4b7 Add some circuit diagrams and update docs 2015-10-11 00:45:28 +01:00
Ben Nuttall
e3a3f03247 Expand readme and docs index 2015-10-10 19:21:16 +01:00
Ben Nuttall
d91a65bdfd Add button and keyboard robot controller recipes 2015-10-10 18:26:02 +01:00
Ben Nuttall
17c93d1e45 Release v0.7.0 beta 2 2015-10-09 12:30:13 +01:00
Ben Nuttall
ee36451bed Make Motors PWM devices with optional speed argument on methods 2015-10-07 17:09:28 +01:00
Ben Nuttall
65b5ba9ea6 Clean up boards docs page 2015-10-07 15:00:53 +01:00
Ben Nuttall
ae19496ab5 Correct heading of Robot interface in docs 2015-10-06 17:12:30 +01:00
Ben Nuttall
1c9ea6c943 Add motor, robot and motion sensor robot examples 2015-10-06 17:03:13 +01:00
Ben Nuttall
493b4e1cda Change RGBLED interface from 0-100 to 0-255, close #40 2015-10-05 13:26:01 +01:00
Dave Jones
7429c03117 Docs clean up part 1
Big push on getting the docs cleaned up before 1.0. Proper wrapping of
everything so it's decently viewable from the command line (or as
decently viewable as markdown can be - the tables will never look great
from the command line).

Only one code change in this PR: rename bouncetime to bounce_time
(everything else is PEP-8, so this probably should be too) and change
its units to seconds from milliseconds (again, all other durations in
the library are in seconds, so it feels inconsistent that this one
isn't; for the sake of those who won't read the docs - which is most
people - I figure consistency helps with guessing!).
2015-10-03 16:24:12 +01:00
Ben Nuttall
3a4d3d4deb Add documentation for Motor, Robot and RyanteckRobot 2015-10-02 18:08:59 +01:00
Ben Nuttall
0e4caaaef6 Add MCP3008 usage to docs 2015-09-30 21:36:30 +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
b515d070af Fix typo 2015-09-29 21:54:59 +01:00
Ben Nuttall
8fc8e3444e Add RGBLED using new PWMOutputDevice 2015-09-28 19:34:55 +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
3f960f6da3 Update docstrings and add initial set of documentation 2015-09-28 11:11:00 +01:00
Dave Jones
b1913e5e39 Add events to all input devices
Fairly major tidy up of the hierarchy as well. There's now a trivial
base class: InputDevice which simply permits reading of state.
WaitableInputDevice descends from this and introduces waitable events
and callbacks, and provides a hook for calling them but needs further
machinery to activate that hook.

DigitalInputDevice (crap name?) descends from WaitableInputDevice and
uses the standard RPi.GPIO callback mechanisms to handle events. This is
intended for use with trivial on/off devices with predictably small
bounce times.

Next is SmoothedInputDevice (crap name?) which also descends from
WaitableInputDevice. This includes a background threaded queue which
constantly monitors the state of the device and provides a running mean
of its state. This is compared to a threshold for determining active /
inactive state. This is intended for use with on/off devices that
"jitter" a lot and for which a running average is therefore appropriate
or for devices which provide an effectively analog readout (like
charging capacitor timings).

MonitorSensor and LightSensor now descend from SmoothedInputDevice, and
Button descends from DigitalInputDevice. All "concrete" classes provide
event aliases appropriate to their function (e.g. when_dark,
when_pressed, etc.)
2015-09-22 12:48:09 +01:00
Dave Jones
9c64a1dc2f Update the docs with an example
Simple demo of when_dark / when_light
2015-09-21 12:04:51 +01:00