I am using the new breakout garden with spi, with the examples in the python st7735 library and the 0.96" Colour LCD. What are the pinouts of the 2 SPI slots. I can’t seem to display anything. It’s just blank.
What do I need to put in the configuration to initialize the display?
If you’ve installed it as per https://github.com/pimoroni/st7735-python and ensured you’ve turned on SPI in raspi-config you should be pretty much set. The examples listed specify in the code where they’re expecting the breakout; for shapes.py in the code is:
shapes.py - Display test shapes on the LCD using PIL.
If you're using Breakout Garden, plug the 0.96" LCD (SPI)
breakout into the rear slot.
""")
I seem to have the same problem. Can you try this : run one of the python examples (the scrolling-text or the gif) and without stopping it, reboot the raspberry. Will a display briefly appear? Thank you.
Hmm, perhaps the library isn’t setting the LCD backlight on correctly, I’ll check with Phil to see what’s up. On the Breakout Garden SPI, the backlight control pin is BCM19 for the front slot and BCM18 for the back slot. You can try turning the backlight on it manually too, with these terminal commands:
gpio -g mode 19 out
gpio -g write 19 1
I’ve pushed a fix to the examples for this. You’ll need to either grab the latest examples from GitHub, or change the backlight=18 to backlight=19 to use the right pin for the front slot.
I have a similar issue. The SPI LCD breakout is in the rear slot but isn’t detected when running the install.sh (four I2C breakouts are detected OK). I’ve also tried the suggestion about GPIO 18 to test the backlight but no luck.
Oddly, it works in the front slot but not the rear (regardless of whether backlight is set to 18 or 19). The install.sh doesn’t detect it in either slot.