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

Fix set_image reshape for #93 #120

Closed Gadgetoid closed 3 years ago

Gadgetoid commented 3 years ago

As reported in https://github.com/pimoroni/inky/issues/93 - using set_image was resulting in a buffer that didn't match the shape of the display. This would work fine when shaped into a 1d array for writing over SPI, but would break all future attempts to set_pixel since it turned the buffer from 600x448 into 448x600.