mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Doc tweak
The default value should only be documented for the init-method, not on the property itself
This commit is contained in:
@@ -50,7 +50,7 @@ class InputDevice(GPIODevice):
|
|||||||
def pull_up(self):
|
def pull_up(self):
|
||||||
"""
|
"""
|
||||||
If ``True``, the device uses a pull-up resistor to set the GPIO pin
|
If ``True``, the device uses a pull-up resistor to set the GPIO pin
|
||||||
"high" by default. Defaults to ``False``.
|
"high" by default.
|
||||||
"""
|
"""
|
||||||
return self.pin.pull == 'up'
|
return self.pin.pull == 'up'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user