Commit Graph

401 Commits

Author SHA1 Message Date
Dave Jones
8426c68040 Merge pull request #280 from lurch/patch-4
Tiny typo
2016-04-15 16:53:37 +01:00
Dave Jones
bad99dfdec Merge pull request #282 from waveform80/update-graphs
Update graphs for #277
2016-04-15 16:53:28 +01:00
Dave Jones
43c69b9435 Update graphs for #277 2016-04-15 16:52:31 +01:00
Dave Jones
296c311d8f Merge pull request #277 from lurch/patch-3
Docs update - Motor is composed of two PWMOutputDevices
2016-04-15 16:47:58 +01:00
Andrew Scheller
b694ec838a Tiny typo 2016-04-14 02:02:40 +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
Dave Jones
25db608dad Bump version for release 2016-04-10 21:01:41 +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
20e56c54f7 Merge pull request #275 from waveform80/last-minute-12
Last minute changes for 1.2
2016-04-10 20:13:13 +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
e2b8171bbb Merge pull request #274 from waveform80/doc-reorg
Doc reorganization
2016-04-10 16:58:27 +01:00
Dave Jones
ecc8df8041 Doc reorganization 2016-04-10 16:47:16 +01:00
Dave Jones
8f8dddd403 Merge pull request #273 from lurch/composite_device_check
Check that the sub-devices of CompositeDevice are actually Device instances
2016-04-10 15:50:53 +01:00
Dave Jones
748904c156 Merge pull request #183 from lurch/LEDBoard_on-off-toggle_args
Add *args to the LEDBoard on(), off() and toggle() methods.
2016-04-10 15:38:50 +01:00
Andrew Scheller
8e09a077fd Check that the sub-devices of CompositeDevice are actually Device instances 2016-04-10 15:02:34 +01:00
Andrew Scheller
0089b5225c Add *args to the LEDBoard on(), off() and toggle() methods.
Implements #125
2016-04-10 01:35:18 +01:00
Dave Jones
05560f64c7 Merge pull request #271 from waveform80/doc-fixes-for-12
Some minor doc fixes for 1.2
2016-04-09 10:36:31 +01:00
Dave Jones
8c4096b19c Some minor doc fixes for 1.2 2016-04-09 10:30:03 +01:00
Dave Jones
4e75d49355 Merge pull request #270 from waveform80/tests-on-pi
Make tests work reliably on the Pi
2016-04-08 23:30:16 +01:00
Dave Jones
c2a9392ea5 Make tests work reliably on the Pi
While the tests work well on a PC or Travis, the Pi (where I ought to be
running them!) has some issues with the timing tests. Need to relax the
tolerance of the "assert_states_and_times" method to 0.05 seconds
otherwise it periodically fails even on something reasonably quick like
a Pi 2 (less failures on a Pi 3 but still occasionally).

Also reduced default fps to 25; if the default timing occasionally fails
on a Pi 2 it's evidently too fast for a Pi 1 and shouldn't be the
default; 25 also doesn't look any different to me on a pulsing LED.

There's also a bunch of miscellaneous fixes in here; last minute typos
and chart re-gens for the 1.2 release.
2016-04-08 23:11:14 +01:00
Dave Jones
44422bd6c9 Merge pull request #269 from lurch/patch-7
Typo
2016-04-08 17:03:03 +01:00
Dave Jones
dcdbf9b83f Merge pull request #267 from lurch/patch-5
Typo
2016-04-08 16:23:04 +01:00
Dave Jones
d52c70991b Merge pull request #265 from lurch/patch-4
Add LEDBarGraph to the composed_devices graph
2016-04-08 16:22:45 +01:00
Dave Jones
71675cf9ae Merge pull request #264 from lurch/patch-3
Typo
2016-04-08 16:21:50 +01:00
Dave Jones
d3b3023367 Merge pull request #262 from lurch/patch-2
Additional parameter-type validation
2016-04-08 16:15:38 +01:00
Andrew Scheller
6f92e979bd Typo 2016-04-08 15:27:17 +01:00
Andrew Scheller
542e1b8488 Typo 2016-04-08 13:16:21 +01:00
Andrew Scheller
9c99ffd40e Add LEDBarGraph to the composed_devices graph 2016-04-08 12:31:30 +01:00
Andrew Scheller
48dbfbdbff Typo 2016-04-08 12:22:23 +01:00
Andrew Scheller
943c3630e7 Additional parameter-type validation
...in line with the property setters
2016-04-08 11:36:01 +01:00
Dave Jones
271b86aa45 Merge pull request #260 from waveform80/button-held
Fix #115
2016-04-08 10:52:19 +01:00
Dave Jones
0838965796 Fix #115
Adds when_held event hook to Button (via extension of the EventsMixin
class). Also fixes some minor notes and activates codecov coverage
tracking.
2016-04-08 10:48:34 +01:00
Dave Jones
f746ecb7cc Merge pull request #259 from lurch/patch-2
Ensure CompositeDevice._order has deterministic behaviour
2016-04-07 20:49:34 +01:00
Dave Jones
bfd8497308 Merge pull request #258 from lurch/new_prospector_fixes
fix various bugs found by the 'prospector' static-analysis tool
2016-04-07 20:46:47 +01:00
Andrew Scheller
72ca075668 fix various bugs found by the 'prospector' static-analysis tool 2016-04-07 17:58:51 +01:00
Andrew Scheller
53dc1750c1 Ensure CompositeDevice._order has deterministic behaviour
... by sorting the kwargs, if no _order was specifically supplied.
2016-04-07 17:50:00 +01:00
Dave Jones
4f7e1f003e Merge pull request #257 from waveform80/disable-timing-test-on-pypy
Dsiable control_all test on pypy
2016-04-06 23:24:06 +01:00
Dave Jones
dc79671b39 Dsiable control_all test on pypy
Timing too random as usual...
2016-04-06 23:20:55 +01:00
Ben Nuttall
22388b8e83 Merge pull request #256 from waveform80/last-tests-for-12
Fix #204 and start readying the release
2016-04-06 23:11:22 +01:00
Dave Jones
ee3bd6b532 Fix #204 and start readying the release
Also re-numbers energenie sockets 1-4 (as noted by @bennuttall in
comments to #239), and adds several "real pins" tests and board tests.
The bad-PWM stuff is currently disabled as it causes segfaults when
running the tests and I can't seem to trace the cause at the moment.
Finally, I've tweaked the deb config to suggest gpiozero, removed spidev
as a mandatory dep (which'll fix installs on wheezy for py3), and
there's some more miscellaneous last-minute stuff here that I can't
recall...
2016-04-06 23:06:46 +01:00
Dave Jones
09ceed6fb3 Merge pull request #253 from waveform80/yet-more-tests
More work on the tests...
2016-04-05 13:25:01 +01:00
Dave Jones
3acf8a0d3a More work on the tests... 2016-04-05 13:22:40 +01:00
Dave Jones
2a2e77051d Merge pull request #252 from waveform80/more-tests
Some more tests...
2016-04-05 02:25:12 +01:00
Dave Jones
92d80d2ae6 Some more tests... 2016-04-05 02:22:38 +01:00
Dave Jones
6c39e7716f Merge pull request #246 from waveform80/pin-database
Add pins database
2016-04-05 00:51:27 +01:00
Dave Jones
50946b417c Add pins database
Related to @lurch's comments on #148, this PR contains a database of
pins for each Pi revision, along with various other bits of miscellany
(I might've gotten a bit carried away here...).

Any corrections/extensions welcome!
2016-04-05 00:44:19 +01:00
Ben Nuttall
b31c663900 Merge pull request #251 from waveform80/source-tools
The source/values toolkit
2016-04-05 00:15:13 +01:00
Dave Jones
69dd8a439a The source/values toolkit
Me and my big mouth. No sooner do I declare the base classes "relatively
stable" than I go and mess around with it all again. Anyway, this is the
long promised set of utilities to make source/values more interesting.
It includes a few interesting little utility functions, a whole bunch of
examples and introduces the notion of "pseudo" devices with no (obvious)
hardware representation like a time-of-day device.

This necessitated making the event system a little more generic (it's
not exclusive the GPIO devices after all; no reason we can't use it on
composite devices in future) and by this point the mixins have gotten
large enough to justify their own module.

The pseudo-devices are a bit spartan and basic at the moment but I'm
sure there'll be plenty of future ideas...
2016-04-04 23:59:05 +01:00