pimoroni / inky

Combined library for V2/V3 Inky pHAT and Inky wHAT.
https://shop.pimoroni.com/?q=inky
MIT License
578 stars 121 forks source link

No EEPROM detected on Inky Impressions 4" #201

Open PaulMatthieu opened 2 weeks ago

PaulMatthieu commented 2 weeks ago

I'm using the following product: https://shop.pimoroni.com/products/inky-impression-4?variant=39599238807635

And running inky v1.5.0 on python 3.11.2 on a raspberry pi 4

I get the following error:

>>> from inky import auto
>>> auto()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/turing/display/venv/lib/python3.11/site-packages/inky/auto.py", line 83, in auto
    raise RuntimeError("No EEPROM detected! You must manually initialise your Inky board.")
RuntimeError: No EEPROM detected! You must manually initialise your Inky board.

I'm fairly sure the display is properly connected as it used to run fine before and I haven't touched it since. If there is any way to verify the connection (physically, it appears to be well seated on the GPIO pins) let me know.

Now doing the following works for me:

>>> from inky import Inky7Colour as Inky
>>> d = Inky()

But the size of the screen is then wrong (the Impressions 4" is 640x400, whether Inky7Colour is 600x448). I don't see many other options to initialize manually the display (there's Inky_Impressions_7 but it seems to apply to the 7" model).

Would you please kindly let me know:

Thanks

PaulMatthieu commented 2 weeks ago

I don't find this to be very well documented but it appears the correct way to manually initialize an Inky Impression 4" is:

from inky import Inky7Colour as Inky
d = Inky(resolution=(640, 400))

still would love to know why the EEPROM stopped working