0.96" SPI Colour LCD (160x80) Breakout


I downloaded the driver for the 0.96" SPI Colour LCD (160x80) Breakout and wired up as instructed, using BCM pin numbering.

Get the following error on shapes.py:

Traceback (most recent call last):
  File "/home/pi/Pimoroni/st7735/examples/shapes.py", line 45, in <module>
    disp.clear((255, 0, 0))
AttributeError: 'ST7735' object has no attribute 'clear'

Also, on using image.py on the command line like so:

python image.py cat.jpg

I get no image.

So can’t get this screen to work - although I managed to get it working on an Arduino.

If anyone can help I’d be extremely grateful!!

Using Pi Zero, python3
Linux node1 4.4.50+ #970 Mon Feb 20 19:12:50 GMT 2017 armv6l GNU/Linux

Also tried on Pi 3 with the same results…

Try grabbing the latest shapes.py from here - https://github.com/pimoroni/st7735-python/blob/master/examples/shapes.py

It sounds like you’ve got a mismatch between library version (new) and examples (old) since there’s no clear method on the display. It’s all done within the PIL image.