Skip to content

Commit 99325f6

Browse files
author
ladyada
committed
clarify analog pins
1 parent 15b4ffd commit 99325f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

adafruit_touchscreen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def __init__(self, x1_pin, x2_pin, y1_pin, y2_pin, *,
6868
"""Create the Touchscreen object. At a minimum you need the 4 pins
6969
that will connect to the 4 contacts on a screen. X and Y are just our
7070
names, you can rotate and flip the data if you like. All pins must be
71-
capable of becoming DigitalInOut pins. 'y2_pin' and 'x2_pin' must also
72-
be capable of becoming AnalogIn pins.
71+
capable of becoming DigitalInOut pins. 'y2_pin', 'x1_pin' and 'x2_pin'
72+
must also be capable of becoming AnalogIn pins.
7373
If you know the resistance across the x1 and x2 pins when not touched,
7474
pass that in as 'x_resistance'.
7575
By default we oversample 4 times, change by adjusting 'samples' arg.

examples/touchscreen_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import board
22
import adafruit_touchscreen
33

4-
# These pins are used as both analog and digital! XR and YU must be analog
5-
# and digital capable. XL and YD just need to be digital
4+
# These pins are used as both analog and digital! XL, XR and YU must be analog
5+
# and digital capable. YD just need to be digital
66
ts = adafruit_touchscreen.Touchscreen(board.TOUCH_XL, board.TOUCH_XR,
77
board.TOUCH_YD, board.TOUCH_YU,
88
calibration=((5200, 59000), (5800, 57000)),

0 commit comments

Comments
 (0)