You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/user/PycharmProjects/inky_weatherstation/.venv/lib/python3.12/site-packages/inky/mock.py", line 262, in set_image
palette = inky_uc8159.Inky._palette_blend(self, saturation)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/PycharmProjects/inky_weatherstation/.venv/lib/python3.12/site-packages/inky/inky_uc8159.py", line 196, in _palette_blend
rs, gs, bs = [c * saturation for c in self.SATURATED_PALETTE[i]]
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'InkyMockImpression' object has no attribute 'SATURATED_PALETTE'
When I try to mock the 7 color e-ink display it does not work because ot the missing SATURATED_PALETTE.
As a quick workaround I add the following from inky:uc8159.py into the InkyMockImpression class from mock.py:
When I try to mock the 7 color e-ink display it does not work because ot the missing SATURATED_PALETTE.
As a quick workaround I add the following from inky:uc8159.py into the InkyMockImpression class from mock.py:
There must be a better way because inky_uc8159.py already contains the SATURATED_PALETTE two(!) times.
I got inky 1.5.0 installed on my IDE.
The text was updated successfully, but these errors were encountered: