359 Commits

Author SHA1 Message Date
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
Ben Nuttall
8f881bae1b Merge pull request #361 from lurch/patch-2
Doc tweak
2016-06-09 21:22:55 +01:00
Andrew Scheller
754c9c9b9c Initial version of ButtonBoard for testing...
...not ready to be merged into master yet!
2016-06-09 19:45:22 +01:00
Andrew Scheller
ee458214a0 Typo fix 2016-06-06 10:59:31 +01:00
Andrew Scheller
c1c9bcebee Document Button default values 2016-06-06 03:46:32 +01:00
Andrew Scheller
d3071a2780 Doc tweak
The default value should only be documented for the init-method, not on the property itself
2016-06-06 03:30:23 +01:00
Andrew Scheller
68f5f74668 Minor CompositeDevice tweaks
Always make `__repr__` print subdevices in the same order as `value`
No need to check for missing keys if _order wasn't explicitly supplied
2016-06-06 02:38:41 +01:00
Ben Nuttall
8b81057f8b Fix typo in pigoiod import 2016-06-05 13:00:24 +01:00
Andrew Scheller
97202b9250 Add extra product URLs to the boards.py docstrings 2016-06-05 11:59:14 +01:00
Ben Nuttall
ea1ec451ef Add Pi Zero v1.3
@waveform80 does this look ok to you?
2016-06-04 17:34:05 +01:00
Andrew Scheller
87046ac645 Update sourcetools examples
Remove blue.source_delay, as it's actually red.source_delay that controls the speed of the fading
2016-06-03 16:42:26 +01:00
Ben Nuttall
4db57cd0ac Use keyword args for echo & trigger in DistanceSensor example 2016-06-03 16:37:11 +01:00
Andrew Scheller
5455034a12 Make CompositeDevice._named a frozendict (and add frozendict to compat.py)
This prevents it being modified post-construction (just like the way
CompositeDevice._all and CompositeDevice._order are already 'frozen' by being
tuples)
2016-05-31 16:52:14 +01:00
Ben Nuttall
70e3d1b4cd Merge pull request #341 from lurch/deprecate_CompositeDevice_all
remove usage of CompositeDevice.all since it's marked as deprecated
2016-05-31 00:22:41 +01:00
Ben Nuttall
35d9228843 Merge pull request #342 from lurch/robot_value
Add value-setter for Robot class
2016-05-28 17:07:16 +01:00
Andrew Scheller
d8ae4b6814 Typo 2016-05-28 13:56:04 +01:00
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
8b006e9fb7 Merge pull request #339 from lurch/extra_init_params
Add extra init-method params
2016-05-28 12:39:25 +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
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
Andrew Scheller
a1ec9c67e5 Tweak the ADC classes to make the docs neater and more accurate 2016-05-27 11:36:30 +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
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
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