#include <Adafruit_ST7735.h>
#include "frame.h"
#define TFT_DC 2
#define TFT_CS 15
#define TFT_RES 22
#define TFT_MOSI 23
#define TFT_SCLK 18
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RES);
U8G2_FOR_ADAFRUIT_GFX u8g2;
void setup() {
Serial.begin(115200);
tft.init();
tft.setRotation(0);
tft.fillScreen(TFT_BLACK);
tft.setSwapBytes(true);
ledcSetup(pwmLedChannelTFT, pwmFreq, pwmResolution);
ledcAttachPin(17, pwmLedChannelTFT);
ledcWrite(pwmLedChannelTFT, 80);
}
void loop() {
for(int i=0;i<9;i++)
for(int i=0;i<12;i++){
tft.pushImage(52,56,150,151,frame[i]);
delay(80);}
}