как загрузить gif анимацию вместо изображения в это скрипт #include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_GC9A01A.h>

// Определение пинов
#define TFT_CS D8 // Chip select
#define TFT_DC D2 // Data/command
#define TFT_BL D6 // Backlight control

#define SPI_SPEED 40000000 // 40 МГц

Adafruit_GC9A01A tft = Adafruit_GC9A01A(TFT_CS, TFT_DC, SPI_SPEED);

// Пример небольшого изображения (10x10 пикселей) в формате RGB565
const uint16_t myImage[240 * 240] PROGMEM = {0x4439,0x4439,0x4439,0x4439,0x4439,0x4439,0x4439,0x4439,0x4439,0x4459,0x4439,0x4439,0x4439,0x4439,0x4439,0x4C39,0x4C39,0x4C39,0x4C39,0x4C39,0x4C39,0x4C59,0x4C59,0x4C59,0x4C59,0x5479,0x5479,0x5479,0x5499,0x549A,0x5C99,0x5CBA,0x64DA,0x64DA,0x64FA,0x6CFA,0x6D1A,0x751A,0x753A,0x751A,0x751A,0x753B,0x7D5B,0x857C,0x8D9C,0x8DBC,0x8DBC,0x8DDC,0x95FC,0x9E1D,0xA65D,0xAE5D,0xAE9E,0xB6BE,0xB6BE,0xB6DE,0xBEFE,0xBEFE,0xBEFF,0xBEFF,0xB6DE,0xAE9E,0xA65D,0x9E3D,0x961D,0x95FD,0x95FD,0x961D,0x95FC,0x95DC,0x8DBC,0x85BC,0x85BC,0x8DBC,0x8DBC,0x8DDC,0x95FD,0x961D,0x9E3D,0xA63E,0xA65E,0xAE9E,0xAEBE,0xBEFF,0xBF1F,0xBF1F,0xB6DE,0xAE9E,0x9E3D,0x95FD,0x8DDC,0x8DDD,0x8DDD,0x8DBD,0x7D7C,0x755C,0x755C,0x753C,0x6D3B,0x6D1B,0x6D1B,0x6D1B,0x6D1B,0x6D1B,0x6D1B,0x6D3B,0x6D1B,0x6D1B,0x6D3C,0x755C,0x859D,0x8DDD,0x8DDD,0x9E3D,0xA67E,0xAE9E,0xAEBE,0xAEBE,0xAE9E,0xAE9E,0xAEBE,0xB6DE,0xBEFE,0xC71E,0xD77F,0xD77F,0xD77F,0xCF5E,0xC71E,0xB6BE,0xAE7E,0xA65D,0x9E3D,0x961D,0x95FD,0x8DDD,0x8DDD,0x8DFD,0x8DFD,0x85BD,0x7D9D,0x755D,0x651C,0x54DC,0x4CBB,0x4CBB,0x4CBB,0x4CBB,0x4CBB,0x4CBB,0x4CBB,0x4CBB,0x4CBB,0x4CBB,0x4CBB,0x4CBB,0x4CDC,0x4CBC,0x4CBC,0x4CBC,0x4CBC,0x4CBB,0x4CBB,0x4CBC,0x4CBB,0x4CBB,0x4CBB,0x4CBC,0x4CBC,0x54BC,0x4CBB,0x4CBB,0x4CBC,0x4CBB,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DB,0x4CDB,0x4CBB,0x4CDB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x4CDB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54BB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x5CFB,0x5CFB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x64FB,0x5D1B,0x5D1B,0x5D1B,
0x4439,0x4459,0x4439,0x4459,0x4459,0x4439,0x4439,0x4439,0x4439,0x4459,0x4459,0x4459,0x4459,0x4459,0x4C39,0x4C39,0x4C59,0x4C59,0x5459,0x5459,0x5459,0x4C59,0x5459,0x5459,0x5479,0x5479,0x5499,0x5499,0x5499,0x5499,0x5CB9,0x64DA,0x64DA,0x64FA,0x6CFA,0x6CFA,0x6D1A,0x751A,0x753A,0x7D5B,0x7D5B,0x7D5B,0x7D7B,0x8DBC,0x8DDC,0x95DC,0x95FD,0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0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5D1B,0x5D1B,0x5D1B,0x5D1B,0x5D1B,0x5D1B,0x651B,0x651B,0x651C,
0x445A,0x445A,0x4459,0x445A,0x4459,0x4459,0x4439,0x4459,0x4459,0x4C59,0x4C79,0x4C7A,0x4C7A,0x4C59,0x4C59,0x4C59,0x4C59,0x5479,0x5479,0x5479,0x547A,0x547A,0x547A,0x549A,0x5499,0x5499,0x549A,0x549A,0x5C9A,0x5C9A,0x5CB9,0x64DA,0x64DA,0x64FA,0x6D1A,0x753B,0x753B,0x753B,0x7D5B,0x7D5B,0x7D7B,0x857C,0x859C,0x8DBC,0x95DC,0x95FD,0x9E1D,0x9E1D,0xA65D,0xAE9E,0xB6BE,0xB6BE,0xB6DE,0xBEDF,0xBEFF,0xBF1F,0xC71F,0xBF1F,0xBF1F,0xBEFF,0xBEFE,0xB6BE,0xAE9E,0xA65D,0x9E3D,0x9E1D,0x95FD,0x95FD,0x8DDC,0x8DDC,0x8DBC,0x859C,0x8DBC,0x8DBD,0x8DDD,0x8DDD,0x8DDC,0x8DDD,0x8DDD,0x95FD,0x95FD,0x9E1D,0x9E3D,0xA65D,0xAE9E,0xB6BE,0xB6FF,0xB6FF,0xBEFF,0xAEBE,0xA67E,0x95FD,0x8DDD,0x8DDD,0x95FD,0x8DDD,0x7D9C,0x757C,0x755C,0x755C,0x6D3B,0x753C,0x6D3B,0x6D3B,0x753C,0x755C,0x755C,0x755C,0x7D7D,0x85BD,0x8DFD,0x9E5E,0xA67E,0xAE9E,0xB6BE,0xB6BE,0xB6DE,0xB6DE,0xAEBE,0xB6BE,0xB6DE,0xBEFE,0xC71E,0xCF3E,0xD75F,0xD75E,0xD77F,0xD77F,0xC73E,0xBEFE,0xC73E,0xD77F,0xDF9F,0xD77F,0xC73E,0xBEFE,0xAEBE,0xB6DF,0xB6FF,0x9E3E,0x7D7D,0x64FC,0x54DC,0x54BC,0x4CBC,0x4CBC,0x4CDC,0x4CDC,0x4CBC,0x4CBC,0x4CDC,0x4CDC,0x4CDC,0x4CDC,0x4CDC,0x4CBC,0x4CDC,0x4CDC,0x4CBC,0x4CDC,0x4CDC,0x54BC,0x54DC,0x4CDC,0x54BC,0x54DC,0x4CDC,0x54BC,0x54BC,0x54BC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DC,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DC,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x54DB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5D1B,0x5CFB,0x5D1B,0x5D1B,0x5CFB,0x5D1B,0x5D1B,0x5D1C,0x5D1B,0x651C,0x651B,0x651B,0x651B,0x651C,0x651C,
0x4C7A,0x4C7A,0x4C7A,0x4C7A,0x4C5A,0x4C5A,0x4C59,0x4C5A,0x4C5A,0x4C5A,0x4C79,0x549A,0x5CDA,0x5CBA,0x549A,0x549A,0x549A,0x549A,0x549A,0x5C9A,0x549A,0x5CBA,0x5CBA,0x64DA,0x64DA,0x64DA,0x64DA,0x64DA,0x64DA,0x64DA,0x64DA,0x6CFA,0x6CFB,0x753B,0x7D7B,0x859C,0x859C,0x857C,0x8DBC,0x8DBC,0x8DBC,0x8DBC,0x8D9C,0x8DBC,0x95FC,0x9E1D,0x9E3D,0xA65D,0xA67D,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x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5D1B,0x5D1B,0x5D1C,0x5D1C,0x5CFB,0x5D1B,0x5D1C,0x5D1C,0x5D1C,0x651C,0x651C,0x651C,0x653C,0x653C,0x653C,0x653C,
0x4C7A,0x549A,0x4C9A,0x4C7A,0x4C7A,0x4C7A,0x4C7A,0x4C79,0x4C7A,0x4C79,0x4C79,0x549A,0x54BA,0x54BA,0x5CBA,0x5CDA,0x5CDA,0x64DA,0x64FA,0x64FB,0x64DA,0x64FA,0x6D1B,0x753B,0x753B,0x6D1B,0x6D1B,0x6CFA,0x64FA,0x6D1B,0x6D3B,0x755B,0x755B,0x7D9C,0x8DFD,0x95FD,0x8DDC,0x95FD,0x9E3D,0x9E1D,0x961D,0x95FC,0x8DDC,0x95DC,0x961D,0x9E3D,0xA65D,0xA65D,0xA67E,0xAE9E,0xAE9E,0xAE9E,0xB6BE,0xB6DE,0xBEFF,0xBEFF,0xB6DF,0xB6BE,0xB6BE,0xB6BE,0xAE9E,0xA65D,0xA65D,0xA65D,0x9E5D,0x9E3D,0x9E1D,0x961D,0x961D,0x95FD,0x8DDC,0x8DBC,0x859C,0x859C,0x859C,0x859C,0x7D7C,0x859C,0x859C,0x859C,0x85BC,0x8DBD,0x8DDC,0x95DD,0x95FD,0x961D,0x9E3D,0xA65D,0xA67D,0xAE9E,0xAE7E,0xA67E,0x9E3D,0x961D,0x8DDD,0x8DDD,0x85BD,0x859D,0x7D7D,0x7D7C,0x757C,0x755C,0x757C,0x7D9D,0x7D7C,0x755C,0x753C,0x753C,0x755C,0x757C,0x7D9C,0x85BC,0x8DFD,0x95FD,0x9E3D,0xA67D,0xAE9E,0xAEBE,0xB6DE,0xB6DF,0xB6DF,0xBEFE,0xBF1E,0xC71E,0xCF3E,0xCF3E,0xCF5E,0xCF5E,0xD75E,0xD75E,0xD77E,0xDF7E,0xE79F,0xE7BF,0xE7BF,0xDF9F,0xCF5F,0xB6FF,0xA67E,0x7D9C,0x6D3C,0x6D3C,0x6D3D,0x651C,0x5CFC,0x651D,0x651C,0x5CFC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DC,0x54DB,0x54DC,0x54DC,0x54DB,0x54DB,0x54DC,0x54DC,0x54DC,0x54DB,0x54DC,0x54DC,0x54FC,0x54DC,0x54DC,0x54DC,0x54FC,0x5CDC,0x5CFC,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5CFB,0x5D1C,0x5D1B,0x5D1C,0x5D1C,0x5D1C,0x5D1C,0x5D1C,0x5D1C,0x5D1C,0x651C,0x653C,0x653C,0x653C,0x653C,0x653C,0x653C,
0xCD36,0xCD78,0xCD99,0xCD99,0xCD78,0xCD57,0xCD57,0xCD57,0xCD57,0xCD57,0xCD58,0xCD78,0xCD99,0xCD78,0xCD78,0xCD58,0xCD58,0xCD78,0xCD58,0xC558,0xCD58,0xCD78,0xCD58,0xCD78,0xCD57,0x9BAE,0x9BAE,0xABEF,0xAC0F,0xAC2F,0xAC30,0xAC30,0xAC30,0xAC30,0xAC50,0xB451,0xB471,0xAC71,0xB471,0xB492,0xB4B2,0xB4B2,0xB4B2,0xB4B2,0xB4B2,0xB4B2,0xAC92,0xAC92,0xAC71,0xAC71,0xA451,0xA451,0xA451,0xA431,0x9C10,0x93EF,0x9BEF,0x9C10,0x93CF,0x93CF,0x8BCF,0x83D0,0x8C11,0x8411,0x7B2E,0x8BD1,0x9453,0xA5B7,0x7C50,0xADF7,0xB658,0xB679,0xAE59,0xAE59,0xA618,0xAE59,0x8D15,0x9DD7,0x4B0D,0x3229,0x5B4E,0x638F,0x42AC,0x1987,0x1147,0x0906,0x0906,0x00C6,0x00C5,0x08C5,0x00C5,0x00A5,0x00A5,0x00A5,0x00A5,0x0085,0x0084,0x0084,0x0084,0x0063,0x6249,0xA34C,0xAB6C,0xB38D,0xAB8C,0xB38C,0xB3AD,0xB38C,0xB38C,0xAB8C,0xAB6B,0xAB4B,0xAB4B,0xA30A,0x9AE9,0x9ACA,0xABCF,0xA3CE,0xABAD,0xA32B,0xABAD,0xAB8C,0xAB8D,0xAB6D,0xAB8D,0xABEF,0xB430,0xB40F,0xA38D,0xA38D,0xA38D,0xA38D,0x930B,0x8B0B,0x8AEA,0x82EA,0x8289,0x8289,0x92E9,0x9B0A,0xA34B,0xA36C,0xA36C,0xA36C,0xA36C,0xA36D,0xA34C,0xA34C,0x9B2C,0x9B0B,0x9AEA,0x92A9,0x8A89,0x8A68,0x8247,0x7A27,0x7206,0x61A5,0x5965,0x4924,0x30E3,0x2082,0x28A3,0x1841,0x1041,0x41A6,0x5248,0x7C10,0x8C0F,0x3965,0x3125,0x3145,0x2924,0x18C4,0x2925,0x49C6,0x8AE9,0x8AE8,0x8AC8,0x8B09,0x8B29,0x932A,0x9B6A,0x9B6A,0x9B4A,0x932A,0x8B0A,0x8B2A,0x8B0A,0x8B2A,0x8B2A,0x8B2B,0x8B6B,0x8B4B,0x8B2B,0x7B0C,0x62EC,0x7B0A,0x938C,0xA3EE,0xA40F,0xAC0F,0xAC2F,0xBC6F,0xD4CF,0xC4D0,0x62EC,0xDEB8,0xD552,0xD4AF,0xECF0,0xED11,0xE4F1,0xCC4F,0xBC2E,0xB3EE,0xB3EE,0xB3EE,0xB3CE,0xB3EE,0xB3EE,0xB3EE,0xB3EF,0xB3EE,0xB410,0xBC30,0xB410,0xB410,0xB410,0xBC30,0xBC51,0xBC71,0xBC91,0xC4B2,0xCD12,0xD552,0xDD93,0xB553,0x8C50,0xE5F3,
};

void setup() {
  Serial.begin(9600);
  tft.begin();

  // Установка яркости подсветки
  pinMode(TFT_BL, OUTPUT);
  digitalWrite(TFT_BL, HIGH); // Включить подсветку

  // Заполнение экрана черным цветом
  tft.fillScreen(GC9A01A_BLACK);

  // Отобразить текст
  tft.setTextColor(GC9A01A_GREEN);
  tft.setTextSize(3);
  tft.setCursor(30, 30); // Установка курсора
  tft.println("Anubiz!");

  delay(1000); // Задержка для отображения текста

  // Отобразить изображение
  displayImage(1, 1, myImage, 240, 240); // Позиция x=10, y=10, размер 10x10
  delay(7000); // Задержка для отображения текста
}

void loop(void) {
  // Вы можете добавить дополнительную логику здесь
}

// Функция для отображения изображения из PROGMEM
void displayImage(int16_t x, int16_t y, const uint16_t *image, int16_t w, int16_t h) {
  for (int16_t j = 0; j < h; j++) {
    for (int16_t i = 0; i < w; i++) {
      // Чтение цвета из PROGMEM
      uint16_t color = pgm_read_word(&(image[j * w + i]));
      tft.drawPixel(x + i, y + j, color);
    }
  }
}