javl / image2cpp

GNU General Public License v3.0
529 stars 156 forks source link

Support ESP+u8g2 with optional bitswap #51

Closed plewka closed 1 year ago

plewka commented 2 years ago

Somewhere (near SPI Interface?) there is a MSB/LSB swap when using the converter with ESP32 and the U8g2 library which distorts the output. I checked with 1bit per pixel output but added an optional bitswap checkbox, a function to do optional swap and added it to all output functions. The lvgl online converter causes the same problem for my hardware. Maybe there is is something wrong with the u8g but since endian stuff is a traditional and generic issue it's probably a nice feature inside the converter which at least works fine for me.

dolence commented 1 year ago

I can confirm this. The optional bitswap add u8g2 library compatibility to image2cpp. Would be nice to see this merged, u8g2 is a very useful graphical library for oled and graphical lcd displays.

javl commented 1 year ago

Thank you, @plewka. I finally merged this and added your name to the credits in the readme.