Inky pHAT | Error: "Supplied width/height do not match Inky: 0x0"

#1

I recently updated to the new Inky library and now can’t seem to get any script to run or update the Inky pHAT display. All I get is the following error, of which I can’t seem to find any indicators online as to what the problem may be. This happens with all the built-in examples as well as my own code.

I’ve updated everything, uninstalled the old library, rebooted. It happens no matter what the parameters are (i.e. -c Black or -c Red)

From everything I can tell, I have a newer v2 (White / Black / Red).

Any ideas? Am I missing something simple?

pi@raspberrypi:~/Pimoroni/inky/examples/phat $ ./weather-phat.py --colour red
Inky pHAT: Weather

Displays weather information for a given location. The default location is Sheffield-on-Sea.


Traceback (most recent call last):
  File "./weather-phat.py", line 42, in <module>
    inky_display = InkyPHAT(colour)
  File "/usr/local/lib/python2.7/dist-packages/inky/phat.py", line 27, in __init__
    v_flip=False)
  File "/usr/local/lib/python2.7/dist-packages/inky/inky.py", line 84, in __init__
    raise ValueError('Supplied width/height do not match Inky: {}x{}'.format(self.eeprom.width, self.eeprom.height))
ValueError: Supplied width/height do not match Inky: 0x0
0 Likes