If I use piface2 module in my config I get an error on startup of pi-mqtt-gpio
2020-07-09 09:24:14,803 mqtt_gpio (INFO): Startup
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/pi_mqtt_gpio/server.py", line 887, in <module>
main(args)
File "/usr/local/lib/python2.7/dist-packages/pi_mqtt_gpio/server.py", line 788, in main
initialise_digital_output(out_conf, GPIO_MODULES[out_conf["module"]])
KeyError: 'piface2'
I’m using an old piface digital on an Rpi 3b. If I use module raspberrypi, the program load and I can send and receive mqtt message from another pi but I need piface.
I’m just going to directly quote this from the Raspberry Pi forums:
The later kernels for RPI3 uses an incompatible frequence for the SPI serial channel (basically it is higher than what PiFace Digital 2 can handle - lowering this makes the display work again, see more on this at https://github.com/raspberrypi/linux/issues/2165 )