You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
231 B

  1. #!/bin/bash
  2. #
  3. # 引脚编号:GPIO2-A3
  4. # Linux中对应的编号: 32*2 + (A-A)*8 + 3 = GPIO67
  5. #
  6. # 配置GPIO1_D4
  7. echo 60 > /sys/class/gpio/export
  8. echo out > /sys/class/gpio/gpio60/direction
  9. echo 1 > /sys/class/gpio/gpio60/value