#include <Wire.h>
#include <Adafruit_SSD1306.h>
#include "calendar_tear.h" // animation by icons8.com
 
Adafruit_SSD1306 display(128, 64, &Wire, -1);
 
void setup(void) {
  display.begin(SSD1306_SWITCHCAPVCC, 0x3d);
  display.setTextColor(SSD1306_WHITE); 
}
 
void loop(void) {
  display.clearDisplay();
  auto frame = calendarTearAnimation.nextFrame();
  display.drawBitmap(40, 0, frame, 48, 48, 1);
  display.setCursor(20, 52);
  display.print("Arduino is Fun!");
  display.display();
  delay(calendarTearAnimation.delay);
}

sketch.ino hosted with by Wokwi