root@cubieboard:/sys/class/gpio# echo 4 > /sys/class/gpio/export root@cubieboard:/sys/class/gpio# ls export gpio4_pi7 gpiochip1 unexport root@cubieboard:/sys/class/gpio#
directioneboard:/sys/class/gpio/gpio4_pi7# echo out > /sys/class/gpio/gpio4_pi7/d root@cubieboard:/sys/class/gpio/gpio4_pi7# cat direction out root@cubieboard:/sys/class/gpio/gpio4_pi7#
root@cubieboard:/sys/class/gpio/gpio4_pi7# cat value 1 root@cubieboard:/sys/class/gpio/gpio4_pi7#
root@cubieboard:/sys/class/gpio/gpio4_pi7# cat value 0 root@cubieboard:/sys/class/gpio/gpio4_pi7#
使用道具 举报
ahha007 发表于 2014-4-8 19:16 不错哦。。有没有在GPIO上加一个限流电阻啊??
本版积分规则 发表回复 回帖后跳转到最后一页
|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区
GMT+8, 2024-11-23 01:48 , Processed in 0.022874 second(s), 18 queries .
Powered by Discuz! X3.4
© 2001-2012 Comsenz Inc. | Style by Coxxs