SolderedElectronics / Inkplate-Arduino-library

Inkplate family Arduino library. The easiest way to add e-paper to your project.
https://inkplate.readthedocs.io/en/latest/arduino.html
GNU Lesser General Public License v3.0
250 stars 78 forks source link

Add drawPngFromBuffer #210

Open chrisjtwomey opened 1 year ago

chrisjtwomey commented 1 year ago

Noticed the library has methods to draw bmp and jpg from buffer but not png, so I added it.

Tried it on my Inkplate10 (v1) and behaves identically to drawPngFromWeb

Personally I need a function like this as I download png data using a custom function (need to also read HTTP headers) and needed a way to write to the display without drawing again from a URL or SD card.