#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

// Download Animation Codes https://animator.wokwi.com/

#define SCREEN_I2C_ADDR 0x3C // or 0x3D
#define SCREEN_WIDTH 128     // OLED display width, in pixels
#define SCREEN_HEIGHT 64     // OLED display height, in pixels
#define OLED_RST_PIN -1      // Reset pin (-1 if not available)

Adafruit_SSD1306 display(128, 64, &Wire, OLED_RST_PIN);

// OLED Animation: sunrise weather
// Code auto-generated by https://wokwi.com/animator, graphics by icons8.com

#define FRAME_DELAY (42)
#define FRAME_WIDTH (32)
#define FRAME_HEIGHT (32)
#define FRAME_COUNT (sizeof(frames) / sizeof(frames[0]))
const byte PROGMEM frames[][128] = {
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,0,1,128,0,0,1,128,0,0,1,128,0,3,0,128,128,1,128,1,128,0,192,3,0,0,71,224,0,0,14,112,0,0,24,24,0,0,48,12,0,0,32,4,0,30,112,6,248,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,0,1,128,0,0,1,128,0,0,1,128,0,3,0,128,128,1,128,1,128,0,192,3,0,0,71,224,0,0,14,112,0,0,24,24,0,0,48,12,0,0,32,4,0,30,112,6,248,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,0,1,128,0,0,1,128,0,0,1,128,0,3,0,128,128,1,128,1,128,0,192,3,0,0,71,224,0,0,14,112,0,0,24,24,0,0,48,12,0,0,32,4,0,30,112,6,248,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,0,0,1,128,0,0,1,128,0,0,1,128,0,3,0,128,128,1,128,1,128,0,192,3,0,0,71,224,0,0,14,112,0,0,24,24,0,0,48,12,0,0,32,4,0,30,112,6,248,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,128,3,1,1,128,3,128,3,0,1,192,7,0,0,195,192,0,0,15,112,0,0,24,24,0,0,48,12,0,0,32,4,0,0,32,4,248,31,32,4,248,63,112,14,0,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,1,128,0,3,3,128,7,0,3,0,3,128,6,0,1,131,192,0,0,15,240,0,0,24,24,0,0,16,12,0,0,32,4,0,0,32,4,248,0,32,4,64,31,32,4,0,0,32,4,0,0,48,12,0,0,28,60,0,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,6,0,0,0,2,0,0,0,2,1,0,0,3,3,0,4,0,6,0,7,0,4,0,3,129,192,0,0,143,240,0,0,24,24,0,0,16,8,0,0,48,4,120,0,32,4,248,0,32,4,0,15,32,4,0,31,32,4,0,0,48,12,0,0,24,24,0,0,12,49,0,0,7,225,128,0,113,129,224,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,6,0,0,0,6,3,0,0,6,3,0,0,6,6,0,0,0,12,0,6,0,0,0,3,135,224,0,1,142,112,0,0,24,24,0,0,48,12,56,0,32,4,248,0,32,4,0,0,32,4,0,2,32,4,0,31,32,4,0,24,16,12,0,0,24,24,0,0,15,113,128,0,3,192,224,0,16,0,96,0,48,0,0,0,96,96,0,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,12,2,0,0,4,6,0,0,6,12,0,0,4,12,0,4,0,8,0,14,3,192,0,3,143,240,0,1,152,24,0,0,16,8,120,0,48,4,240,0,32,4,0,0,32,4,0,0,32,4,0,7,32,4,0,15,48,12,0,16,24,25,0,0,12,48,192,0,7,224,224,0,0,0,48,0,48,0,0,0,48,96,0,0,96,32,0,0,96,48,0,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,8,6,0,0,12,6,0,0,12,12,0,0,12,12,0,0,0,16,0,8,0,0,0,14,7,224,0,7,12,48,0,1,152,24,120,0,48,12,240,0,32,4,0,0,32,4,0,0,32,4,0,0,32,4,0,3,48,12,0,15,16,8,0,24,24,25,192,0,15,240,240,0,3,192,48,0,16,0,0,0,24,32,0,0,48,48,0,0,32,48,0,0,32,16,0,0,0,16,0,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,4,0,0,24,12,0,0,8,12,0,0,12,24,0,0,0,16,0,0,0,0,0,4,7,224,0,15,12,48,24,3,152,24,240,0,48,12,64,0,32,4,0,0,32,4,0,0,32,4,0,0,32,4,0,0,48,12,0,15,16,8,128,28,24,24,224,0,15,224,112,0,3,192,0,0,0,0,0,0,24,48,0,0,16,48,0,0,48,24,0,0,48,24,0,0,0,8,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,8,0,0,24,8,0,0,24,24,0,0,8,24,0,0,8,16,0,0,0,0,0,0,7,224,0,30,12,48,56,7,24,24,240,1,48,12,0,0,48,4,0,0,32,4,0,0,32,4,0,0,32,4,0,0,48,12,0,3,16,8,192,15,24,24,240,8,15,112,48,0,3,192,0,0,0,0,0,0,8,16,0,0,24,24,0,0,24,24,0,0,48,8,0,0,48,12,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,0,0,0,32,8,0,0,48,24,0,0,48,24,0,0,24,16,0,0,24,32,0,0,0,0,0,0,3,192,0,8,14,112,112,30,24,25,224,7,16,8,128,0,48,12,0,0,32,4,0,0,32,4,0,0,32,4,0,0,32,4,0,0,16,12,192,7,152,24,240,14,12,48,24,8,7,224,0,0,0,0,0,0,0,24,0,0,12,24,0,0,24,8,0,0,24,12,0,0,16,12,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,24,0,0,96,24,0,0,48,16,0,0,48,48,0,0,24,48,0,0,8,0,0,0,1,128,0,0,7,224,112,24,12,49,224,31,24,24,128,3,48,12,0,0,48,4,0,0,32,4,0,0,32,4,0,0,32,4,0,0,48,12,192,1,16,8,248,7,152,24,24,14,7,224,0,8,3,192,0,0,0,0,0,0,12,24,0,0,12,12,0,0,8,12,0,0,24,4,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,0,16,0,0,32,48,0,0,32,48,0,0,48,48,0,0,16,32,0,0,16,0,0,0,3,192,48,0,15,240,224,24,24,25,128,31,16,8,0,3,48,12,0,0,32,4,0,0,32,4,0,0,32,4,0,0,32,4,128,0,48,12,112,1,152,24,56,7,140,48,0,6,7,224,0,8,0,0,0,0,0,24,0,0,12,12,0,0,12,12,0,0,12,6,0,0,8,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,16,0,0,0,48,0,0,96,48,0,0,96,48,0,0,48,96,0,0,48,0,0,0,0,0,32,0,7,224,224,0,14,113,192,8,24,25,0,30,48,12,0,3,32,4,0,0,32,4,0,0,32,4,0,0,32,4,0,0,32,4,224,0,16,12,248,1,152,24,0,3,143,112,0,6,3,192,0,0,0,8,0,0,4,12,0,0,4,12,0,0,12,6,0,0,12,6,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,48,0,0,0,48,0,0,64,32,0,0,96,96,0,0,48,96,0,0,48,0,0,0,0,0,112,0,7,224,224,0,12,49,128,0,24,24,0,30,48,12,0,7,32,4,0,0,32,4,0,0,32,4,0,0,32,4,0,0,32,4,248,0,16,8,48,1,152,24,0,3,135,224,0,6,1,128,0,4,0,8,0,0,2,12,0,0,6,6,0,0,4,6,0,0,12,2,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,32,0,0,0,32,0,0,64,96,0,0,96,96,0,0,96,64,0,0,48,0,32,0,0,0,96,0,7,225,192,0,12,49,128,0,24,24,0,30,48,12,0,7,32,4,0,0,32,4,0,0,32,6,0,0,32,4,192,0,32,4,120,0,16,8,0,0,156,56,0,3,135,224,0,7,0,0,0,4,0,12,0,0,2,12,0,0,6,6,0,0,6,2,0,0,4,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,32,0,0,0,96,0,0,64,96,0,0,96,96,0,0,96,64,0,0,48,0,32,0,0,0,224,0,7,225,192,0,14,112,0,0,24,8,0,30,48,12,0,15,32,4,0,0,32,6,0,0,96,6,0,0,32,4,240,0,32,4,120,0,16,8,0,0,28,56,0,3,135,224,0,7,0,0,0,4,0,12,0,0,2,6,0,0,6,6,0,0,6,2,0,0,6,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,96,0,0,0,96,0,0,192,96,0,0,192,96,0,0,96,64,0,0,48,0,32,0,0,0,224,0,3,225,192,0,14,112,0,0,16,8,0,30,48,12,0,31,32,4,0,0,96,6,0,0,96,6,0,0,96,6,240,0,32,4,120,0,16,12,0,0,28,48,0,1,135,224,0,7,0,0,0,6,0,12,0,0,2,6,0,0,6,7,0,0,6,2,0,0,6,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,96,0,0,0,96,0,0,192,96,0,0,192,96,0,0,96,64,0,0,48,0,96,0,0,0,224,0,3,193,128,0,14,112,0,0,16,8,0,30,48,4,0,31,96,6,0,0,96,6,0,0,96,6,0,0,96,6,248,0,32,4,120,0,16,12,0,0,14,112,0,1,135,224,0,7,0,0,0,6,0,12,0,0,2,6,0,0,6,3,0,0,6,3,0,0,6,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,96,0,0,0,96,0,0,192,96,0,0,192,96,0,0,96,64,0,0,48,0,96,0,0,0,224,0,3,193,128,0,14,112,0,0,16,12,0,30,32,4,0,31,96,6,0,0,96,6,0,0,96,2,0,0,96,6,248,0,32,4,56,0,24,24,0,0,15,240,0,1,131,192,0,7,0,0,0,6,0,12,0,0,2,6,0,0,6,3,0,0,6,3,0,0,6,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,96,0,0,0,96,0,0,192,96,0,0,192,64,0,0,96,64,0,0,48,0,96,0,0,1,192,0,7,225,128,0,28,56,0,0,16,8,0,30,32,4,0,31,96,6,0,0,96,6,0,0,96,6,0,0,96,6,248,0,48,12,24,0,24,24,0,0,15,112,0,1,131,192,0,7,0,0,0,6,0,12,0,0,2,6,0,0,2,3,0,0,6,1,0,0,6,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,64,0,0,0,96,0,0,128,64,0,0,192,64,0,0,224,64,0,0,96,0,96,0,32,1,192,0,3,227,128,0,14,112,0,0,24,24,0,16,48,12,0,31,32,4,0,3,32,6,0,0,96,6,0,0,32,4,248,0,32,4,56,0,16,12,0,0,28,56,0,1,199,224,0,3,128,0,0,3,0,6,0,0,2,6,0,0,3,3,0,0,2,1,0,0,2,0,0,0,6,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,192,0,0,0,192,0,0,0,192,0,1,0,192,0,1,128,192,0,0,192,0,224,0,96,1,192,0,32,3,128,0,7,227,0,0,24,24,0,0,16,8,0,0,48,4,0,30,32,4,0,31,32,4,0,0,32,4,248,0,32,4,56,0,48,12,0,0,24,24,0,0,14,48,0,0,199,224,0,1,128,6,0,3,0,7,0,2,1,3,0,0,3,1,128,0,3,0,0,0,3,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,1,0,0,0,1,128,0,0,1,128,0,0,1,128,0,1,1,0,128,1,128,1,128,0,192,3,0,0,7,224,0,0,14,112,0,0,24,24,0,0,48,12,0,0,32,4,0,0,32,4,0,31,32,4,248,0,32,4,0,0,32,4,0,0,16,8,0,0,24,24,0,0,15,240,0,0,1,128,0,0,192,3,0,1,128,1,128,3,1,128,192,0,1,128,0,0,1,128,0,0,1,128,0,0,0,128,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,1,0,0,0,1,128,0,0,1,128,0,0,1,128,0,1,1,0,128,1,128,1,128,0,192,3,0,0,7,224,0,0,14,112,0,0,24,24,0,0,48,12,0,0,32,4,0,0,32,4,0,31,32,4,248,0,32,4,0,0,32,4,0,0,16,8,0,0,24,24,0,0,15,240,0,0,1,128,0,0,192,3,0,1,128,1,128,3,1,128,192,0,1,128,0,0,1,128,0,0,1,128,0,0,0,128,0,0,0,0,0,0,0,0,0,255,255,255,255},
  {0,0,0,0,0,0,0,0,0,1,0,0,0,1,128,0,0,1,128,0,0,1,128,0,1,1,0,128,1,128,1,128,0,192,3,0,0,7,224,0,0,14,112,0,0,24,24,0,0,48,12,0,0,32,4,0,0,32,4,0,31,32,4,248,0,32,4,0,0,32,4,0,0,16,8,0,0,24,24,0,0,15,240,0,0,1,128,0,0,192,3,0,1,128,1,128,3,1,128,192,0,1,128,0,0,1,128,0,0,1,128,0,0,0,128,0,0,0,0,0,0,0,0,0,255,255,255,255}
};

void setup() {
  display.begin(SSD1306_SWITCHCAPVCC, SCREEN_I2C_ADDR);
}

int frame = 0;
void loop() {
  display.clearDisplay();
  display.drawBitmap(48, 16, frames[frame], FRAME_WIDTH, FRAME_HEIGHT, 1);
  display.display();
  frame = (frame + 1) % FRAME_COUNT;
  delay(FRAME_DELAY);
}
uno:A5.2
uno:A4.2
uno:AREF
uno:GND.1
uno:13
uno:12
uno:11
uno:10
uno:9
uno:8
uno:7
uno:6
uno:5
uno:4
uno:3
uno:2
uno:1
uno:0
uno:IOREF
uno:RESET
uno:3.3V
uno:5V
uno:GND.2
uno:GND.3
uno:VIN
uno:A0
uno:A1
uno:A2
uno:A3
uno:A4
uno:A5
oled1:GND
oled1:VCC
oled1:SCL
oled1:SDA