Commit Graph

141 Commits

Author SHA1 Message Date
Dave Jones
6a56fb0013 Bump version to 1.3 for release 2016-08-31 00:09:33 +01:00
Dave Jones
8c7712c3aa Quick addition of ButtonBoard docs
Nothing special (no recipes yet); just add the stuff necessary to the
reST to pull it from source and add it to the diagrams
2016-08-30 23:23:11 +01:00
Dave Jones
02f7d20bc3 Fix #248
Add Servo and AngularServo implementation along with docs and tests.
This is a deliberately minimal implementation designed to be added to as
we agree on new extensions (better than making an all-singing,
all-dancing version in which I get things wrong and then wind up making
backward incompatible changes to get it right :)
2016-08-30 21:33:28 +01: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
04075380e1 Fix #294
Still need to sort out threads for the internal devices to continually
poll their values so that the wait-states work properly
2016-08-29 23:53:09 +01:00
Dave Jones
38541889ca Fix #295
At least, I *think* this should fix this. It does locally, but we'll
have to see what happens when I push it to RTD!
2016-08-29 22:44:27 +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
6cc308e44a Fix #354, fix #389
Overhaul the pi_info system:

Pin factories are now capable of generating pi_info themselves (although
currently they all just look up the revision and call pi_info with a
specific one).

PiGPIOPin will now return pi_info for the remote pi which can be
specified by parameter or implicitly by the environment vars.

Overvolted Pis should work properly no matter what (some argument over
whether the revision 7 or 8 chars in this case; both should work). Added
some minor tweaks for the new camera-capable Pi Zero

Finally, added a bunch of tests for pins.data
2016-08-29 11:48:23 +01:00
Dave Jones
335ccdfb60 Fix #320
Yup, dirty horrid hack but the result is okay.
2016-08-14 22:55:34 +01:00
Dave Jones
8a04f0f300 Merge pull request #383 from SteveAmor/document_version_query
Document how to get the gpiozero version number
2016-08-14 14:02:26 +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
ubuntu
8d457df2e2 Document how to get the gpiozero version number 2016-06-18 20:44:46 +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
Andrew Scheller
3a7acbf89d Add LedBorg as a subclass of RGBLED 2016-05-26 20:27:16 +01:00
Ben Nuttall
9278a2f857 Add hold/held properties & methods to Button, close #287 2016-05-26 17:06:05 +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
Andrew Scheller
c9461c50d3 Add a pwm option to the RGBLED and Motor constructors
...along with the other necessary changes required, to allow them to
optionally be used with non-PWM-capable pins
2016-05-08 18:23:30 +01:00
Dave Jones
1575863ba5 Merge pull request #312 from lurch/rgbled_pulse
Add RGBLED.pulse method
2016-05-08 11:53:14 +01:00
Dave Jones
4e0aa9403f Merge pull request #298 from lurch/new_source_tools
New source tools: booleanized, pre_periodic_filtered & post_periodic_filtered
2016-05-08 11:01:01 +01:00
Andrew Scheller
18bb3f559e Add RGBLED.pulse method
Also add timing tests to all the blink unit-tests
2016-05-04 11:14:36 +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
Andrew Scheller
01d5cb928f New source tools: booleanized, pre_periodic_filtered & post_periodic_filtered
Also adds extra parameter validation to the existing source tools, adds input
min and max to inverted, and adds many more source tools unit tests.
2016-04-25 10:41:27 +01:00
Ben Nuttall
848d030ac9 Remove with blocks for consistency, re: #239 2016-04-21 23:55:04 +01:00
Dave Jones
663994c8a5 Merge pull request #293 from lurch/patch-5
Make Potentiometer Recipe more efficient
2016-04-21 23:28:58 +01:00
Andrew Scheller
5f336ad2b2 Make Potentiometer Recipe more efficient 2016-04-19 22:16:42 +01:00
Andrew Scheller
9ca4af39de Add extra Source Tools functions: smoothed, summed and multiplied 2016-04-19 22:02:01 +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
Edward Betts
40f64bc2b5 correct spelling of Artificial (#285)
* correct spelling of Artificial

* add extra = to fix heading
2016-04-17 23:10:35 +01:00
Dave Jones
79a0fd2a27 Fix #278
Allow the creation of remote pins easily with PiGPIOPin. Also changes
DefaultPin to a pin_factory callable which accepts the input pin number.
2016-04-16 00:30:22 +01:00
Dave Jones
43c69b9435 Update graphs for #277 2016-04-15 16:52:31 +01:00
Andrew Scheller
66264001e5 Docs update - Motor is composed of two PWMOutputDevices 2016-04-13 16:30:50 +01:00
Ben Nuttall
76ba188f85 Add missing SnowPi docs 2016-04-13 12:12:47 +01:00
Ben Nuttall
56bd1b3c46 Merge pull request #243 from waveform80/keyboard-robot
Fix #237
2016-04-10 20:55:26 +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
f82ddad1fc Last minute changes for 1.2
Warnings about non-physical pins, and period specification for
sin/cosine waves in tools
2016-04-10 20:09:12 +01:00
Dave Jones
ecc8df8041 Doc reorganization 2016-04-10 16:47:16 +01:00