- Load your picture into Gimp
- Convert it into a indexed bitmap, 2 levels, black & white (
Image | Mode | Indexed...
) - Export as XBM (
.xbm
extension) - Open XBM file and copy/paste its content in source file
- Add U8G_PROGMEM after variable name (
static unsigned char u8g_logo_bits[] U8G_PROGMEM = { [...] }
) - Display the picture:
u8g.drawXBMP( 0, 0, u8g_logo_width, u8g_logo_height, u8g_logo_bits);