Piface funktioniert auf raspian stretch lite.
Aus meinen Aufzeichnungen (leider nur auf Englisch, weil das auf demn meisten Foren gängig ist)
In the pifacecommon module the transfer spped must be added
Make sure pifacecommon (and pifacedigitalio) are installed using pip
- apt-get install python pip
- check if python-pifacecommon is installed and uninstall if it is
- pip uninstall pifacecommon
- pip install pifacecommon
- same steps for pifacedigitalio
- pip show pifacecommon common shows the install path, go there
- open spi.py and add the speed_hz psrsmeter in
# 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(15000)
)
- save the file and restart doorpi - Piface should now work