ThingPulse / esp8266-oled-ssd1306

Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
https://thingpulse.com
Other
2.03k stars 641 forks source link

The bitmap drawing is not compatible with the img2cpp websites. The data needs to be fliped every 8bits. #378

Closed sonictl closed 1 year ago

sonictl commented 1 year ago

Describe the bug

I'm using https://javl.github.io/image2cpp/ for converting the images into xbm data. However the data generated cannot be displayed correctly. xbm image is flipped every 8 bit.

ESP8266 0.91 inch 128x32 ssd1306 oled.

This incompatible issue can be rebuilt on web tools: http://dot2pic.com/ https://diyusthad.com/image2cpp https://javl.github.io/image2cpp/

They are the most easy to use web tools for xbm binary data generation that I can find.

khairullaizatt commented 1 year ago

ive been struggling with the result which is display not compatible. does flipped every 8 bit. can someone show me the right method ?

leonardojc commented 1 year ago

you must use GIMP to export the images in 1-bit XBM format. Works perfectly

imagen

eitherway commented 1 year ago

@sonictl You don't need to use Gimp. The website (https://javl.github.io/image2cpp/) works fine, if you adjust the output settings:

Thanks for the issue! Without your information, I wouldn't have figured that out.

marcelstoer commented 1 year ago

@eitherway thanks for the comment. Would you be willing to help support this project by creating a PR which extends the documentation in the README?

eitherway commented 1 year ago

@marcelstoer I opened a pull request