mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
doc/customdevices: remove custom init string
We only need this if the string is different from the auto-generated default, such as when we want to prevent expansion of an enum to a number.
This commit is contained in:
@@ -5,7 +5,7 @@ class AnalogSensor():
|
||||
"""Generic or custom analog sensor."""
|
||||
|
||||
def __init__(self, port, check_type=True):
|
||||
"""AnalogSensor(port, check_type=True)
|
||||
"""
|
||||
|
||||
Arguments:
|
||||
port (Port): Port to which the sensor is connected.
|
||||
@@ -64,8 +64,8 @@ class AnalogSensor():
|
||||
class I2CDevice():
|
||||
"""Generic or custom I2C device."""
|
||||
|
||||
def __init__(self, port, check_type=True):
|
||||
"""I2CDevice(port, address)
|
||||
def __init__(self, port, address):
|
||||
"""
|
||||
|
||||
Arguments:
|
||||
port (Port): Port to which the device is connected.
|
||||
|
||||
Reference in New Issue
Block a user