AutomationHat Mini - error trying to run examples

Hi, I’m trying set up a mini on an rPI Model 3B, running latest image of Bullseye. I’ve set up the libraries using the curl command from the online tutorial, but when I tried to run the output example I got an initial error message - unable to import module gpiod. I manually added this package from pypi.org. I then got an error message that package gpiodevice was missing, so added that as well. Then an error message that import ST7735 was deprecated and it should be lowercase st7735, so used nano to edit the import line in the relevant init.py file. Now I get the following error when trying to use any of the mini examples:

Traceback (most recent call last):
File “/home/pi/Pimoroni/automationhat/examples/hat-mini/output.py”, line 49, in
disp = ST7735.ST7735(
File “/usr/local/lib/python3.9/dist-packages/st7735/init.py”, line 175, in init
self._dc = gpiodevice.get_pin(dc, “st7735-dc”, OUTL)
File “/home/pi/.local/lib/python3.9/site-packages/gpiodevice/init.py”, line 138, in get_pin
chip = find_chip_by_pins(pin)
File “/home/pi/.local/lib/python3.9/site-packages/gpiodevice/errors.py”, line 45, in wrapper
errors.append(next(i))
File “/home/pi/.local/lib/python3.9/site-packages/gpiodevice/init.py”, line 108, in find_chip_by_pins
for pin_id in pins:
TypeError: ‘int’ object is not iterable

I’m not sure if its still a problem with the packages/code or perhaps a hardware problem with the display chip?

Any help would be greatly appreciated!

Thanks

Thanks to the DEVs at Pimoroni who have fixed this for me. If anyone else is experiencing this issue, try the following command:

pip install st7735==0.0.5

1 Like