mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Bump version and update changelog for 1.1
Includes some last minute changes too
This commit is contained in:
@@ -537,6 +537,7 @@ class RGBLED(SourceMixin, CompositeDevice):
|
||||
"""
|
||||
return self.value != (0, 0, 0)
|
||||
|
||||
is_lit = is_active
|
||||
color = value
|
||||
|
||||
def on(self):
|
||||
|
||||
@@ -204,7 +204,7 @@ class Pin(object):
|
||||
""")
|
||||
|
||||
def _get_edges(self):
|
||||
return 'both'
|
||||
return 'none'
|
||||
|
||||
def _set_edges(self, value):
|
||||
raise PinEdgeDetectUnsupported("Edge detection is not supported on pin %r" % self)
|
||||
@@ -215,7 +215,7 @@ class Pin(object):
|
||||
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`.
|
||||
|
||||
Reference in New Issue
Block a user