pimoroni / inky

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

`InkyMockImpression` class doesn't easily support multiple resolutions #168

Open corranwebster opened 1 year ago

corranwebster commented 1 year ago

When testing, the InkyMockImpression class currently only supports 600 x 448 (which I think is 5.7 inch). You can override the class attributes WIDTH and HEIGHT to change this, but this is less than ideal.

Ideally the resolution could be passed in to the constructor as it is in the actual class being mocked, so you could do something like:

display = InkyMockImpression((800, 480))

to mock the 7.3 inch Inky Impression.