#include #include OLED myOLED(A4, A5, A4); extern uint8_t SmallFont[]; int x; const uint8_t icon1[] PROGMEM={ //-- width: 128, height: 18 0x0,0xfc,0xfe,0x1, 0x7,0xff,0x7,0x1, 0x7d,0xc3,0xc3,0x7f, 0x1,0x7,0xf9,0xd, 0x1,0x7d,0xc3,0xc3, 0x7d,0x1,0x7,0xff, 0x7,0xe1,0x7d,0x7d, 0xe1,0x83,0xfe,0x60, 0x30,0x18,0xc,0xc6, 0xc3,0x81,0xe3,0xfe, 0x60,0x20,0x30,0x90, 0x10,0x30,0x30,0xe0, 0x30,0x30,0x20,0x20, 0x10,0x10,0xe0,0x60, 0x20,0x30,0x90,0x10, 0x30,0x18,0x8c,0xe4, 0xf8,0xf0,0x30,0x18, 0xc,0xc6,0xe6,0xf2, 0xf3,0x83,0xc3,0xf6, 0x3c,0x30,0x20,0x20, 0x20,0x30,0x10,0x30, 0x30,0xe0,0xe0,0x70, 0x30,0x30,0xf0,0x38, 0x3c,0xe2,0x73,0x3c, 0x30,0x90,0x10,0x30, 0xe0,0x60,0x20,0x30, 0x90,0x10,0x30,0xe0, 0x70,0x30,0x10,0x20, 0x20,0x20,0x20,0x30, 0xf0,0x70,0x30,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x1,0x3,0x3, 0x3,0x3,0x3,0x3, 0x3,0x3,0x3,0x3, 0x3,0x3,0x3,0x3, 0x3,0x3,0x3,0x3, 0x3,0x3,0x3,0x3, 0x3,0x3,0x73,0xff, 0xef,0xc3,0xc1,0xc0, 0xc8,0xce,0xcf,0xc7, 0xe7,0xef,0xc3,0x80, 0xc8,0xce,0xc7,0xc1, 0xf0,0xcc,0xc3,0xe0, 0xf8,0xfc,0xce,0xc1, 0xf0,0xc0,0xc1,0xc0, 0xce,0xc7,0xc3,0xe0, 0xf8,0xfe,0xff,0xff, 0xf7,0xc0,0x80,0x88, 0x9f,0xcf,0xcf,0xe7, 0xf3,0xcb,0xc3,0xe0, 0xf8,0xfc,0xfe,0xff, 0xcf,0x81,0x80,0xcc, 0xc7,0xc3,0xe1,0xf8, 0x84,0xc1,0xf0,0xc8, 0x87,0x9e,0x9c,0x88, 0xc1,0xe1,0xf2,0xc6, 0x80,0x90,0x8c,0xcc, 0xe5,0xfc,0xc4,0xc1, 0x70,0x1c,0x6,0x2, 0x3,0x3,0x3,0x1, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x1,0x1, 0x1,0x1,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0, 0x0,0x0,0x0,0x0 }; void setup() { myOLED.begin(); myOLED.setFont(SmallFont); } void loop() { myOLED.clrScr(); if(x>1){myOLED.drawBitmap(0, x, icon1, 128, 16);}; //-- X, Y, IMG, Width, Height myOLED.update(); delay(300); x++; if(x>30){x--; x--;}; }