Closed thijstriemstra closed 7 years ago
This is RPi.GPIO telling you off for not running on a BCM2835.
You can swap the gpio module out for a noop()
but this wont get you very far, ... so it would be nice to see if there were a more generic GPIO library, but when I last looked this wasn't the case, as it obviously relies on the low level chipset... although we could look at something that uses /sys/bus - that might involve writing a whole new layer, again something I had considered
simply having a generic luma.core error would be fine with me, that way we can catch it reliably (in the example).
Should be fixed in next release.
A
RuntimeError('This module can only be run on a Raspberry Pi!')
is thrown when running the SPI examples on a non-raspberrypi. This should be a betterluma.core.error
.E.g.: