Ben Nuttall
de258bc1ad
Add max_voltage property, ensure it is positive and cast to a float
2016-05-26 23:24:41 +01:00
Ben Nuttall
28f1d34ff9
Add ADC.voltage property, fix #329
2016-05-26 17:32:37 +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
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
Dave Jones
39573a3093
Merge pull request #308 from SteveAmor/master
...
Corrected value of capacitor used in LightSensor
2016-05-08 11:40:13 +01:00
Dave Jones
2f41335dcd
Merge pull request #316 from RPi-Distro/revert-301-patch-1
...
Revert "Update output_devices.py"
2016-05-08 11:39:37 +01:00
Dave Jones
97e873dd2e
Revert "Update output_devices.py"
2016-05-08 11:39:25 +01:00
Dave Jones
714638a195
Merge pull request #301 from goloplo/patch-1
...
Update output_devices.py
2016-05-08 11:38:26 +01:00
Dave Jones
afc847c159
Merge pull request #307 from lurch/extra_board_tests
...
Add more unit tests, fix a few small bugs
2016-05-08 11:36:27 +01:00
Dave Jones
4d8e49c5b8
Merge pull request #304 from lurch/patch-2
...
Minor Energenie tweaks
2016-05-08 11:10:38 +01:00
Dave Jones
94a05adddf
Merge pull request #297 from lurch/patch-1
...
Add coverage badge to README
2016-05-08 11:02:09 +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
86aeab4129
Add active_high parameter to LEDBarGraph's constructor
...
Also adds an active_high property to LEDCollection, and fixes up some of the LEDBoard docstrings
2016-05-06 11:53:00 +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
Andrew Scheller
67261e44b2
Typo in SPISoftwareBus._shared_key
...
It's a @classmethod, so the first parameter is cls not self
2016-05-02 19:53:33 +01:00
Steveis
191cda29c0
Another SI unit correction
2016-05-02 11:20:59 +01:00
Steveis
bdaa927279
Correct capacitance SI unit
2016-05-01 19:34:30 +01:00
Steveis
019347db26
Corrected value of capacitor used in LightSensor
...
CamJam kit has a 1uF capacitor in it. Plus I physically tested with the 1uF cap in my CamJam #2 kit.
2016-05-01 18:04:02 +01:00
Andrew Scheller
fddb95b84b
Add more unit tests, fix a few small bugs
2016-04-30 16:47:29 +01:00
Andrew Scheller
864c4f9327
test Energenie repr
2016-04-30 14:12:51 +01:00
Andrew Scheller
28afa63ba8
test tweak
2016-04-30 12:24:05 +01:00
Andrew Scheller
708157c8fd
Minor Energenie tweaks
2016-04-30 12:19:45 +01:00
Ben Nuttall
7e6cc39d71
Merge pull request #299 from raspitv/master
...
Correct LED -> PWMLED in recipes
2016-04-28 18:17:09 -07:00
goloplo
3e8a998661
Update output_devices.py
2016-04-28 21:07:37 +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
Andrew Scheller
d244b9a0ab
Add coverage badge to README
2016-04-24 20:05:39 +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
Dave Jones
750a1c4dda
Merge pull request #292 from lurch/extra_source_tools
...
Add extra Source Tools functions: smoothed, summed and multiplied
2016-04-21 23:28:25 +01:00
Dave Jones
0f0b175950
Merge pull request #291 from lurch/patch-4
...
Add docs/_build to .gitignore
2016-04-21 23:22:21 +01:00
Andrew Scheller
5f336ad2b2
Make Potentiometer Recipe more efficient
2016-04-19 22:16:42 +01:00