用户空间的GPIO操作
用户空间的GPIO的操作
1 | cd sys/class/gpio/ |
输入输出
support “in” and “out”
1 | echo "in" > direction |
GPIO中断
support “both” or “none”, “rising”, “falling” edge trigger”
上升沿中断
1 | echo "rising" > edge |
下降沿中断
1 | echo "falling" > edge |
用户空间的GPIO的操作
1 | # cd sys/class/gpio/ |
support “in” and “out”
1 | echo "in" > direction |
support “both” or “none”, “rising”, “falling” edge trigger”
上升沿中断
1 | echo "rising" > edge |
下降沿中断
1 | echo "falling" > edge |