Waveshare, bitmap to c-array conversion?

Hey all,

So I have the 1.54-inch e-ink display (V2) from waveshare alongside a ESP32 microcontroller. You cannot directly display a bitmapped image so you have to convert it to a C-array, which waveshare recommends using their computer program. However, I'm hoping to use this in an embedded scenario.

So, the 200x200 1-bit (monochrome) bitmap is stored in an array. It gets passed into an "update display" function, which then passes the array into a "BmpToC" function. However, I don't quite understand how the conversion works. Initially, I thought it was a conversion into RGB565 but upon closer inspection, I'm not so sure anymore. I don't suppose anyone has done this conversion and/or know's what's required?

Thank you!

do you have a link to the code?

Apologies but could you please elaborate?

The demo code for the e-ink display can be found here: e-Paper/Arduino/epd1in54_V2 at master · waveshare/e-Paper · GitHub
The datasheet is here: https://www.waveshare.com/wiki/1.54inch_e-Paper_Module
The recommended converter is called "Image2LCD.exe", which is supplied on Waveshare's website (unable to link due to forum account restrictions).