@@ -26,8 +26,9 @@ Pin Functions
2626
2727`Edge connector and pinout <https://tech.microbit.org/hardware/edgeconnector/#edge-connector-pins >`_
2828
29- Those pins are available as attributes on the ``microbit ``
30- module:``microbit.pin0 `` - ``microbit.pin20 ``.
29+ This table summarises the pins available, their types and what
30+ they are internally connected to. The pins are available as attributes on the
31+ ``microbit `` module: ``microbit.pin0 `` - ``microbit.pin20 ``.
3132
3233+-----+---------+----------+-----------------+
3334| Pin | Type | Function | Function **V2 ** |
@@ -72,9 +73,6 @@ module:``microbit.pin0`` - ``microbit.pin20``.
7273| 20 | Digital | I2C SDA | I2C SDA |
7374+-----+---------+----------+-----------------+
7475
75- The above table summarizes the pins available, their types (see below) and what
76- they are internally connected to.
77-
7876The latest micro:bit device **V2 ** has two additional pins that you can access
7977in MicroPython, but that are not available via the edge connector:
8078
@@ -206,7 +204,7 @@ its own to that.
206204 The default touch mode for the pins on the edge connector is
207205 `resistive `. The default for the logo pin **V2 ** is `capacitive `.
208206
209- **Resitive touch **
207+ **Resistive touch **
210208 This test is done by measuring how much resistance there is between the
211209 pin and ground. A low resistance gives a reading of ``True ``. To get
212210 a reliable reading using a finger you may need to touch the ground pin
@@ -217,6 +215,15 @@ its own to that.
217215 using a finger as a conductor. `Capacitive touch
218216 <https://www.allaboutcircuits.com/technical-articles/introduction-to-capacitive-touch-sensing> `_
219217 does not require you to make a ground connection as part of a circuit.
218+
219+ .. py :method :: set_touch_mode(value)
220+
221+ .. note ::
222+ The default touch mode for the pins on the edge connector is
223+ `resistive `. The default for the logo pin **V2 ** is `capacitive `.
224+
225+ Set the touch mode for the given pin. Value can be either ``CAPACITIVE ``
226+ or ``RESISTIVE ``. For example, ``pin0.set_touch_mode(pin0.CAPACITIVE) ``.
220227
221228The pull mode for a pin is automatically configured when the pin changes to an
222229input mode. Input modes are when you call ``read_analog `` / ``read_digital `` /
0 commit comments