doc/ev3devices, pupdevices: drop catalog id

This will be replaced with a render of the device, included by the RST file, not the docstring.
This commit is contained in:
Laurens Valk
2020-01-28 18:00:55 +01:00
parent e73945d9c5
commit 9a3d4f88b6
2 changed files with 8 additions and 42 deletions
+5 -39
View File
@@ -5,15 +5,7 @@ from .builtins import Motor
class TouchSensor():
"""LEGO® MINDSTORMS® EV3 Touch Sensor.
Element 95648/6138404, contained in:
* 31313: LEGO® MINDSTORMS® EV3 (2013)
* 45544: LEGO® MINDSTORMS® Education EV3 Core Set (2013)
* 45507: Separate part (2013)
"""
"""LEGO® MINDSTORMS® EV3 Touch Sensor."""
def __init__(self, port):
"""TouchSensor(port)
@@ -35,14 +27,7 @@ class TouchSensor():
class ColorSensor():
"""LEGO® MINDSTORMS® EV3 Color Sensor.
Element 95650/6128869, contained in:
* 31313: LEGO® MINDSTORMS® EV3 (2013)
* 45544: LEGO® MINDSTORMS® Education EV3 Core Set (2013)
* 45506: Separate part (2013)
"""
"""LEGO® MINDSTORMS® EV3 Color Sensor."""
def __init__(self, port):
"""ColorSensor(port)
@@ -97,13 +82,7 @@ class ColorSensor():
class InfraredSensor():
"""LEGO® MINDSTORMS® EV3 Infrared Sensor and Beacon.
Element 95654/6132629 and 72156/6127283, contained in:
* 31313: LEGO® MINDSTORMS® EV3 (2013)
* 45509 and 45508: Separate parts (2013)
"""
"""LEGO® MINDSTORMS® EV3 Infrared Sensor and Beacon."""
def __init__(self, port):
"""InfraredSensor(port)
@@ -170,13 +149,7 @@ class InfraredSensor():
class GyroSensor():
"""LEGO® MINDSTORMS® EV3 Gyro Sensor.
Element 99380/6138411, contained in:
* 45544: LEGO® MINDSTORMS® Education EV3 Core Set (2013)
* 45505: Separate part (2013)
"""
"""LEGO® MINDSTORMS® EV3 Gyro Sensor."""
def __init__(self, port, positive_direction=Direction.CLOCKWISE):
"""
@@ -233,14 +206,7 @@ class GyroSensor():
class UltrasonicSensor():
"""LEGO® MINDSTORMS® EV3 Ultrasonic Sensor.
Element 95652/6138403, contained in:
* 45544: LEGO® MINDSTORMS® Education EV3 Core Set (2013)
* 45504: Separate part (2013)
"""
"""LEGO® MINDSTORMS® EV3 Ultrasonic Sensor."""
def __init__(self, port):
"""UltrasonicSensor(port)
+3 -3
View File
@@ -5,7 +5,7 @@ from .builtins import Motor
class RemoteControl():
"""LEGO® Powered Up Bluetooth Remote Control/Handset (6214560)"""
"""LEGO® Powered Up Bluetooth Remote Control/Handset."""
light = ColorLight()
buttons = KeyPad()
@@ -25,7 +25,7 @@ class RemoteControl():
class TiltSensor(Accelerometer):
"""LEGO® Powered Up Tilt Sensor (45305/?)"""
"""LEGO® Powered Up Tilt Sensor."""
def __init__(self, port):
"""TiltSensor(port)
@@ -37,7 +37,7 @@ class TiltSensor(Accelerometer):
class ColorDistanceSensor():
"""LEGO® Powered Up Color and Distance Sensor (?/6182145)"""
"""LEGO® Powered Up Color and Distance Sensor."""
light = ColorLight()