Ben Nuttall
02938b48ec
Tidy up pinout tool PR
2016-12-05 21:03:06 +00:00
Ben Nuttall
6e6c80a9fa
Merge branch 'master' of https://github.com/stewartadcock/python-gpiozero into stewartadcock-master
2016-12-05 20:56:25 +00:00
Stewart
a812bfedeb
Fix minor typo
2016-11-07 22:34:41 +00:00
Stewart
726e861238
Add pinout command-line tool
2016-11-07 22:09:59 +00:00
SteveAmor
9299438147
Correct small typo
2016-10-17 20:38:45 +00:00
Andrew Scheller
f3ccaf891c
Update for rev 1.0 2B
2016-09-22 23:19:20 +01:00
Ben Nuttall
69aaa627fc
Correct B+/2B release date change
2016-09-22 16:41:39 +01:00
Ben Nuttall
2046af7454
Add release date for new BCM2837-based Pi 2B
...
I think this is all that's needed to make pi_info accurate
2016-09-22 15:25:27 +01:00
Dave Jones
9cbcd079e6
Merge pull request #460 from lurch/alternating_values
...
Add a new alternating_values SourceTool
2016-09-21 19:10:54 +01:00
Andrew Scheller
9fbed050ce
Add a new alternating_values SourceTool
2016-09-21 16:16:42 +01:00
Andrew Scheller
ac37ec26bc
Refactor GPIOQueue.fill()
...
squash the two while loops down into one
2016-09-21 00:09:41 +01:00
Dave Jones
9046ea3033
Fix #436
...
Permit partial, partialmethod, and wraps to be used with event handlers
2016-09-20 11:16:04 +01:00
Ben Nuttall
a79f8ccc16
Merge pull request #446 from lurch/traffic_lights_tweak
...
Add extra TrafficLight tests, and remove the redundant setattr function
2016-09-19 14:13:51 +01:00
Ben Nuttall
bda5bcab76
Merge pull request #433 from RPi-Distro/lurch-patch-1
...
Default to 'full' content in __format__
2016-09-19 14:11:20 +01:00
Ben Nuttall
12932c67d8
Merge pull request #441 from lurch/add_pistop_board
...
Add support for the Pi-Stop Traffic-light board
2016-09-19 14:10:50 +01:00
Andrew Scheller
73bfa31603
Actually report the class name for closed CompositeDevices
2016-09-19 12:21:54 +01:00
Andrew Scheller
1b3e6a429b
Add extra TrafficLight tests, and remove the redundant setattr function
...
- `CompositeDevice`s can't have any of their attributes set anyway
2016-09-19 12:00:38 +01:00
Andrew Scheller
eaa6016ded
Typo
2016-09-19 11:00:28 +01:00
Andrew Scheller
c35741c793
Add support for the Pi-Stop Traffic-light board
2016-09-19 01:11:29 +01:00
Andrew Scheller
4e66c0fcd3
Default to 'full' content in __format__
...
...when no explicit content argument is given
2016-09-13 23:50:19 +01:00
Dave Jones
27c0703043
Fix #354
...
Actually, "fix" doesn't really do this justice. This is closer to "nukes
from orbit" ...
2016-09-13 17:37:17 +01:00
Dave Jones
737a739cd6
Fix #421
...
Added SPI tests, simplified the shared SPI software bus implementation,
and fixed several protocol errors in our MCP3xxx classes (the x2 and x1
protocols were wrong)
2016-09-08 22:24:06 +01:00
Dave Jones
b6fb8bf748
Merge pull request #281 from lurch/adc_tweaks
...
Tweak the ADC classes to make the docs neater and more accurate
2016-09-08 15:48:08 +01:00
Ben Nuttall
89062ed4c2
Add quotes to dict keys
...
This is a bug introduced in v1.3.0. Currently, hardware SPI is not possible because the NameError is caught on 418 and incorrectly dealt with. The plan is to do a point release v1.3.1 to address this.
2016-08-31 15:04:07 +01:00
Ben Nuttall
f55a8f1cc8
Don't use with statements in examples
...
Also tidy up line spacing
2016-08-31 14:32:36 +01:00
Ben Nuttall
d74f22181e
Use python 3 print function in examples
2016-08-31 14:23:15 +01:00
Dave Jones
3ac838f85f
Raise warning when spidev missing for hardware SPI
2016-08-30 23:48:56 +01:00
Dave Jones
ab61fa9b6d
Patch for #385
...
DistanceSensor currently doesn't work well in Python 2 due to large lags
in thread event primitives. The "full" fix will require enhancing the
pins API, so this is a temporary patch to provide a fix (at least under
RPi.GPIO) until then.
2016-08-30 23:31:33 +01:00
Dave Jones
9272b28b2e
Merge pull request #370 from lurch/ButtonBoard
...
Initial version of ButtonBoard for testing...
2016-08-30 23:19:00 +01:00
Dave Jones
02f7d20bc3
Fix #248
...
Add Servo and AngularServo implementation along with docs and tests.
This is a deliberately minimal implementation designed to be added to as
we agree on new extensions (better than making an all-singing,
all-dancing version in which I get things wrong and then wind up making
backward incompatible changes to get it right :)
2016-08-30 21:33:28 +01:00
Dave Jones
6f67a973cf
Fix all the stuff you broke last night...
...
In particular the `pi_revision` thing in PiGPIOPin, all the stuff @lurch
picked up in `pins/data.py` (thank goodness *someone's* watching!), and
make all those links pointing to "Notes" point somewhere useful like
"Pin Numbering"...
2016-08-30 15:43:57 +01:00
Dave Jones
04075380e1
Fix #294
...
Still need to sort out threads for the internal devices to continually
poll their values so that the wait-states work properly
2016-08-29 23:53:09 +01:00
Dave Jones
6cc308e44a
Fix #354 , fix #389
...
Overhaul the pi_info system:
Pin factories are now capable of generating pi_info themselves (although
currently they all just look up the revision and call pi_info with a
specific one).
PiGPIOPin will now return pi_info for the remote pi which can be
specified by parameter or implicitly by the environment vars.
Overvolted Pis should work properly no matter what (some argument over
whether the revision 7 or 8 chars in this case; both should work). Added
some minor tweaks for the new camera-capable Pi Zero
Finally, added a bunch of tests for pins.data
2016-08-29 11:48:23 +01:00
Andrew Scheller
37b91ced74
Correct number of ComputeModule USB ports (part 2)
...
Correct associated documentation
2016-08-18 00:22:07 +01:00
Andrew Scheller
65285d1b33
Correct number of ComputeModule USB ports
...
Fixes #384
2016-08-14 23:43:59 +01:00
Dave Jones
0c51976c93
Merge pull request #352 from lurch/patch-1
...
Update sourcetools examples
2016-08-14 20:28:55 +01:00
Dave Jones
57c8a3b4dd
Merge pull request #372 from lurch/amber_gambler
...
Add 'yellow' as an alias of 'amber' for TrafficLights
2016-08-14 20:27:41 +01:00
Dave Jones
1ec2b763f5
Fix #359 , close #396
2016-08-14 12:42:25 +01:00
BuildTools
76ab6badd2
Applying suggestion by lurch in https://github.com/RPi-Distro/python-gpiozero/pull/395 comment.
2016-07-27 00:17:20 +02:00
BuildTools
23fabb68ce
Use PIGPIO_ADDR and PIGPIO_PORT environment variable if they exist to configure PiGPIO, otherwise it use the default value 'localhost' and 8888. This is the same behaviour as the pigpio library for initialisation.
2016-07-26 22:45:38 +02:00
Andrew Scheller
23e153df50
Correct manufacturer of 0x14 ComputeModule
2016-06-19 11:30:58 +01:00
Andrew Scheller
74a0871353
Doc typos
2016-06-14 23:18:13 +01:00
Andrew Scheller
f5c2d3a889
Doc typo
2016-06-14 16:13:35 +01:00
Ben Nuttall
9c15afe77e
Use robot.forward() not robot.left() in examples
2016-06-12 22:09:55 +01:00
Andrew Scheller
c64e541167
Update sourcetools examples
...
Explicitly set blue.source_delay to the same value as red.source_delay
2016-06-11 01:56:50 +01:00
Andrew Scheller
f96ab609e2
TrafficLights.value also reports 'yellow' instead of 'amber' when appropriate
2016-06-10 12:44:39 +01:00
Andrew Scheller
38262a125f
Add 'yellow' as an alias of 'amber' for TrafficLights
...
Fixes #345
2016-06-10 12:43:22 +01:00
Andrew Scheller
382966e4e4
Allow TrafficLights, RGBLED and Motor to be constructed using GPIO 0
2016-06-10 11:49:53 +01:00
Ben Nuttall
a20e03527c
Merge pull request #348 from lurch/freeze_composite_device_internals
...
Make CompositeDevice._named a frozendict (and add frozendict to compat.py)
2016-06-09 21:29:41 +01:00
Ben Nuttall
2912020267
Merge pull request #360 from lurch/composite_tweaks
...
Minor CompositeDevice tweaks
2016-06-09 21:27:57 +01:00