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

Add `resolution` parameter to `InkyMockImpression.__init__` #169

Closed corranwebster closed 9 months ago

corranwebster commented 1 year ago

This permits simpler setting of the size of the Inky Impression being mocked.

For example, this allows:

display = InkyMockImpression((800, 480))

which will ensure that the buffer size gets set up correctly.

Fixes #168.

Gadgetoid commented 1 year ago

Oof, may need a rebase now I've merged #167

Gadgetoid commented 9 months ago

I have added this as a commit onto my WIP repackaged branch here: https://github.com/pimoroni/inky/pull/181/commits/fe70476f43d0867ee3c53190d3d2ed39c4ac12b7