From d36b5b0ed82a50de37dbc81500dcf3398f006006 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Fri, 20 Mar 2020 10:26:26 +0100 Subject: [PATCH] doc/nxtdevices: remove note about old touch sensor Special treatment is no longer necessary; if no such touch sensor is detected, the port switches to analog mode. This means that it will work for both touch sensor types, as well as custom switches. --- doc/api/nxtdevices.rst | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/doc/api/nxtdevices.rst b/doc/api/nxtdevices.rst index a7de681..9942db2 100644 --- a/doc/api/nxtdevices.rst +++ b/doc/api/nxtdevices.rst @@ -16,21 +16,6 @@ NXT Touch Sensor .. automethod:: pybricks.nxtdevices.TouchSensor.pressed - .. toggle-header:: - :header: **Using older NXT Touch Sensors** - - **Example: Using a first-generation NXT Touch Sensor.** - - Normally, the EV3 brick always verifies that a sensor is attached - before you can use it. This means that your program stops if a sensor - that you selected was not found. The very first generation of NXT Touch - Sensors did not support this functionality. - To use these sensors, set ``verify_type=False`` as follows:: - - from pybricks.nxtdevices import TouchSensor - from pybricks.parameters import Port - my_sensor = TouchSensor(Port.S1, verify_type=False) - NXT Light Sensor ^^^^^^^^^^^^^^^^ .. autoclass:: pybricks.nxtdevices.LightSensor