We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d72895 commit 927bda5Copy full SHA for 927bda5
1 file changed
CircuitPython_Templates/cap_touch_pin_script/code.py
@@ -52,15 +52,15 @@ def get_pin_names():
52
if isinstance(pin, Pin)
53
]
54
pin_names = []
55
- for p in pins:
56
- if p not in pin_names:
57
- pin_names.append(p)
+ for pin_object in pins:
+ if pin_object not in pin_names:
+ pin_names.append(pin_object)
58
return pin_names
59
60
61
for possible_touch_pin in get_pin_names(): # Get the pin name.
62
try:
63
- p = touchio.TouchIn(
+ touch_pin_object = touchio.TouchIn(
64
possible_touch_pin
65
) # Attempt to create the touch object on each pin.
66
# Print the touch-capable pins that do not need, or already have, an external pulldown.
0 commit comments