Skip to content

Commit 460df45

Browse files
committed
Merge pull request gpiozero#178 from waveform80/release-logs
Bump version and update changelog for 1.1
2 parents 6f99d61 + b4a8273 commit 460df45

File tree

5 files changed

+59
-18
lines changed

5 files changed

+59
-18
lines changed

docs/api_output.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ PWMLED
2525
.. autoclass:: PWMLED(pin, active_high=True, initial_value=0, frequency=100)
2626
:members: on, off, toggle, blink, pin, is_lit, value
2727

28-
Buzzer
28+
RGBLED
2929
======
3030

31-
.. autoclass:: Buzzer(pin, active_high=True, initial_value=False)
32-
:members: on, off, toggle, beep, pin, is_active
31+
.. autoclass:: RGBLED(red, green, blue, active_high=True, initial_value=(0, 0, 0))
32+
:members: on, off, toggle, blink, red, green, blue, is_lit, color
3333

34-
RGBLED
34+
Buzzer
3535
======
3636

37-
.. autoclass:: RGBLED(red, green, blue, active_high=True)
38-
:members: on, off, toggle, blink, red, green, blue, color
37+
.. autoclass:: Buzzer(pin, active_high=True, initial_value=False)
38+
:members: on, off, toggle, beep, pin, is_active
3939

4040
Motor
4141
=====

docs/changelog.rst

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,56 @@
22
Changelog
33
=========
44

5+
.. currentmodule:: gpiozero
6+
7+
8+
Release 1.1.0 (2016-02-08)
9+
==========================
10+
11+
* Documentation converted to reST and expanded to include generic classes
12+
and several more recipes (`#80`_, `#82`_, `#101`_, `#119`_, `#135`_, `#168`_)
13+
* New :class:`LEDBarGraph` class (many thanks to Martin O'Hanlon!) (`#126`_,
14+
`#176`_)
15+
* New :class:`Pin` implementation abstracts out the concept of a GPIO pin
16+
paving the way for alternate library support and IO extenders in future
17+
(`#141`_)
18+
* New :meth:`LEDBoard.blink` method which works properly even when background
19+
is set to ``False`` (`#94`_, `#161`_)
20+
* New :meth:`RGBLED.blink` method which implements (rudimentary) color fading
21+
too! (`#135`_, `#174`_)
22+
* New ``initial_value`` attribute on :class:`OutputDevice` ensures consistent
23+
behaviour on construction (`#118`_)
24+
* New ``active_high`` attribute on :class:`PWMOutputDevice` and :class:`RGBLED`
25+
allows use of common anode devices (`#143`_, `#154`_)
26+
* Loads of new ADC chips supported (many thanks to GitHub user pcopa!)
27+
(`#150`_)
28+
29+
.. _#80: https://github.com/RPi-Distro/python-gpiozero/issues/80
30+
.. _#82: https://github.com/RPi-Distro/python-gpiozero/issues/82
31+
.. _#94: https://github.com/RPi-Distro/python-gpiozero/issues/94
32+
.. _#101: https://github.com/RPi-Distro/python-gpiozero/issues/101
33+
.. _#118: https://github.com/RPi-Distro/python-gpiozero/issues/118
34+
.. _#119: https://github.com/RPi-Distro/python-gpiozero/issues/119
35+
.. _#126: https://github.com/RPi-Distro/python-gpiozero/issues/126
36+
.. _#135: https://github.com/RPi-Distro/python-gpiozero/issues/135
37+
.. _#141: https://github.com/RPi-Distro/python-gpiozero/issues/141
38+
.. _#143: https://github.com/RPi-Distro/python-gpiozero/issues/143
39+
.. _#150: https://github.com/RPi-Distro/python-gpiozero/issues/150
40+
.. _#154: https://github.com/RPi-Distro/python-gpiozero/issues/154
41+
.. _#161: https://github.com/RPi-Distro/python-gpiozero/issues/161
42+
.. _#168: https://github.com/RPi-Distro/python-gpiozero/issues/168
43+
.. _#174: https://github.com/RPi-Distro/python-gpiozero/issues/174
44+
.. _#176: https://github.com/RPi-Distro/python-gpiozero/issues/176
45+
546
Release 1.0.0 (2015-11-16)
647
==========================
748

849
* Debian packaging added (`#44`_)
9-
* :class:`~gpiozero.PWMLED` class added (`#58`_)
50+
* :class:`PWMLED` class added (`#58`_)
1051
* ``TemperatureSensor`` removed pending further work (`#93`_)
11-
* :meth:`~gpiozero.Buzzer.beep` alias method added (`#75`_)
12-
* :class:`~gpiozero.Motor` PWM devices exposed, and :class:`~gpiozero.Robot`
13-
motor devices exposed (`#107`_)
52+
* :meth:`Buzzer.beep` alias method added (`#75`_)
53+
* :class:`Motor` PWM devices exposed, and :class:`Robot` motor devices exposed
54+
(`#107`_)
1455

1556
.. _#44: https://github.com/RPi-Distro/python-gpiozero/issues/44
1657
.. _#58: https://github.com/RPi-Distro/python-gpiozero/issues/58
@@ -24,7 +65,7 @@ Release 0.9.0 (2015-10-25)
2465
Fourth public beta
2566

2667
* Added source and values properties to all relevant classes (`#76`_)
27-
* Fix names of parameters in :class:`~gpiozero.Motor` constructor (`#79`_)
68+
* Fix names of parameters in :class:`Motor` constructor (`#79`_)
2869
* Added wrappers for LED groups on add-on boards (`#81`_)
2970

3071
.. _#76: https://github.com/RPi-Distro/python-gpiozero/issues/76
@@ -36,10 +77,9 @@ Release 0.8.0 (2015-10-16)
3677

3778
Third public beta
3879

39-
* Added generic :class:`~gpiozero.AnalogInputDevice` class along with specific
40-
classes for the :class:`~gpiozero.MCP3008` and :class:`~gpiozero.MCP3004`
41-
(`#41`_)
42-
* Fixed :meth:`~gpiozero.DigitalOutputDevice.blink` (`#57`_)
80+
* Added generic :class:`AnalogInputDevice` class along with specific classes
81+
for the :class:`MCP3008` and :class:`MCP3004` (`#41`_)
82+
* Fixed :meth:`DigitalOutputDevice.blink` (`#57`_)
4383

4484
.. _#41: https://github.com/RPi-Distro/python-gpiozero/issues/41
4585
.. _#57: https://github.com/RPi-Distro/python-gpiozero/issues/57

gpiozero/output_devices.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ def is_active(self):
537537
"""
538538
return self.value != (0, 0, 0)
539539

540+
is_lit = is_active
540541
color = value
541542

542543
def on(self):

gpiozero/pins/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def _set_bounce(self, value):
204204
""")
205205

206206
def _get_edges(self):
207-
return 'both'
207+
return 'none'
208208

209209
def _set_edges(self, value):
210210
raise PinEdgeDetectUnsupported("Edge detection is not supported on pin %r" % self)
@@ -215,7 +215,7 @@ def _set_edges(self, value):
215215
doc="""\
216216
The edge that will trigger execution of the function or bound method
217217
assigned to :attr:`when_changed`. This can be one of the strings
218-
"both" (the default), "rising", or "falling".
218+
"both" (the default), "rising", "falling", or "none".
219219
220220
If the pin does not support edge detection, attempts to set this
221221
property will raise :exc:`PinEdgeDetectUnsupported`.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
pass
2323

2424
__project__ = 'gpiozero'
25-
__version__ = '1.0.0'
25+
__version__ = '1.1.0'
2626
__author__ = 'Ben Nuttall'
2727
__author_email__ = 'ben@raspberrypi.org'
2828
__url__ = 'https://github.com/RPi-Distro/python-gpiozero'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy