昨晚还在用raspberry-gpio-python 0.5.9版本发现不支持最新的Raspberry Pi 2
提示:
RuntimeError: This module can only be run on a Raspberry Pi!
今天中午刚准备用午休时间自己修改一下做下支持,结果发现两个小时前,作者刚更新好
0.5.10
------- Issue 95 - support RPi 2 boards
- Introduce RPI_INFO
- Deprecate RPI_REVISION
- Issue 97 - fixed docstring for setup()
下载地址
http://sourceforge.net/projects/raspberry-gpio-python/files/
作者更新了raspberry-gpio-python库至0.5.10版本,新增支持Raspberry Pi 2板,并引入了RPI_INFO特性,废弃了RPI_REVISION。此次更新修复了在Raspberry Pi 2上运行时出现的错误。
807

被折叠的 条评论
为什么被折叠?



