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

trying to use Pimoroni 7 color 5.4in with RPi0+ and having issues #119

Closed sniffski closed 2 years ago

sniffski commented 3 years ago

:~/inky/examples/7color# ./clear.py Traceback (most recent call last): File "./clear.py", line 7, in inky = Inky() File "/usr/local/lib/python3.7/dist-packages/inky-1.2.0-py3.7.egg/inky/inky_uc8159.py", line 137, in init self.eeprom = eeprom.read_eeprom(i2c_bus=i2c_bus) TypeError: read_eeprom() got an unexpected keyword argument 'i2c_bus'

:~/inky/examples/7color# ./colour-palette.py Traceback (most recent call last): File "./colour-palette.py", line 17, in inky = Inky() File "/usr/local/lib/python3.7/dist-packages/inky-1.2.0-py3.7.egg/inky/inky_uc8159.py", line 137, in init self.eeprom = eeprom.read_eeprom(i2c_bus=i2c_bus) TypeError: read_eeprom() got an unexpected keyword argument 'i2c_bus'

None of the examples work for me... :( any ideas?

Gadgetoid commented 3 years ago

Something has gone drastically wrong with your library install, since read_eeprom does accept an i2c_bus keyword argument- https://github.com/pimoroni/inky/blob/c5743f9fcfe9c2d6863ceb770895f2cbaa6fc1cd/library/inky/eeprom.py#L121-L133

I've just released a couple of new versions, so maybe a python3 -m pip install inky --upgrade will fix this.

sniffski commented 3 years ago

Something has gone drastically wrong with your library install, since read_eeprom does accept an i2c_bus keyword argument- https://github.com/pimoroni/inky/blob/c5743f9fcfe9c2d6863ceb770895f2cbaa6fc1cd/library/inky/eeprom.py#L121-L133

I've just released a couple of new versions, so maybe a python3 -m pip install inky --upgrade will fix this.

Looks like you are right! Thanks allot!