#define IMG_WIDTH 16
#define IMG_HEIGHT 7
const unsigned char IMAGE[] PROGMEM = { // https://en.wikipedia.org/wiki/X_BitMap
0x13, 0x00, 0x15, 0x00, 0x93, 0xcd, 0x55, 0xa5, 0x93, 0xc5, 0x00, 0x80, 0x00, 0x60
};
#include <U8g2lib.h> // https://github.com/olikraus/u8g2/wiki
// https://github.com/olikraus/u8g2/wiki/u8g2setupcpp
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, U8X8_PIN_NONE); // full buffer, rotation 0, reset = none
void setup() {
u8g2.begin();
u8g2.clear();
}
void loop() {
u8g2.drawXBMP(random(128 - (5 * 5)), random(64 - 8), IMG_WIDTH, IMG_HEIGHT, IMAGE);
u8g2.sendBuffer();
delay(250);
u8g2.clearBuffer();
}