Closed jmbillings closed 6 years ago
Incidentally, this: https://github.com/bulletmark/pifaceio does work- I can perform a 'write' and hear the relay click and an LED illuminates, so I guess the board is physically okay.
For me the hint from joppep at https://www.raspberrypi.org/forums/viewtopic.php?t=170606 solved the issue, copying here for reference:
Within spi.py
(at my system it was at /usr/local/lib/python3.5/dist-packages/pifacecommon/spi.py
) add a line speed_hz=ctypes.c_uint32(100000)
to the transfer struct so that it looks as following
# 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)
)
@matthub Thanks! I'm using the pifacerelayplus board and it wasn't being detected. Using your fix it works!
Is this fixed?
Board appears working now, so yep, happy to close this.
I got the same issue on a Pi 1 model B+, and the suggested fix does not work.
I guess it probably has a different max speed? I tried (pure guess) already the following values, without success: 100000, 1000000, 150000, 15000 How do I know the actual value to use?
Thanks
I got a LED blinking on a Pi1 B using next commands: git clone git@github.com:piface/pifacedigitalio.git git clone https://github.com/piface/pifacecommon.git cd pifacecommon/ sudo python setup.py install cd ../pifacedigitalio/examples/ sudo python blink.py
I hope this helps
Any chance this issue is fixed thanks to #23 ?
Noob at this, but it looks like I'm missing a trick to get the board working. I've got a Piface 2 and a Pi 3 B.
Started following the instructions, SPI enabled, rebooted, updates done. The Pi is set up fresh with the latest (scratch?) install.
The install commands didn't work (not found). I found alternative install instructions using PIP which did work:
So now I load up Python (or Python3, same problem) and try:
Any ideas? I've seen some people suggest reverting back to an older "jessie" build, but other topics suggest people made it work. I also saw reference to commenting out a line in a "blacklist" file, however mine is empty.