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
I have this same problem.
Is my eeprom corrupt?
can I update it?
None of the examples function.
I do have another inky. it is an older black from before the eeprom. and it works.
pi@raspi-eink:~/Pimoroni/inky/examples/phat $ python3 calendar-phat.py -t phat -c yellow
Inky pHAT: Calendar
Draws a calendar for the current month to your Inky pHAT.
This example uses a sprite sheet of numbers and month names which are
composited over the background in a couple of different ways.
Detected None
Failed to detect an Inky board. Trying --type/–colour arguments instead…
Traceback (most recent call last):
File “/home/pi/Pimoroni/inky/examples/phat/calendar-phat.py”, line 25, in
inky_display = auto(ask_user=True, verbose=True)
File “/usr/local/lib/python3.9/dist-packages/inky/auto.py”, line 70, in auto
return InkyPHAT(args.colour)
File “/usr/local/lib/python3.9/dist-packages/inky/phat.py”, line 67, in init
inky.Inky.init(
File “/usr/local/lib/python3.9/dist-packages/inky/inky.py”, line 94, 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
also:
pi@raspi-eink:~/Pimoroni/inky/examples/phat $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 08 09 0a 0b 0c 0d 0e 0f
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70: 70 71 72 73 74 75 76 77
if I run a test:
from inky.auto import auto
display = auto()
I Get:
Traceback (most recent call last):
File “/home/pi/Pimoroni/inky/examples/test.py”, line 2, in
display = auto()
File “/usr/local/lib/python3.9/dist-packages/inky/auto.py”, line 85, in auto
raise RuntimeError(“Can’t find a driver this display.”)
RuntimeError: Can’t find a driver this display.