摘要: 以树莓派为例子,分析一下其中LED的 platform device 和 platform driver.查看LED设备,被挂载在/sys/devices/platform下。注意其中的driver指向, driver -> ../../../bus/platform... 阅读全文
posted @ 2018-06-24 23:20 feiwatson 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 点亮或熄灭LED硬件上,一个LED灯接在pi的Pin-25. 该引脚为BCM的GPIO26$ gpio readall +-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-... 阅读全文
posted @ 2018-06-24 18:25 feiwatson 阅读(373) 评论(0) 推荐(0) 编辑
摘要: RPi.GPIO是通过Python/C API实现的,C代码操作底层寄存器, python通过Python/C API调用这些C接口。这是关于RPi.GPIO项目的介绍。 其中提到了有python 垃圾回收机制,并不适合于实时要求的应用。https://pypi.or... 阅读全文
posted @ 2018-06-24 12:15 feiwatson 阅读(572) 评论(0) 推荐(0) 编辑
摘要: wiringPi其实和BCM2835 library类似,也是通过memmap, IOmap来实现在用户空间直接操作底层寄存器wiringPihttp://wiringpi.com/WiringPi is a PIN based GPIO access library... 阅读全文
posted @ 2018-06-24 12:04 feiwatson 阅读(224) 评论(0) 推荐(0) 编辑