I am trying to run a simple program with python that outputs a ‘blinking’ signal to the GPIO pins that will turn LEDs on and off to test the implementation of the GPIO pins. I ran the same code on the Jetson Nano developer kit, but when I go to run it on the Jetson Orin Nano developer kit, nothing happens. The following is my code. Where am I going wrong?
import Jetson.GPIO as GPIO
import time
bwoo = 7
lellow = 15
gween = 29
wed = 31
pins = [bwoo, lellow, gween, wed]
GPIO.setmode(GPIO.BOARD)
for pin in pins:
GPIO.setup(pin, GPIO.OUT, initial=GPIO.LOW)
try:
while True:
GPIO.output(bwoo, GPIO.HIGH)
time.sleep(0.1)
GPIO.output(bwoo, GPIO.LOW)
time.sleep(0.1)
GPIO.output(lellow, GPIO.HIGH)
time.sleep(0.1)
GPIO.output(lellow, GPIO.LOW)
time.sleep(0.1)
GPIO.output(gween, GPIO.HIGH)
time.sleep(0.1)
GPIO.output(gween, GPIO.LOW)
time.sleep(0.1)
GPIO.output(wed, GPIO.HIGH)
time.sleep(0.1)
GPIO.output(wed, GPIO.LOW)
time.sleep(0.1)
except KeyboardInterrupt:
GPIO.cleanup()