mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Update docs for v0.8.0
This commit is contained in:
@@ -576,5 +576,3 @@ class MCP3004(MCP3008):
|
||||
# channel number must be 0 (effectively restricting it to 4 channels)
|
||||
if not 0 <= channel < 4:
|
||||
raise InputDeviceError('channel must be between 0 and 3')
|
||||
|
||||
|
||||
|
||||
@@ -224,7 +224,8 @@ class PWMOutputDevice(DigitalOutputDevice):
|
||||
value = property(_get_value, _set_value, doc="""\
|
||||
The duty cycle of the PWM device. 0.0 is off, 1.0 is fully on. Values
|
||||
in between may be specified for varying levels of power in the device.
|
||||
""")
|
||||
"""
|
||||
)
|
||||
|
||||
@property
|
||||
def is_active(self):
|
||||
@@ -240,7 +241,8 @@ class PWMOutputDevice(DigitalOutputDevice):
|
||||
frequency = property(_get_frequency, _set_frequency, doc="""\
|
||||
The frequency of the pulses used with the PWM device, in Hz. The
|
||||
default is 100.
|
||||
""")
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
def _led_property(index, doc=None):
|
||||
|
||||
Reference in New Issue
Block a user