Hi, my apologies for sending this during the holidays. I have a TOLED Display(LCD-15173)* which I am trying to operate over SPI with a Raspberry Pi Zero W. I previously had configured this with an Arduino nano. I cannot get it to work with the given python code (which I changed to SPI)** though. I have this code on my Raspi and it is wired up in the diagram below, yet there is nothing showing on the screen. I do not believe this to be a mechanical connector issue or such, but possibly something with this Python code or the overall setup. Do I need to define any pins in this code or anything like that? Are there any other ways to get the Pi to work with this? This Pi is actually running a Google Voice AIY with a bonnet, but I don’t think that’s an issue since it communicates via I2C***. Thanks!
*https://www.sparkfun.com/products/15173
**https://www.crystalfontz.com/blog/trans … pberry-pi/
***https://aiyprojects.withgoogle.com/voice/
CS->SPI CE0 (pin 24, GPIO 8)
D/C-> GPIO (pin 22, GPIO 25)
SCLK-> SPI SCLK (pin 23, GPIO 11)
MOSI-> SPI MOSI (pin 19, GPIO 10)
3v3->3v3
GND->GND
Hello,
Please make sure that you’ve enabled the SPI interface in your Raspberry pi. https://www.raspberrypi-spy.co.uk/2014/ … pberry-pi/
Most of the time, people forget to do this. If you have already followed this instruction, the problem is somewhere else.
Do you have the Crystalfonts version? You might need to check with them for help.
https://www.crystalfontz.com/support/
rpiloverbd:
Hello,
Please make sure that you’ve enabled the SPI interface in your Raspberry pi. https://www.raspberrypi-spy.co.uk/2014/ … pberry-pi/
Most of the time, people forget to do this. If you have already followed this instruction, the problem is somewhere else.
Hi, thanks for the reply, yes I do have the SPI interface enabled. Curiously although when I run “ls -l /dev/spi*”, only one SPI port is shown: “crw-rw---- 1 root spi 153, 0 Dec 26 08:32 /dev/spidev0.0” . Could this be the issue?
YellowDog:
Do you have the Crystalfonts version? You might need to check with them for help.
https://www.crystalfontz.com/support/
Thanks for the reply. I have the Sparkfun version which I ordered from sparkfun directly. I am using the python code from the Crystalfonts page though.
Update: I changed a couple things, no luck still though.
RST connected to Raspi pin 22
D/C pin connected to Raspi pin 18
Thanks for the help, I just figured it out although. One needs to use the gpio_cs_spi interface and specify the chip select pin (using my pinouts above). Thanks!
cd luma.examples/examples
python3 demo.py --interface gpio_cs_spi --display ssd1309 --gpio-chip-select 8
Glad you figured it out, and thank you for posting the solution!