Skip to content

Commit

Permalink
Merge pull request #178 from waveform80/release-logs
Browse files Browse the repository at this point in the history
Bump version and update changelog for 1.1
  • Loading branch information
waveform80 committed Feb 8, 2016
2 parents 6f99d61 + b4a8273 commit 460df45
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 18 deletions.
12 changes: 6 additions & 6 deletions docs/api_output.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ PWMLED
.. autoclass:: PWMLED(pin, active_high=True, initial_value=0, frequency=100)
:members: on, off, toggle, blink, pin, is_lit, value

Buzzer
RGBLED
======

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

RGBLED
Buzzer
======

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

Motor
=====
Expand Down
58 changes: 49 additions & 9 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,56 @@
Changelog
=========

.. currentmodule:: gpiozero


Release 1.1.0 (2016-02-08)
==========================

* Documentation converted to reST and expanded to include generic classes
and several more recipes (`#80`_, `#82`_, `#101`_, `#119`_, `#135`_, `#168`_)
* New :class:`LEDBarGraph` class (many thanks to Martin O'Hanlon!) (`#126`_,
`#176`_)
* New :class:`Pin` implementation abstracts out the concept of a GPIO pin
paving the way for alternate library support and IO extenders in future
(`#141`_)
* New :meth:`LEDBoard.blink` method which works properly even when background
is set to ``False`` (`#94`_, `#161`_)
* New :meth:`RGBLED.blink` method which implements (rudimentary) color fading
too! (`#135`_, `#174`_)
* New ``initial_value`` attribute on :class:`OutputDevice` ensures consistent
behaviour on construction (`#118`_)
* New ``active_high`` attribute on :class:`PWMOutputDevice` and :class:`RGBLED`
allows use of common anode devices (`#143`_, `#154`_)
* Loads of new ADC chips supported (many thanks to GitHub user pcopa!)
(`#150`_)

.. _#80: https://github.com/RPi-Distro/python-gpiozero/issues/80
.. _#82: https://github.com/RPi-Distro/python-gpiozero/issues/82
.. _#94: https://github.com/RPi-Distro/python-gpiozero/issues/94
.. _#101: https://github.com/RPi-Distro/python-gpiozero/issues/101
.. _#118: https://github.com/RPi-Distro/python-gpiozero/issues/118
.. _#119: https://github.com/RPi-Distro/python-gpiozero/issues/119
.. _#126: https://github.com/RPi-Distro/python-gpiozero/issues/126
.. _#135: https://github.com/RPi-Distro/python-gpiozero/issues/135
.. _#141: https://github.com/RPi-Distro/python-gpiozero/issues/141
.. _#143: https://github.com/RPi-Distro/python-gpiozero/issues/143
.. _#150: https://github.com/RPi-Distro/python-gpiozero/issues/150
.. _#154: https://github.com/RPi-Distro/python-gpiozero/issues/154
.. _#161: https://github.com/RPi-Distro/python-gpiozero/issues/161
.. _#168: https://github.com/RPi-Distro/python-gpiozero/issues/168
.. _#174: https://github.com/RPi-Distro/python-gpiozero/issues/174
.. _#176: https://github.com/RPi-Distro/python-gpiozero/issues/176

Release 1.0.0 (2015-11-16)
==========================

* Debian packaging added (`#44`_)
* :class:`~gpiozero.PWMLED` class added (`#58`_)
* :class:`PWMLED` class added (`#58`_)
* ``TemperatureSensor`` removed pending further work (`#93`_)
* :meth:`~gpiozero.Buzzer.beep` alias method added (`#75`_)
* :class:`~gpiozero.Motor` PWM devices exposed, and :class:`~gpiozero.Robot`
motor devices exposed (`#107`_)
* :meth:`Buzzer.beep` alias method added (`#75`_)
* :class:`Motor` PWM devices exposed, and :class:`Robot` motor devices exposed
(`#107`_)

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

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

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

Third public beta

* Added generic :class:`~gpiozero.AnalogInputDevice` class along with specific
classes for the :class:`~gpiozero.MCP3008` and :class:`~gpiozero.MCP3004`
(`#41`_)
* Fixed :meth:`~gpiozero.DigitalOutputDevice.blink` (`#57`_)
* Added generic :class:`AnalogInputDevice` class along with specific classes
for the :class:`MCP3008` and :class:`MCP3004` (`#41`_)
* Fixed :meth:`DigitalOutputDevice.blink` (`#57`_)

.. _#41: https://github.com/RPi-Distro/python-gpiozero/issues/41
.. _#57: https://github.com/RPi-Distro/python-gpiozero/issues/57
Expand Down
1 change: 1 addition & 0 deletions gpiozero/output_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ def is_active(self):
"""
return self.value != (0, 0, 0)

is_lit = is_active
color = value

def on(self):
Expand Down
4 changes: 2 additions & 2 deletions gpiozero/pins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _set_bounce(self, value):
""")

def _get_edges(self):
return 'both'
return 'none'

def _set_edges(self, value):
raise PinEdgeDetectUnsupported("Edge detection is not supported on pin %r" % self)
Expand All @@ -215,7 +215,7 @@ def _set_edges(self, value):
doc="""\
The edge that will trigger execution of the function or bound method
assigned to :attr:`when_changed`. This can be one of the strings
"both" (the default), "rising", or "falling".
"both" (the default), "rising", "falling", or "none".
If the pin does not support edge detection, attempts to set this
property will raise :exc:`PinEdgeDetectUnsupported`.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
pass

__project__ = 'gpiozero'
__version__ = '1.0.0'
__version__ = '1.1.0'
__author__ = 'Ben Nuttall'
__author_email__ = 'ben@raspberrypi.org'
__url__ = 'https://github.com/RPi-Distro/python-gpiozero'
Expand Down

0 comments on commit 460df45

Please sign in to comment.