St7789 1.54 LCD Breakout & ExplorerHatPro

Hi, sorry me again. 👉 👈 😔

I did do a quick search, but couldn’t find anything recent or relevant…

I’ve been trying to use the 1.54 LCD (st7789) breakout, with an explorer hat pro. And a SPI breakout garden extender. Sounds simple enough? Right? Well, no, not really. 😕

I can find 3-5V, GND, CS, SCK, MOSI, without issue on the explorer hat pro. And connect them up with my piratically approved jumper jerky just fine.

I believe that the “DC” as labelled on the LCD BO is the MISO. But then I am left with the mysteries of the “BL” connection.

If I drop the LCD into a SPI slot on one of my breakout gardens, everything works just fine. And there was much rejoicing.

I have one of the SPI OLED’s which works okay on the explorer hat pro. Using “DC” as the MISO. But the 1.54 LCD, doesn’t function, with the same connections. Guessing that this enigmatic “BL” is possibly for colour information?

Looking at this image from the website, there’s a different label for the “BL” which is labelled GPIO.

So my support request is: How can I connect the LCD breakout to by explorer hat pro, so that when I use the command python3 cat.jpg square the little kitty appears on my display?

I’ve looked up various things including the Pi Foundation pages and too no avail. Hence posting here.

Thanks for any guidance, mucho appreciated. Arrr, Yarr, and so on. 👍

BL is the Backlight Pin. Grounding it should turn the backlight off, and if left unconnected the backlight should be on.
To make the example work you either have to wire the display up to match the pins used in the example. Or edit the example to match how you have the display wired.
Typically the examples use SPI 0 and either CE0 or CE1 for the CS (chip select)

GPIO 7, Pin 26, CE1
GPIO 8, Pin 24, CE0
GPIO 9, Pin 21, MISO << DC
GPIO 10, Pin 19, MOSI
GPIO 11, Pin 23, SCLK

GPIO 16, Pin 36, CE2
GPIO 17, Pin 11, CE1
GPIO 18, Pin 12, CE0
GPIO 19, Pin 35, MISO
GPIO 20, Pin 38, MOSI
GPIO 21, Pin 40, SCLK



dtoverlay=spi1-1cs #1 chip select
dtoverlay=spi1-2cs #2 chip select
dtoverlay=spi1-3cs #3 chip select

SCLK - Serial ClocK
CE - Chip Enable (often called Chip Select)
MOSI - Master Out Slave In
MISO - Master In Slave Out
MOMI - Master Out Master In

Thanks alpha. As informative as always :)

I’ve tried your suggestions, which sadly didn’t work. This is most likely on my part, not yours.

To get around this niggling issue, I have deployed the old screwdriver, had a good old fashioned swap about of pi’s and hats. Until I have more free time to get my head into overlays, etc.

Like the new version of your project, btw. I hope you will enjoy it.

The pinout doesn’t list those pins. I guess because they aren’t directly used by the Hat?
I would think they go to SPI0. Then try CE0 for CS, and if that doesn’t work try CE1.
Your using the st7789 driver right?

Aye, using the st7789 driver from the Pimoroni github, here.

To be fair the ExplorerHatPro is a venerable Pimoroni product. The is 7 years old now. Many of the examples are no longer functioning “straight out of the packet” so to speak. Needed much juggling with the code to even get them to run, without errors. I went for that hat for stuff like this. (flashing lights warning) I bought the ExplorerHatPro to use with another Pi. Due to supply issues, and that stupid real life thing we all have to contend with.

I’ve taken the less preferred solution, of redeploying hardware, and getting my wallet out again for another breakout garden, sooner than planned. 🤨

I’m in the process of moving, so tinker time with Pi’s is sparse. I didn’t understand why it wasn’t working. Which you have cleared up. Thanks again. 👍

I have a ton of Breakout garden stuff on the go here, Pi and Pico. st7789 displays in just about every one of them. Being able to swap the breakouts between the two (Pi and Pico) makes life so much easier. I even resorted to making up my own BG SPI Mini Hat with the displays side by side instead of one behind the other. I’m fussy that way, lol.

Glad to help, I enjoy a good challenge, especially when its not my challenge. ;) :P

1 Like