Skip to content

Commit d94fb1e

Browse files
authored
Merge pull request #1924 from kattni/touch-pin-fix
Update touch pin.
2 parents 9fb598b + af817b0 commit d94fb1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PyLeap_Bluefruit_Tone_Piano/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
elif cp.touch_A5:
3030
cp.pixels.fill((0, 255, 255))
3131
cp.start_tone(392)
32-
elif cp.touch_A6 and not cp.touch_A7:
32+
elif cp.touch_A6 and not cp.touch_TX:
3333
cp.pixels.fill((0, 0, 255))
3434
cp.start_tone(440)
35-
elif cp.touch_A7 and not cp.touch_A6:
35+
elif cp.touch_TX and not cp.touch_A6:
3636
cp.pixels.fill((100, 0, 255))
3737
cp.start_tone(494)
38-
elif cp.touch_A6 and cp.touch_A7:
38+
elif cp.touch_A6 and cp.touch_TX:
3939
cp.pixels.fill((255, 0, 255))
4040
cp.start_tone(523)
4141
else:

0 commit comments

Comments
 (0)