#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include "frames.h" //FAX icon
#include "phone.h" //Phone icon
#define OLED_RST_PIN -1 // Reset pin (-1 if not available)
#define SCREEN_I2C_ADDR 0x3C // or 0x3C
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
Adafruit_SSD1306 display(128, 64, &Wire, OLED_RST_PIN);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32-S3!");
display.begin(SSD1306_SWITCHCAPVCC, SCREEN_I2C_ADDR);
}
// OLED Animation: fax
// Code auto-generated by https://wokwi.com/animator, graphics by icons8.com
#define FRAME_DELAY (42)
#define FRAME_WIDTH (64)
#define FRAME_HEIGHT (64)
#define FRAME_COUNT (sizeof(frames) / sizeof(frames[0]))
int frame = 0;
int count =0;
byte useme[][512] PROGMEM = {};
void loop() {
display.clearDisplay();
//useme == frames;
display.drawBitmap(32, 0, frames[frame], FRAME_WIDTH, FRAME_HEIGHT, 1);
display.display();
frame = (frame + 1) % FRAME_COUNT;
delay(FRAME_DELAY);
}