Skip to content

Commit 87ef745

Browse files
committed
Added port setup
1 parent 4096531 commit 87ef745

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

source/examples/python/gpio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import time
55

66
LEDs = ["GP0_0", "GP0_1", "GP0_2", "GP0_3", "GP1_0", "GP1_1"]
7+
for LED in LEDs:
8+
GPIO.setup(LED, GPIO.OUT)
79

810
while True:
911
for LED in LEDs:
File renamed without changes.

0 commit comments

Comments
 (0)