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

**URL:** https://forums.pimoroni.com/t/inky-phat-error-supplied-width-height-do-not-match-inky-0x0/10283
**Category:** Support
**Created:** [March 31, 2019, 1:33am UTC](https://forums.pimoroni.com/t/inky-phat-error-supplied-width-height-do-not-match-inky-0x0/10283 "2019-03-31T01:33:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![stealth](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@stealth](https://forums.pimoroni.com/u/stealth)
#### Post date: [March 31, 2019, 1:33am UTC](https://forums.pimoroni.com/t/inky-phat-error-supplied-width-height-do-not-match-inky-0x0/10283/1 "2019-03-31T01:33:51Z")

</div>

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
```

---

<div class="post-metadata">

### Author: ![mcmspark](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/mcmspark/32/10051_2.png) [@mcmspark](https://forums.pimoroni.com/u/mcmspark)
#### Post date: [August 30, 2023, 1:55pm UTC](https://forums.pimoroni.com/t/inky-phat-error-supplied-width-height-do-not-match-inky-0x0/10283/2 "2023-08-30T13:55:26Z")

</div>

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.
