I’ve installed the software as described:
sudo pip install git+git://github.com/rm-hull/luma.oled.git#egg=luma.oled
but can’t get the bounce demo to work - I’ve tried the sh1106 in both SPI slots with the same result (–spi-device = 0 and 1)
pi@raspberrypi2:~/luma.examples/examples $ python bounce.py --display sh1106 --height 128 --rotate 2 --interface spi --gpio-data-command 9 --spi-device 0
Version: luma.oled 3.6.0 (luma.core 1.17.1)
Display: sh1106
Interface: spi
Dimensions: 128 x 128
/usr/local/lib/python3.7/dist-packages/luma/core/interface/serial.py:198: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
self._gpio.setup(pin, self._gpio.OUT)
Traceback (most recent call last):
File “bounce.py”, line 80, in
device = get_device()
File “/home/pi/luma.examples/examples/demo_opts.py”, line 63, in get_device
device = cmdline.create_device(args)
File “/usr/local/lib/python3.7/dist-packages/luma/core/cmdline.py”, line 218, in create_device
device = Device(serial_interface=interface(), **vars(args))
File “/usr/local/lib/python3.7/dist-packages/luma/core/cmdline.py”, line 157, in spi
gpio=self.gpio or GPIO)
File “/usr/local/lib/python3.7/dist-packages/luma/core/interface/serial.py”, line 306, in init
self._spi.cshigh = cs_high
SystemError: error return without exception set
The breakout garden seems fine as I have a bme680 plugged in which is working OK. Allthough this doesn’t prove SPI bus is ok.
Also checked that spi is not commented out in /boot/config.txt
Any suggestions are much appreciated
Pete