Andrew Scheller
3eaa1aa896
Add link to CONTRIBUTING doc to README
...
And remove the duplicate link definitions for `Ben Nuttall` and `Dave Jones`
2016-02-22 11:11:23 +00:00
Dave Jones
aa6bd63883
Merge pull request #221 from lurch/patch-1
...
RPIOPin fixups
2016-02-22 09:51:31 +00:00
Andrew Scheller
2495e903df
RPIOPin fixups
...
...as discovered using the new real_pins unit-tests.
2016-02-22 02:46:19 +00:00
Dave Jones
591df70296
Merge pull request #220 from waveform80/test-real-pins
...
Add "real" pins tests
2016-02-21 23:21:23 +00:00
Dave Jones
b6fb4e4d89
Add "real" pins tests
...
This is just a quicky for people to start playing with - it's not
complete in any way, shape, or form. This is how I envisage the "real"
pin tests being done; part of the test suite with a `skipif` to ensure
they don't get run on non-Pi platforms, with a fixture to loop over
whatever pin implementations are found (we can't always assume all of
them: for example, RPIO doesn't work on a Pi 2), and a relatively simple
wiring for the test.
In this case I've assumed GPIOs 22 and 27 are wired together. They're
next to each other, so a jumper is sufficient to run the test.
PRs extending the coverage are very welcome (I've already discovered and
fixed several silly bugs in NativePin!). I've left all the interesting
hard stuff for people to play with (PWM testing: statistical sampling?
debounce compensation testing: timing?). When I've got a second, I'll
looking into hooking up my Pi Zero as a Travis-esque test-bed for this,
triggered by GitHub webhooks (not sure how I'll deal with reporting
yet).
2016-02-21 23:16:24 +00:00
Dave Jones
79814eaa1c
Merge pull request #218 from lurch/more_mockpin_tweaks
...
More small MockPin tweaks
2016-02-21 01:33:30 +00:00
Andrew Scheller
741a8ec7f3
More small MockPin tweaks
2016-02-21 01:24:10 +00:00
Dave Jones
ee7d5c5df7
Merge pull request #217 from lurch/mock_tweak
...
MockPin improvements
2016-02-21 00:44:12 +00:00
Andrew Scheller
c0d70f35f6
MockPin improvements
...
Change MockPin (and MockPWMPin) to make them behave more like 'real' pins - fixes #206
Add new MockPin tests, and rework some of the existing ones
Incorporate #216
2016-02-21 00:35:01 +00:00
Dave Jones
80dfee5c3f
Merge pull request #211 from lurch/patch-2
...
RPiGPIOPin fixups
2016-02-20 17:51:11 +00:00
Dave Jones
50964a41ec
Merge pull request #214 from lurch/patch-4
...
MockPin fixups
2016-02-20 17:41:46 +00:00
Dave Jones
8c53fad61e
Merge pull request #213 from lurch/patch-3
...
NativePin fixups
2016-02-20 17:38:02 +00:00
Andrew Scheller
d914c79207
Small change to test_mock_pin_frequency_unsupported
2016-02-20 17:35:24 +00:00
Andrew Scheller
768a27a71b
MockPin fixups
...
* alter the PinSetInput exception message to match other `Pin` implementations
* constrain the state of MockPin to a `bool`, and the state of MockPWMPin to a `float`
* allow MockPin to have a `None` frequency set, matching the docs http://gpiozero.readthedocs.org/en/latest/api_pins.html#gpiozero.pins.Pin.frequency
2016-02-20 17:32:11 +00:00
Dave Jones
5017557b73
Merge pull request #210 from lurch/patch-1
...
'Fix' test_mock_pin_frequency_unsupported
2016-02-20 17:26:26 +00:00
Andrew Scheller
c878b20bcc
NativePin fixups
...
* rename FUNCTION / PULL / EDGES dictionaries so that they better-match the other `Pin` implementations
* throw `PinSetInput` if trying to set the state of an input pin
2016-02-20 17:15:34 +00:00
Andrew Scheller
9883cf901a
RPiGPIO fixups
...
* Imported missing exceptions
* Corrected wrong PinInvalidValue exception
* GPIO.PWM is a class (GPIO.HARD_PWM is the constant)
* GPIO.setup only supports setting input and output modes https://sourceforge.net/p/raspberry-gpio-python/code/ci/default/tree/source/py_gpio.c#l264
2016-02-20 15:37:13 +00:00
Andrew Scheller
5c5934a8f3
'Fixed' test_mock_pin_frequency_unsupported
...
See the discussion at https://github.com/RPi-Distro/python-gpiozero/issues/206#issuecomment-186289488
2016-02-20 13:42:54 +00:00
Dave Jones
b1943c978e
Merge pull request #203 from lurch/patch-4
...
Catch AttributeError inside GPIODevice._read
2016-02-19 11:26:43 +00:00
Dave Jones
b30e8c2830
Merge pull request #205 from lurch/patch-5
...
Documentation fix
2016-02-19 11:14:08 +00:00
Andrew Scheller
d1bb5fe66a
Added another unit test
2016-02-19 00:19:41 +00:00
Andrew Scheller
e5b7436d47
Documentation fix
...
To stop http://gpiozero.readthedocs.org/en/latest/api_pins.html#abstract-pin saying "class gpiozero.pins.native.Pin"
(which AFAICT is wrong)
2016-02-18 23:37:45 +00:00
Andrew Scheller
504b0b9047
Add some GPIODevice unit-tests
2016-02-18 20:01:13 +00:00
Andrew Scheller
d970af73fd
Catch AttributeError inside GPIODevice._read
...
Fixes #202
2016-02-18 18:53:52 +00:00
Dave Jones
9cc9242f27
Merge pull request #201 from lurch/patch-3
...
Add .cache directory to .gitignore
2016-02-17 20:21:54 +00:00
Andrew Scheller
fc95cd8056
Add .cache directory to .gitignore
...
Seems to get created during `make test`
2016-02-17 12:36:40 +00:00
Ben Nuttall
ec4fab47bf
Add Schelto vanDoorn to list of contributors
2016-02-14 16:52:21 +00:00
Ben Nuttall
1285f1ffbb
Add Andrew Scheller to list of contributors
...
Thanks @lurch
2016-02-14 13:43:40 +00:00
Ben Nuttall
72afe2250a
Expose all MCP* classes added in #162
2016-02-14 13:23:29 +00:00
Ben Nuttall
91cc0620ee
Add Slack notification
2016-02-14 01:02:05 +00:00
Ben Nuttall
263f0e9e8f
Fix TrafficLightsBuzzer's blink, close #190
2016-02-14 00:46:34 +00:00
Dave Jones
aa74a491c5
Merge pull request #196 from waveform80/circuit-diagrams-3
...
Work on #51 - add pot diagram
2016-02-13 10:07:30 +00:00
Dave Jones
38b89a36f7
Work on #51 - add pot diagram
2016-02-13 10:06:27 +00:00
Dave Jones
a522a97c11
Merge pull request #195 from waveform80/circuit-diagrams-2
...
Patched circuit diagrams
2016-02-13 09:30:59 +00:00
Dave Jones
e790a097bd
Patched circuit diagrams
...
Thanks to @lurch for the suggestions!
2016-02-13 09:29:23 +00:00
Dave Jones
ff71e0b544
Merge pull request #194 from waveform80/circuit-diagrams
...
Work on #51
2016-02-13 00:49:05 +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
Ben Nuttall
b3ef7440d5
Merge branch 'master' of github.com:rpi-distro/python-gpiozero
2016-02-12 22:50:18 +00:00
Ben Nuttall
052a998cd5
Add pulse to LEDBoard, re: #165
2016-02-12 22:50:05 +00:00
Dave Jones
0978b4c459
Merge pull request #192 from waveform80/pigpiod
...
Fix #180 - Add support for pigpio
2016-02-12 20:15:25 +00:00
Dave Jones
aebe42875d
Fix #180 - Add support for pigpio
2016-02-12 20:14:10 +00:00
Dave Jones
3efd522457
Merge pull request #184 from waveform80/ultrasonics
...
Fix #114
2016-02-12 19:32:24 +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
Ben Nuttall
81123f87d5
Remove on_time and off_time from PWMLED.pulse, add docstring, close #165
2016-02-12 19:12:55 +00:00
Ben Nuttall
171e25caf9
Merge branch 'lurch-PWMLED_pulse'
2016-02-12 19:08:54 +00:00
Ben Nuttall
6174ef035e
Merge branch 'PWMLED_pulse' of https://github.com/lurch/python-gpiozero into lurch-PWMLED_pulse
2016-02-12 19:08:40 +00:00
Ben Nuttall
c2d37bccee
Merge branch 'master' of github.com:rpi-distro/python-gpiozero
2016-02-11 22:12:58 +00:00
Ben Nuttall
8482fd12a3
Add active_high and initial_value to LEDCollection, close #175
2016-02-11 22:12:45 +00:00
Dave Jones
d8e1503b80
Merge pull request #188 from waveform80/moar-badges
...
More badges!
2016-02-11 22:11:55 +00:00
Dave Jones
f57b545ad4
More badges!
...
Because we're trendy like that.
2016-02-11 22:11:20 +00:00