#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h> 
//#include <Fonts/FreeSans9pt7b.h>
//#include <Fonts/FreeSans12pt7b.h>
//#include <Fonts/FreeSans18pt7b.h>


#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
const unsigned char PROGMEM frame0 [] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x3C, 0x00, 0x01, 0xFF, 0x00, 0x00, 0xFF, 0x80, 0x07, 0xEF, 0x00, 0x00, 0xFB, 0xE0, 0x0F, 0x0E, 0x00, 0x00, 0x70, 0xF0, 0x1E, 0x3C, 0x1F, 0xF0, 0x3C, 0x30, 0x18, 0x38, 0x7F, 0xFF, 0x1C, 0x38, 0x18, 0xF3, 0xF8, 0x2F, 0xCF, 0x1C, 0x38, 0xE7, 0xC0, 0x03, 0xE7, 0x1C, 0x33, 0xDE, 0x00, 0x00, 0x7B, 0xCC, 0x33, 0xBC, 0x00, 0x00, 0x3D, 0xCC, 0x3F, 0x78, 0x00, 0x00, 0x1E, 0xFC, 0x3F, 0x70, 0x00, 0x00, 0x0E, 0x7C, 0x3C, 0xE0, 0x00, 0x00, 0x07, 0x3C, 0x39, 0xC0, 0x00, 0x00, 0x03, 0x9C, 0x11, 0x82, 0x00, 0x00, 0x01, 0x88, 0x03, 0x87, 0x00, 0x00, 0x01, 0xC0, 0x03, 0x03, 0x80, 0x00, 0x00, 0xC0, 0x07, 0x01, 0xC0, 0x00, 0x00, 0xE0, 0x06, 0x00, 0xE0, 0x00, 0x00, 0x60, 0x0E, 0x00, 0x70, 0x00, 0x00, 0x60, 0x0E, 0x00, 0x38, 0x00, 0x00, 0x70, 0x0C, 0x00, 0x1C, 0x00, 0x00, 0x30, 0x0C, 0x00, 0x0E, 0x00, 0x00, 0x30, 0x0C, 0x00, 0x7F, 0x80, 0x00, 0x30, 0x0C, 0x01, 0xFF, 0x80, 0x00, 0x30, 0x0C, 0x00, 0x55, 0x00, 0x00, 0x30, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x70, 0x06, 0x00, 0x00, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x00, 0x00, 0x60, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x03, 0x80, 0x00, 0x00, 0x01, 0xC0, 0x01, 0xC0, 0x00, 0x00, 0x03, 0x80, 0x01, 0xC0, 0x00, 0x00, 0x03, 0x80, 0x00, 0xE0, 0x00, 0x00, 0x07, 0x00, 0x00, 0x70, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x78, 0x00, 0x00, 0x1E, 0x00, 0x00, 0xFE, 0x00, 0x00, 0x7F, 0x00, 0x01, 0xCF, 0x80, 0x01, 0xF3, 0x80, 0x03, 0x83, 0xF0, 0x1F, 0xC1, 0xC0, 0x07, 0x00, 0xFF, 0xFF, 0x00, 0xE0, 0x06, 0x00, 0x1F, 0xF8, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

const unsigned char PROGMEM frame26 [] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x3C, 0x00, 0x01, 0xFF, 0x00, 0x00, 0xFF, 0x80, 0x07, 0xEF, 0x00, 0x00, 0xFB, 0xE0, 0x0F, 0x0E, 0x00, 0x00, 0x70, 0xF0, 0x1E, 0x3C, 0x1F, 0xF0, 0x3C, 0x38, 0x18, 0x38, 0x7F, 0xFF, 0x1C, 0x38, 0x18, 0xF3, 0xF8, 0x2F, 0xCF, 0x1C, 0x38, 0xE7, 0xC0, 0x03, 0xE7, 0x1C, 0x33, 0xDE, 0x00, 0x00, 0x7B, 0xCC, 0x33, 0xBC, 0x00, 0x00, 0x3D, 0xCC, 0x3F, 0x78, 0x00, 0x00, 0x1E, 0xFC, 0x3F, 0x70, 0x00, 0x00, 0x0E, 0x7C, 0x3C, 0xE0, 0x00, 0x00, 0x07, 0x3C, 0x39, 0xC0, 0x00, 0x00, 0x03, 0x9C, 0x11, 0x80, 0x00, 0x00, 0x01, 0x88, 0x03, 0x80, 0x00, 0x00, 0x01, 0xC0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x06, 0x00, 0x00, 0x00, 0x00, 0x60, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x60, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x70, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0C, 0x00, 0xFF, 0x80, 0x00, 0x30, 0x0C, 0x01, 0xFF, 0x80, 0x00, 0x30, 0x0C, 0x00, 0x5F, 0x00, 0x00, 0x30, 0x0C, 0x00, 0x1E, 0x00, 0x00, 0x30, 0x0C, 0x00, 0x38, 0x00, 0x00, 0x30, 0x0C, 0x00, 0xF0, 0x00, 0x00, 0x30, 0x0E, 0x01, 0xE0, 0x00, 0x00, 0x70, 0x06, 0x07, 0x80, 0x00, 0x00, 0x60, 0x06, 0x0F, 0x00, 0x00, 0x00, 0x60, 0x07, 0x0C, 0x00, 0x00, 0x00, 0xE0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x03, 0x80, 0x00, 0x00, 0x01, 0xC0, 0x01, 0xC0, 0x00, 0x00, 0x03, 0x80, 0x01, 0xC0, 0x00, 0x00, 0x03, 0x80, 0x00, 0xE0, 0x00, 0x00, 0x07, 0x00, 0x00, 0x70, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x78, 0x00, 0x00, 0x1E, 0x00, 0x00, 0xFE, 0x00, 0x00, 0x7F, 0x00, 0x01, 0xCF, 0x80, 0x01, 0xF3, 0x80, 0x03, 0x83, 0xF0, 0x1F, 0xC1, 0xC0, 0x07, 0x00, 0xFF, 0xFF, 0x00, 0xE0, 0x06, 0x00, 0x1F, 0xF8, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

const unsigned char PROGMEM frame27 [] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x3C, 0x00, 0x01, 0xFF, 0x00, 0x00, 0xFF, 0x80, 0x07, 0xEF, 0x00, 0x00, 0xFB, 0xE0, 0x0F, 0x0E, 0x00, 0x00, 0x70, 0xF0, 0x1E, 0x3C, 0x1F, 0xF0, 0x3C, 0x30, 0x18, 0x38, 0x7F, 0xFF, 0x1C, 0x38, 0x18, 0xF3, 0xF8, 0x2F, 0xCF, 0x1C, 0x38, 0xE7, 0xC0, 0x03, 0xE7, 0x1C, 0x33, 0xDE, 0x00, 0x00, 0x7B, 0xCC, 0x33, 0xBC, 0x00, 0x00, 0x3D, 0xCC, 0x3F, 0x78, 0x00, 0x00, 0x1E, 0xFC, 0x3F, 0x70, 0x00, 0x00, 0x0E, 0x7C, 0x3C, 0xE0, 0x00, 0x00, 0x07, 0x3C, 0x39, 0xC0, 0x00, 0x00, 0x03, 0x9C, 0x11, 0x80, 0x00, 0x00, 0x01, 0x88, 0x03, 0x80, 0x00, 0x00, 0x01, 0xC0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x06, 0x00, 0x00, 0x00, 0x00, 0x60, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x60, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x70, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0C, 0x38, 0x00, 0x00, 0x00, 0x30, 0x0C, 0x3F, 0xFF, 0x80, 0x00, 0x30, 0x0C, 0x03, 0xFF, 0x80, 0x00, 0x30, 0x0C, 0x00, 0x55, 0x00, 0x00, 0x30, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x70, 0x06, 0x00, 0x00, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x00, 0x00, 0x60, 0x07, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x03, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x03, 0x80, 0x00, 0x00, 0x01, 0xC0, 0x01, 0xC0, 0x00, 0x00, 0x03, 0x80, 0x01, 0xC0, 0x00, 0x00, 0x03, 0x80, 0x00, 0xE0, 0x00, 0x00, 0x07, 0x00, 0x00, 0x70, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x78, 0x00, 0x00, 0x1E, 0x00, 0x00, 0xFE, 0x00, 0x00, 0x7F, 0x00, 0x01, 0xCF, 0x80, 0x01, 0xF3, 0x80, 0x03, 0x83, 0xF0, 0x1F, 0xC1, 0xC0, 0x07, 0x00, 0xFF, 0xFF, 0x00, 0xE0, 0x06, 0x00, 0x1F, 0xF8, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};



void setup() {
    display.begin(SSD1306_SWITCHCAPVCC, 0x3C);  
  display.display();
  display.clearDisplay();
display.setTextSize(0);

    display.setFont();
   
  display.setTextColor(WHITE);

}
int tt=0;
int xx=8;
int yy=0;
void loop() {

display.clearDisplay();
display.drawBitmap(xx, yy,frame0,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame1,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame2,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame3,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame4,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame5,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame6,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame7,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame8,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame9,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame10,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame11,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame12,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame13,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame14,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame15,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame16,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame17,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame18,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame19,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame20,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame21,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame22,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame23,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame24,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame25,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame26,48,48, 1);
display.display();
delay(tt);

display.clearDisplay();
display.drawBitmap(xx, yy,frame27,48,48, 1);
display.display();
delay(tt);


}


Перепиши это под библиотеку Adafruit_GC9A01A