Hello, can I simply use the jetson nano uart pin (8,10) as an input? I wrote the code as below, but an error occurs.
import Jetson.GPIO as gpio
import time
from Jetson.GPIO.gpio import HIGH
SW1 = 14 #BCM 14, Board Pin 8
SW2 = 15 #BCM 15, Board Pin 10
SW3 = 16 #BCM 16, BOARD Pin 36
gpio.setmode(gpio.BCM)
gpio.setup(SW2, gpio.IN)
while True :
if gpio.input(SW2) == HIGH :
print("pressed")
else :
print("unpressed")
time.sleep(0.5)
ValueError : Channel 15 is invalid
The above error occurs.
Thank you.