mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +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):
|
||||
"""
|
||||
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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user