Commit Graph

49 Commits

Author SHA1 Message Date
Ben Nuttall
bebae8116c Move new ledboard recipes to advanced page 2017-07-26 18:51:35 +01:00
Ben Nuttall
d5f6290b0a Update remote gpio docs page 2017-07-26 18:03:26 +01:00
Ben Nuttall
47e437bfad Add more ledboard examples 2017-07-26 14:12:15 +01:00
Ben Nuttall
22fb913f41 Merge branch 'master' into pinout-man 2017-07-17 02:07:01 +01:00
Ben Nuttall
220da280ba Add more advanced and remote recipes 2017-07-17 02:03:29 +01:00
Dave Jones
d609df4297 Highlight the right line in rgbled_pot_2 recipe 2017-07-16 23:49:42 +01:00
Dave Jones
d3ee0c0102 Switch pin numbering / import ordering
Makes more sense, slightly better print layout
2017-07-14 23:07:32 +01:00
Dave Jones
4cc4b1c132 Restructure index
Move the API to the end, recipes all grouped together up-front (with
remote GPIO setup just before the remote GPIO recipes). Tweak some
headings so everything looks a little more consistent in the (now
shorter) ToC.

Also added module index tags.
2017-07-14 21:46:27 +01:00
Dave Jones
cb4276e897 Split Notes into FAQ and Recipes
Notes was always a bit of a "vague" section and half of it felt like
FAQs. Hopefully this is a little more consistent
2017-07-14 21:07:26 +01:00
Ben Nuttall
36709d6f91 Merge branch 'master' into docs-updates 2017-06-22 22:55:17 +01:00
Dave Jones
ce6217c14f Fix #459 - properly support remote SPI with pigpio
Sorry! Dave's messing around with the pin implementations again.
Hopefully the last time. The pin_factory is now really a factory object
which can be asked to produce individual pins or pin-based interfaces
like SPI (which can be supported properly via pigpio).
2017-06-16 13:28:55 +01:00
Ben Nuttall
92f5288803 Move travispy link to correct page 2017-01-10 10:33:43 +00:00
Ben Nuttall
dea7ba6ec2 Docs updates: add installing, advanced recipes, remote gpio and remote recipes - wip 2017-01-10 09:43:53 +00:00
Ben Nuttall
ed12ac1994 Add bee-bot / turtle robot example, close #443 2017-01-08 15:58:50 +00:00
Dave Jones
6f67a973cf Fix all the stuff you broke last night...
In particular the `pi_revision` thing in PiGPIOPin, all the stuff @lurch
picked up in `pins/data.py` (thank goodness *someone's* watching!), and
make all those links pointing to "Notes" point somewhere useful like
"Pin Numbering"...
2016-08-30 15:43:57 +01:00
Dave Jones
07c95598d1 Fix #289
Tweak the second keyboard robot recipe so it detects keyboards and
doesn't throw exceptions on unknown keys. Also add a note to the recipe
that it won't work over remote connections like SSH.
2016-08-29 22:18:04 +01:00
Dave Jones
32803a7988 Convert recipe examples to includes
Makes it much easier to test things - no copying'n'pasting just run the
examples straight from the dir (after wiring stuff up)
2016-08-29 20:41:11 +01:00
Dave Jones
c03f7a2b7e Merge pull request #401 from waveform80/which-led-is-which
Annotate recipe with LED sys/class names
2016-08-14 13:58:21 +01:00
Andrew Scheller
ab8dcf8794 Add missing closing-bracket 2016-08-14 13:31:05 +01:00
Dave Jones
d401a72682 Annotate recipe with LED sys/class names 2016-08-14 13:13:54 +01:00
Ben Nuttall
2587612403 Replace tab with spaces 2016-06-03 14:40:02 +01:00
Ben Nuttall
963b962867 Add Shutdown button example to recipes, close #325 2016-05-29 20:19:09 +01:00
Andrew Scheller
ffc07950e1 Typo 2016-05-28 13:57:37 +01:00
Ben Nuttall
42f9d4f3b8 Merge pull request #290 from lurch/patch-3
Update Recipes to use the generic Robot class instead of the specific…
2016-05-28 12:39:47 +01:00
Ben Nuttall
b581719c8c Rename RGB -> Full Color LED in recipes 2016-05-28 00:45:13 +01:00
Ben Nuttall
25ccf9389c Add LEDBoard and LEDBarGraph recipes 2016-05-28 00:43:12 +01:00
Andrew Scheller
fa440bbe83 Revert accidental typo 2016-05-27 00:37:16 +01:00
Andrew Scheller
bd219d9e59 Fix Travis-build Recipe
Swap tabs to spaces, and use gpiozero.tools.negated
2016-05-27 00:33:45 +01:00
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
Andrew Scheller
af3476d570 Update Recipes to use the generic Robot class instead of the specific RyanteckRobot
Fixes #288
2016-04-19 17:25:23 +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