ST7735 Library

Hi,

No matter what I do, I keep on having issues on getting my display working of my automation hat mini.
I’ve followed the tutorial, I’ve checked forums and installed the enviroplus library as well. But somehow still my script ends in ModuleNotFoundError: No module named ‘ST7735’

I’ve also tried it with ‘st7735’
And in terminal pip show ST7735 / pip show st7735 both end up in Package(s) not found.

All other bits are working and I’ve tested those on my board, I only having issues on getting the display working.

Any advice?
I run the debian bookworm on the Pi Zero 2

Apologies if this has been answered somewhere on the forum, I’ve did my research as good as possible.

Much appreciated!

Did you enable your virtual environment before running the examples?

source ~/.virtualenvs/pimoroni/bin/activate

Sorry, yes I needed to mention that. I am able to run the example from the terminal. If I run for example the input.py the screen works.

However, that is not my intention of use for the board.
I need to able to run a script with Thonny having the ability to draw own content to the display.
Is the display limited to only be used to run one of the examples?

When loading the script to Thonny I of course also can’t control the display content.

Ah yes - using a virtual environment with Thonny might be a little more complicated. This might help? Python Virtual Environments on Raspberry Pi Bookworm

I understand the folks at Thonny are planning on making working with venvs more straightforward in the next version .

But is a virtual environment really a must?
I’m not planning to use the examples, but just want to be able to have control.
I have full control of the hat with Thonny, with exception of the display.

Yes, if you’re using Bookworm you’ll need to have a virtual environment set up to be able to install software using PIP, it’s not possible to install Python libraries system wide any more.

There’s more information at the link I posted above, and in Raspberry Pi’s docs:

https://www.raspberrypi.com/documentation/computers/os.html#python-on-raspberry-pi