Commit Graph

589 Commits

Author SHA1 Message Date
Andrew Scheller
b3035d306e Add value-setter for Robot class
Fixes #305
2016-05-28 13:50:47 +01:00
Andrew Scheller
42371294a2 remove usage of CompositeDevice.all since it's marked as deprecated 2016-05-28 13:14:45 +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
8b006e9fb7 Merge pull request #339 from lurch/extra_init_params
Add extra init-method params
2016-05-28 12:39:25 +01:00
Ben Nuttall
261f823611 Merge pull request #338 from lurch/patch-1
Change LEDBoard.leds to return a static tuple
2016-05-28 12:21:23 +01:00
Andrew Scheller
e832cfeb23 Add extra init-method params
adds `initial_value` to PiLiter, TrafficLights, PiTraffic & SnowPi and
adds `pwm` to PiTraffic
2016-05-28 12:17:52 +01:00
Andrew Scheller
871c9268b2 Change LEDBoard.leds to return a static tuple
fixes #337
2016-05-28 10:42:49 +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
Ben Nuttall
561f674d93 Merge pull request #336 from lurch/patch-1
Doc fix: initial_value for PWMOutputDevice and PWMLED are float (not bool)
2016-05-28 00:03:38 +01:00
Andrew Scheller
90ba151d26 Doc fix: initial_value for PWMOutputDevice and PWMLED are float (not bool) 2016-05-27 23:27:58 +01:00
Ben Nuttall
a13a7bb1c4 Correct PiLiterBarGraph init params 2016-05-27 22:05:09 +01:00
Ben Nuttall
a116e9ded0 Add PWM support to PiLiterBarGraph 2016-05-27 21:51:20 +01:00
Dave Jones
c60d2c2bbd Merge pull request #335 from lurch/patch-1
Fix Travis-build Recipe
2016-05-27 10:44:28 +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
a90bbdaa2e Merge pull request #328 from lurch/patch-2
Remove redundant line of code
2016-05-26 23:09:34 +01:00
Ben Nuttall
e515601a2c Merge pull request #332 from lurch/patch-4
Doc fix: RGBLED's initial_value is a tuple
2016-05-26 23:08:55 +01:00
Ben Nuttall
80ff2d70f1 Merge pull request #333 from lurch/add_ledborg
Add LedBorg as a subclass of RGBLED
2016-05-26 23:08:39 +01:00
Ben Nuttall
af84ed1c04 Merge pull request #327 from lurch/patch-1
Don't (implicitly) set an initial_value in PWMOutputDevice's init method via the super() call
2016-05-26 23:08:25 +01:00
Ben Nuttall
13bd2fca2e Merge pull request #334 from lurch/patch-5
DistanceSensor: make the max_distance setter more like __init__
2016-05-26 23:08:03 +01:00
Andrew Scheller
3a7acbf89d Add LedBorg as a subclass of RGBLED 2016-05-26 20:27:16 +01:00
Andrew Scheller
fea0e79bea DistanceSensor: make the max_distance setter more like __init__ 2016-05-26 20:14:51 +01:00
Andrew Scheller
d2833e988f Doc fix: RGBLED's initial_value is a tuple 2016-05-26 19:24:19 +01:00
Ben Nuttall
9278a2f857 Add hold/held properties & methods to Button, close #287 2016-05-26 17:06:05 +01:00
Ben Nuttall
3c61b71d7e Update RTD links to .io 2016-05-24 22:56:04 +01:00
Andrew Scheller
48bac77d29 Remove redundant line of code
self._bits is already set in AnalogInputDevice so no need to also set it in MCP3xxx
2016-05-24 10:25:47 +01:00
Andrew Scheller
3ee154189c Don't (implicitly) set an initial_value in PWMOutputDevice's init method via the super() call
fixes #326
2016-05-23 20:57:58 +01:00
Dave Jones
2bced655c8 Merge pull request #324 from lurch/pwm_float
Always make PWMOutputDevice operate on floats.
2016-05-11 16:32:14 +01:00
Andrew Scheller
da9b0bb644 Always make PWMOutputDevice operate on floats.
And better 'encapsulation' of the active_high properties.
2016-05-11 16:23:39 +01:00
Dave Jones
92cb735c7f Merge pull request #319 from lurch/test_ledcollection_active_high
Add tests for LEDBoard.active_high and LEDBarGraph.active_high
2016-05-11 16:15:58 +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
Dave Jones
ac40a6dc4e Merge pull request #322 from lurch/event_is_set
Replace Event.wait(0) with Event.is_set()
2016-05-10 16:32:12 +01:00
Dave Jones
3e1ca62e0e Merge pull request #321 from lurch/patch-1
typo
2016-05-10 16:25:35 +01:00
Andrew Scheller
87d00f9047 Replace Event.wait(0) with Event.is_set()
The functionality is identical, and IMHO the latter is much more readable
2016-05-10 15:03:28 +01:00
Andrew Scheller
eaf0d5ce1e Add tests for LEDBoard.active_high and LEDBarGraph.active_high
Also add LEDBoard.value tests
2016-05-10 11:53:36 +01:00
Andrew Scheller
a9d827663d typo 2016-05-10 05:51:28 +01:00
Dave Jones
c44a4bfe4b Merge pull request #303 from lurch/non_pwmed_motor
Add a `pwm` option to the RGBLED and Motor constructors
2016-05-09 11:52:47 +01:00
Dave Jones
afcec87bab Merge pull request #318 from waveform80/fix-codecov-changes
Mark optional sleeps with no coverage
2016-05-09 11:17:27 +01:00
Dave Jones
c92e622504 Merge pull request #317 from lurch/patch-1
Tweak test for better coverage report
2016-05-09 11:12:42 +01:00
Dave Jones
fd4075835e Mark optional sleeps with no coverage
Codecov frequently whinges about "unexpected coverage changes" on PRs;
this is because the sleep lines affected sometimes execute and sometimes
don't (they're only there to ensure something exists before we test it).
Hopefully codecov notices the pragmas...
2016-05-09 11:10:31 +01:00
Andrew Scheller
0c2a13367d Tweak test for better coverage report 2016-05-09 00:18:10 +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
1b7dad5fa4 Merge pull request #313 from lurch/patch-5
Add active_high parameter to LEDBarGraph's constructor
2016-05-08 11:56:51 +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
4ff0f3f043 Merge pull request #311 from lurch/patch-4
Typo in SPISoftwareBus._shared_key
2016-05-08 11:42:59 +01:00