Commit Graph

612 Commits

Author SHA1 Message Date
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
Ben Nuttall
36cbcc3b98 Correct MCP3001 and MCP3201 differentials, re: #162 2016-02-11 22:02:34 +00:00
Ben Nuttall
add95cc6c0 Merge branch 'master' of github.com:rpi-distro/python-gpiozero 2016-02-11 21:51:38 +00:00
Ben Nuttall
3f9ea91560 Add additional ADC chips, close #162 2016-02-11 21:51:25 +00:00
Dave Jones
810bb67a6d Merge pull request #187 from waveform80/test-skip-timing-on-pypy
Disable timing tests on pypy
2016-02-11 21:32:25 +00:00
Dave Jones
e8dbe5e3d6 Disable timing tests on pypy
Doing timing tests on pypy (for blink) just doesn't work; even with a
tolerance as coarse as tens-of-milliseconds, things fail. I guess that
isn't too surprising given that, as the tests are one off things the
pypy JIT is never getting a chance to spin up and do its stuff.
2016-02-11 21:30:13 +00:00
Dave Jones
2ea7107511 Merge pull request #186 from waveform80/tests-tests-tests
Work on #87
2016-02-11 21:18:31 +00:00
Ben Nuttall
7e2b002d2f Add more guidelines to contributing policy 2016-02-11 21:17:24 +00:00
Dave Jones
1f2140a9f5 Work on #87
Implement a test suite, including Travis-CI integration
2016-02-11 21:11:22 +00:00
Ben Nuttall
0bc16837d3 Remove google doc link 2016-02-11 00:12:22 +00:00