树莓派 Raspberry Pi DIDO Board 的相关资料

Spoony 64.55m2020-09-23954 次点击
翻出来一块扩展板,好久以前一个树莓派爱好者送的。找了找资料,简单安装一下就跑起来了。

![7b653de9b23cb77f06fae58e95dbd70b.jpg](https://ppmm.org/images/2020/09/23/7b653de9b23cb77f06fae58e95dbd70b.jpg)

https://raspberrypiwiki.com/index.php/Raspberry_Pi_DIDO_Board

![2c9be177cf9d32a53f971a7b5ee78f26.png](https://ppmm.org/images/2020/09/23/2c9be177cf9d32a53f971a7b5ee78f26.png)

树莓派 Python 库设置 SPI 频率的方法(不修改一下不能识别到 SPI 设备)
https://raspberrypi.stackexchange.com/questions/67028/piface-digital-2-and-raspberry-pi-3?rq=1

Edit file /usr/local/lib/python3.5/dist-packages/pifacecommon/spi.py

加上 `speed_hz=ctypes.c_uint32(100000) `这行。

```
create the spi transfer struct
transfer = spi_ioc_transfer(
tx_buf=ctypes.addressof(wbuffer),
rx_buf=ctypes.addressof(rbuffer),
len=ctypes.sizeof(wbuffer),
speed_hz=ctypes.c_uint32(100000)
)
```
收藏 ♥ 感谢
暂无回复

登录注册 后可回复。




› 相关内容关注微信公众号