Commit Graph

20 Commits

Author SHA1 Message Date
Ben Nuttall
2bd1cbc749 Fix typo in recipes 2016-05-27 00:29:57 +01:00
Ben Nuttall
466ff341cb Add to button recipes 2016-05-27 00:25:31 +01:00
Ben Nuttall
35d1de644b Add PWMLED recipes 2016-05-27 00:01:48 +01:00
Ben Nuttall
0a5499dfbe Add recipe for GPIO Zero Travis build LED indicator, close #191 2016-05-26 23:52:51 +01:00
Ben Nuttall
4460f8047f Correct Motor usage in recipe
Thanks to Antonio Spadaro for pointing this out
2016-05-10 23:07:00 +01:00
Alex Eames
c522d60e25 Update recipes.rst
Small correction. LED to PWMLED in the Light Sensor 2nd example
2016-04-28 15:36:51 +01:00
Ben Nuttall
848d030ac9 Remove with blocks for consistency, re: #239 2016-04-21 23:55:04 +01:00
Andrew Scheller
5f336ad2b2 Make Potentiometer Recipe more efficient 2016-04-19 22:16:42 +01:00
Dave Jones
bb13e9fe12 Fix #237
Adds a keyboard controlled robot recipe that uses curses. Advantage is
that no external deps are required, disadvantages are that it'll only
work from a terminal (or terminal window, basically not IDLE).
2016-04-10 20:48:30 +01:00
Dave Jones
6b2e014975 Fix #148
Added recipe for power/activity LEDs (on A+/B+/2B, with notes for other
models)
2016-04-01 23:09:52 +01:00
Dave Jones
8fc4b58ec2 Fix #182
Fixes LEDBarGraph (broken by snowpi updates) and adds PWM support and
relevant recipes
2016-04-01 20:05:10 +01:00
Ben Nuttall
e09e21a42e Fix typo 2016-03-20 13:34:50 +00:00
Barry Byford
8ce5e12919 Correction on Traffic Lights Alternative recipe 2016-03-19 11:43:41 +00:00
Dave Jones
38b89a36f7 Work on #51 - add pot diagram 2016-02-13 10:06:27 +00:00
Dave Jones
d090b03679 Work on #51
Some more circuit diagrams; better check these are accurate - I haven't
had time to wire them up and test them!
2016-02-13 00:45:22 +00:00
Dave Jones
83fb6ae8b4 Fix #114 - ultrasonic sensors
Implements support for the HC-SR04 ultrasonic sensor as an input device
class named DistanceSensor
2016-02-12 19:27:24 +00:00
Dave Jones
8e0c6e243b Refactor low level implementation
This commit is a fairly major piece of work that abstracts all pin
operations (function, state, edge detection, PWM, etc.) into a base
"Pin" class which is then used by input/output/composite devices to
perform all required configuration.

The idea is to pave the way for I2C based IO extenders which can present
additional GPIO ports with similar capabilities to the Pi's "native"
GPIO ports. As a bonus it also abstracts away the reliance on the
RPi.GPIO library to allow alternative pin implementations (e.g. using
RPIO to take advantage of DMA based PWM), or even pure Python
implementations.
2016-02-08 14:54:18 +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
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
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