Cant display image in esp with oled ssd1306

i cant display image in oled display ssd1306. i use image2cpp (javl.github.io) to convert in byte
but i cant still display image
here the code

#include <U8g2lib.h>
#include <Wire.h>
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);

const unsigned char epd_bitmap_wifi [] PROGMEM = {
	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x0f, 0xc7, 0xe3, 0x9f, 0xf9, 0xf0, 0x0f, 0xe3, 0xc7, 
	0xfe, 0x7f, 0xf8, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
};

void setup() {
  u8g2.begin();
}

void loop() {
u8g2.clearBuffer();
u8g2.setFontMode(1);
u8g2.setBitmapMode(1);
u8g2.drawXBM(46, 0, 16, 16, epd_bitmap_wifi);
u8g2.sendBuffer();
}


*error on wokwi simulator dislay
can anyone help me

why did you post a screen grab of the wokwi... just save your project and share the link...

oh okay here's the link iot smartwatch - Wokwi ESP32, STM32, Arduino Simulator

can you share the bitmap you wanted to display? (the one you used with image2cpp)

wifi
here;s the image. i can't display this one

The image did not make it to the forum

ah actually it's there. it's just hidden by the dark theme

why i cant display the image? using imagecpp? i've error in the code?

well one issue is that your should use drawXBMP() as the bitmap is in progmem

image

but that will draw the bitmap in a weird way

➜ you need to modify the settings (black background, invert image colors and swap the bits in byte at the end)

then your bitmap is

const unsigned char epd_bitmap_wifi [] PROGMEM = {
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x0f, 0x1c, 0x38, 0x06, 0x60, 0xf0, 0x0f, 0x38, 0x1c, 
	0x80, 0x01, 0xe0, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

and you'll see
image

➜ the code

#include <U8g2lib.h>
#include <Wire.h>
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);

const unsigned char epd_bitmap_wifi [] PROGMEM = {
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x0f, 0x1c, 0x38, 0x06, 0x60, 0xf0, 0x0f, 0x38, 0x1c,
  0x80, 0x01, 0xe0, 0x07, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

void setup() {
  u8g2.begin();
  u8g2.clearBuffer();
  u8g2.setFontMode(1);
  u8g2.setBitmapMode(1);
  u8g2.drawXBMP(46, 0, 16, 16, epd_bitmap_wifi); // drawXBMP because the bitmap is in PROGMEM
  u8g2.sendBuffer();
}

void loop() {}

oo i see, thanks to your help bro🤗

have fun