Skip to content

Commit 8fddc89

Browse files
committed
updating pins
changing pin assignments- have other plans for the STEMMA connector now
1 parent 0083daf commit 8fddc89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Traffic_Light_Wearable/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from digitalio import DigitalInOut, Direction, Pull
88
# setup pins for the traffic light LEDs
99
red_light = DigitalInOut(board.A1)
10-
yellow_light = DigitalInOut(board.SCL1)
11-
green_light = DigitalInOut(board.A2)
10+
yellow_light = DigitalInOut(board.A2)
11+
green_light = DigitalInOut(board.A3)
1212
# array of LEDs
1313
lights = [red_light, yellow_light, green_light]
1414
# the traffic light is common anode
@@ -20,7 +20,7 @@
2020
light.direction = Direction.INPUT
2121
light.pull = Pull.UP
2222
# button pin setup
23-
pin_alarm = alarm.pin.PinAlarm(pin=board.SDA1, value=False, pull=True)
23+
pin_alarm = alarm.pin.PinAlarm(pin=board.A0, value=False, pull=True)
2424
# count to track which light is on
2525
count = 2
2626
# tracks the last light

0 commit comments

Comments
 (0)