i use agx orin device, and jetpack6.2, and ubuntu22.04, and jetson-gpio library.
i want to control board-37-pin from GPIO.HIGH to GPIO.LOW, my code is the following, but it cannot work, so what should i do?
import Jetson.GPIO as GPIO
import time
output_pin = 37
def main():
GPIO.setmode(GPIO.BOARD)
GPIO.setup(output_pin, GPIO.OUT, initial=GPIO.HIGH)
print("Starting demo now! Press CTRL+C to exit")
curr_value = GPIO.HIGH
try:
while True:
time.sleep(3)
print("Outputting {} to pin {}".format(curr_value, output_pin))
GPIO.output(output_pin, curr_value)
curr_value ^= GPIO.HIGH
finally:
GPIO.cleanup()
if __name__ == '__main__':
main()
i just use board pin 13, and it could work, but sometimes the HIGH value is 3.3V, the LOW value is 1.6V. And sometimes the HIGH value is 1.6V, the LOW value is 0V, is it correct?