- 积分
- 194
贡献706
飞刀183 FD
注册时间2020-1-16
在线时间31 小时
扫一扫,手机访问本帖
|
#!/bin/bash
# gpio list gpio (bank-1)*32 + nr
for test in 118 119 120 137 136 12
do
echo Exporting pin $test.
echo $test> /sys/class/gpio/export
echo Setting pin $1.
echo out > /sys/class/gpio/gpio$test/direction
echo $1 > /sys/class/gpio/gpio$test/value
echo $test> /sys/class/gpio/unexport
done
echo complete
里面这两句
echo Exporting pin $test.
echo Setting pin $1. 是什么意思
|
|