Skip to content

Commit 927bda5

Browse files
committed
Linting.
1 parent 3d72895 commit 927bda5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • CircuitPython_Templates/cap_touch_pin_script

CircuitPython_Templates/cap_touch_pin_script/code.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ def get_pin_names():
5252
if isinstance(pin, Pin)
5353
]
5454
pin_names = []
55-
for p in pins:
56-
if p not in pin_names:
57-
pin_names.append(p)
55+
for pin_object in pins:
56+
if pin_object not in pin_names:
57+
pin_names.append(pin_object)
5858
return pin_names
5959

6060

6161
for possible_touch_pin in get_pin_names(): # Get the pin name.
6262
try:
63-
p = touchio.TouchIn(
63+
touch_pin_object = touchio.TouchIn(
6464
possible_touch_pin
6565
) # Attempt to create the touch object on each pin.
6666
# Print the touch-capable pins that do not need, or already have, an external pulldown.

0 commit comments

Comments
 (0)