I can't use this code in arduino Nano

this is code

#define TFT_CS     10
#define TFT_RST    9
#define TFT_DC     8
#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_ST7735.h> // Hardware-specific library
#include <SPI.h>
#include "sprite.c"

const int TICKS_PER_SECOND = 50;
const int SKIP_TICKS = 1000 / TICKS_PER_SECOND;
const int MAX_FRAMESKIP = 40;

const int trunk_w = 29;
const int trunk_l = 25;
const int leg_w = 29;
const int leg_l = 6;
int dino_y = 97;
int y;
int y_old;
int tree_pos = 80;
int dino_x = 35;
int type_old;

int type = 2;
int color;
float cloud_pos;
int cloud_height;
int cloud_type;
float cloud_pos1;
int cloud_height1;
int cloud_type1;

double diff;
float u;
bool button_press = false;
bool game_running = false;
bool main_menu=true;
unsigned long next_game_tick;
unsigned long game_F;
unsigned long t1;
unsigned long t2;
unsigned long t3;
unsigned long score;

int loops;
float interpolation;

Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);

void button() {
  if (game_running == true) {
    t2 = millis();
    u = 90.0;
    button_press = true;
    tone(7, 523, 30);
    //Serial.println("Pressed");
  } else {
    main_menu = false;
    game_running = true;
    tft.fillScreen(tft.Color565( 0xff, 0xff, 0xff));
    score = millis();

  }

}

void game_over() {
  game_running = false;
  tft.setCursor(25, 50);
  tft.invertDisplay(true);
  tft.setTextColor(ST7735_RED);
  tft.invertDisplay(false);
  tft.setTextSize(2);
  tft.invertDisplay(true);
  tft.print("Game Over");
  tft.invertDisplay(false);
  tone(7, 523, 60);
  tft.invertDisplay(true);
  tone(7, 230, 30);
  tft.invertDisplay(false);
  tone(7, 523, 60);
  tft.invertDisplay(true);
  tone(7, 230, 30);
  tft.invertDisplay(false);

  //add some music + Game over classic display text
}

void update_game() {
  t1 = millis();
  if (button_press) {
    diff = (abs(t1 - t2)) / 1000.00;
    y = u * diff - 35 * diff * diff;
    //Serial.println(y, 8);
    if (y <= 0 && diff > 1) {             //detect touch down
      u = 0;
      y = 0;
      t2 = 0;
      button_press = false;
      //Serial.println("Down");
    }
  }
  if (t3 < t1) {
    t3 = t1 + 3000;
    type = random(1, 3);

    if (type_old != type) {
      if (type_old == 1) {
        tft.fillRoundRect(tree_pos, 99, 4, 29, 1.5, tft.Color565( 0xff, 0xff, 0xff));
        tft.fillRoundRect(tree_pos - 10, 113, 20, 4, 1.5, tft.Color565( 0xff, 0xff, 0xff));
        tft.fillRoundRect(tree_pos - 10, 113 - 8, 4, 10, 1.5, tft.Color565( 0xff, 0xff, 0xff));
        tft.fillRoundRect(tree_pos + 8, 113 - 10, 4, 12, 1.5, tft.Color565( 0xff, 0xff, 0xff));
      } else if (type_old == 2 ) {
        tft.fillRoundRect(tree_pos, 108, 4, 20, 1.5, tft.Color565( 0xff, 0xff, 0xff));
        tft.fillRoundRect(tree_pos - 8, 115, 18, 4, 1.5, tft.Color565( 0xff, 0xff, 0xff));
        tft.fillRoundRect(tree_pos - 9, 115 - 8, 4, 10, 1.5, tft.Color565( 0xff, 0xff, 0xff));
        tft.fillRoundRect(tree_pos + 8, 115 - 8, 4, 10, 1.5, tft.Color565( 0xff, 0xff, 0xff));

        tft.fillRoundRect(tree_pos + 25, 108, 4, 20, 1.5, tft.Color565( 0xff, 0xff, 0xff));
        tft.fillRoundRect(tree_pos - 8 + 25, 115, 18, 4, 1.5, tft.Color565( 0xff, 0xff, 0xff));
        tft.fillRoundRect(tree_pos - 9 + 25, 115 - 8, 4, 10, 1.5, tft.Color565( 0xff, 0xff, 0xff));
        //tft.fillRoundRect(tree_pos+8+25,115-8,4,10,1.5,tft.Color565( 0xff, 0xff, 0xff));

      }
      type_old = type;
      tree_pos = 160;

    }
  }
  if ( type == 1 && ((dino_y - y + trunk_l + leg_l) > (128 - 29)) && (dino_x > (tree_pos - 10)) && (dino_x < (tree_pos + 8)) ) {
    game_over();
  } else if ( type == 2 && ((dino_y - y + trunk_l + leg_l) > (128 - 20)) && (dino_x > (tree_pos - 9)) && (dino_x < (tree_pos + 35)) ) {
    game_over();
  }
}

void display_game() {
  //check if the dino pose changed, if yes rewrite the old one with background and write the new one else only do leg animation
  //use game_F to switch between leg frames (odd/even)
  if (y_old != y) {
    drawBitmap(dino_x, dino_y - y, body, trunk_w, trunk_l, 0x0000);
    drawBitmap(dino_x, dino_y - y + trunk_l, leg1, leg_w, leg_l,  0x0000);
    tft.fillRect(dino_x, dino_y - y - 5, trunk_w + 5, trunk_l + 5, tft.Color565( 0xff, 0xff, 0xff)); //clearing extra bits
    //drawBitmap(dino_x, dino_y - y, body, 40, 35, tft.Color565( 0xff, 0xff, 0xff));
    tft.fillRect(dino_x, dino_y - y + trunk_l - 5, leg_w + 5, leg_l + 10, tft.Color565( 0xff, 0xff, 0xff));
    //drawBitmap(dino_x, dino_y - y+ 35, leg1, 40, 8, tft.Color565( 0xff, 0xff, 0xff));
    y_old = y;
    delay(2);
  } else
  {
    drawBitmap(dino_x, dino_y - y, body, trunk_w, trunk_l,  0x0000);
    if (game_F % 4 == 0) {
      //drawBitmap(dino_x, dino_y - y+ 35, leg2, 40, 8, tft.Color565( 0xff, 0xff, 0xff));
      tft.fillRect(dino_x, dino_y - y + trunk_l, leg_w, leg_l, tft.Color565( 0xff, 0xff, 0xff));
      drawBitmap(dino_x, dino_y - y + trunk_l, leg1, leg_w, leg_l,  0x0000);
      //delay(250);

    }
    else {
      tft.fillRect(dino_x, dino_y - y + trunk_l, leg_w, leg_l, tft.Color565( 0xff, 0xff, 0xff));
      drawBitmap(dino_x, dino_y - y + trunk_l, leg2, leg_w, leg_l,  0x0000);
      //delay(250);

    }
    game_F++;
  }
  if (type == 1 ) {
    tft.fillRoundRect(tree_pos, 99, 4, 29, 1.5, tft.Color565(  0xff,  0xff,  0xff));
    tft.fillRoundRect(tree_pos - 10, 113, 20, 4, 1.5, tft.Color565(  0xff,  0xff,  0xff));
    tft.fillRoundRect(tree_pos - 10, 113 - 8, 4, 10, 1.5, tft.Color565(  0xff,  0xff,  0xff));
    tft.fillRoundRect(tree_pos + 8, 113 - 10, 4, 12, 1.5, tft.Color565(  0xff,  0xff,  0xff));
  } else if (type == 2 ) {
    tft.fillRoundRect(tree_pos, 108, 4, 20, 1.5, tft.Color565(  0xff,  0xff,  0xff));
    tft.fillRoundRect(tree_pos - 8, 115, 18, 4, 1.5, tft.Color565(  0xff,  0xff,  0xff));
    tft.fillRoundRect(tree_pos - 9, 115 - 8, 4, 10, 1.5, tft.Color565(  0xff,  0xff,  0xff));
    tft.fillRoundRect(tree_pos + 8, 115 - 8, 4, 10, 1.5, tft.Color565(  0xff,  0xff,  0xff));

    tft.fillRoundRect(tree_pos + 25, 108, 4, 20, 1.5, tft.Color565(  0xff,  0xff,  0xff));
    tft.fillRoundRect(tree_pos - 8 + 25, 115, 18, 4, 1.5, tft.Color565(  0xff,  0xff,  0xff));
    tft.fillRoundRect(tree_pos - 9 + 25, 115 - 8, 4, 10, 1.5, tft.Color565(  0xff,  0xff,  0xff));
    //tft.fillRoundRect(tree_pos+8+25,115-8,4,10,1.5,tft.Color565(  0xff,  0xff,  0xff));

  }

  if (tree_pos > 0) {
    tree_pos = tree_pos - 5;
    color = ST7735_BLACK;
  } else {
    color = tft.Color565(  0xff,  0xff,  0xff); // to avoid stray pixels due to border effects
  }



  if (type == 1) {
    tft.fillRoundRect(tree_pos, 99, 4, 29, 1.5, color);
    tft.fillRoundRect(tree_pos - 10, 113, 20, 4, 1.5, color);
    tft.fillRoundRect(tree_pos - 10, 113 - 8, 4, 10, 1.5, color);
    tft.fillRoundRect(tree_pos + 8, 113 - 10, 4, 12, 1.5, color);
  } else if (type == 2 ) {
    tft.fillRoundRect(tree_pos, 108, 4, 20, 1.5, color);
    tft.fillRoundRect(tree_pos - 8, 115, 18, 4, 1.5, color);
    tft.fillRoundRect(tree_pos - 9, 115 - 8, 4, 10, 1.5, color);
    tft.fillRoundRect(tree_pos + 8, 115 - 8, 4, 10, 1.5, color);

    tft.fillRoundRect(tree_pos + 25, 108, 4, 20, 1.5, color);
    tft.fillRoundRect(tree_pos - 8 + 25, 115, 18, 4, 1.5, color);
    tft.fillRoundRect(tree_pos - 9 + 25, 115 - 8, 4, 10, 1.5, color);
    //tft.fillRoundRect(tree_pos+8+25,115-8,4,10,1.5,ST7735_GREEN);

  }
  if (cloud_type == 1) {
    //drawBitmap(cloud_pos, cloud_height, cloud_big, 18, 8, tft.Color565(  0xff,  0xff,  0xff));
    tft.fillRoundRect(cloud_pos, cloud_height, 18, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));
  } else if (cloud_type == 2) {
    //drawBitmap(cloud_pos, cloud_height, cloud_small, 11, 8, tft.Color565(  0xff,  0xff,  0xff));
    tft.fillRoundRect(cloud_pos, cloud_height, 11, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));
  }
  if (cloud_pos > 0) {
    cloud_pos = cloud_pos - 0.5;
  }
  else {
    if (cloud_type == 1) {
    tft.fillRoundRect(cloud_pos, cloud_height, 18, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));
  } else if (cloud_type == 2) {
    tft.fillRoundRect(cloud_pos, cloud_height, 11, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));
  }
    cloud_pos = random(30,161);
    cloud_type = random(1, 3);
    cloud_height = random(20, 30);
  }
  if (cloud_type == 1) {
    tft.fillRoundRect(cloud_pos, cloud_height, 18, 8, 1.5, tft.Color565(  0x80,  0x80,  0x80));
    //drawBitmap(cloud_pos, cloud_height, cloud_big, 18, 8, tft.Color565(  0x00,  0x00,  0x00));
  } else if (cloud_type == 2) {
    tft.fillRoundRect(cloud_pos, cloud_height, 11, 8, 1.5, tft.Color565(  0x80,  0x80,  0x80));
    //drawBitmap(cloud_pos, cloud_height, cloud_small, 11, 8, tft.Color565(  0x00,  0x00,  0x00));
  }

  

  if (cloud_type1 == 1) {
    //drawBitmap(cloud_pos, cloud_height, cloud_big, 18, 8, tft.Color565(  0xff,  0xff,  0xff));
    tft.fillRoundRect(cloud_pos1, cloud_height1, 18, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));
  } else if (cloud_type1 == 2) {
    //drawBitmap(cloud_pos, cloud_height, cloud_small, 11, 8, tft.Color565(  0xff,  0xff,  0xff));
    tft.fillRoundRect(cloud_pos1, cloud_height1, 11, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));
  }
  if (cloud_pos1 > 0) {
    cloud_pos1 = cloud_pos1 - 0.5;
  }
  else {
    if (cloud_type1 == 1) {
    tft.fillRoundRect(cloud_pos1, cloud_height1, 18, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));
  } else if (cloud_type1 == 2) {
    tft.fillRoundRect(cloud_pos1, cloud_height1, 11, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));
  }
    cloud_pos1 = random(30,161);
    cloud_type1 = random(1, 3);
    cloud_height1 = random(20, 40);
  }
  if (cloud_type1 == 1) {
    tft.fillRoundRect(cloud_pos1, cloud_height1, 18, 8, 1.5, tft.Color565(  0x80,  0x80,  0x80));
    //drawBitmap(cloud_pos, cloud_height, cloud_big, 18, 8, tft.Color565(  0x00,  0x00,  0x00));
  } else if (cloud_type1 == 2) {
    tft.fillRoundRect(cloud_pos1, cloud_height1, 11, 8, 1.5, tft.Color565(  0x80,  0x80,  0x80));
    //drawBitmap(cloud_pos, cloud_height, cloud_small, 11, 8, tft.Color565(  0x00,  0x00,  0x00));
  }


}

void drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color) {
  int16_t i, j, byteWidth = (w + 7) / 8;
  uint8_t byte;

  for (j = 0; j < h; j++) {
    for (i = 0; i < w; i++) {
      if (i & 7) byte <<= 1;
      else      byte   = pgm_read_byte(bitmap + j * byteWidth + i / 8);
      if (byte & 0x80) tft.drawPixel(x + i, y + j, color);
    }
  }
}


void setup() {
  next_game_tick = millis();
  Serial.begin(9600);
  pinMode(2, INPUT_PULLUP);
  attachInterrupt(digitalPinToInterrupt(2), button, FALLING);
  tft.initR(INITR_BLACKTAB);
  tft.setRotation(3);
  tft.fillScreen(tft.Color565(  0xff,  0xff,  0xff));
  tft.setCursor(25, 40);
  tft.setTextColor(ST7735_RED);
  tft.setTextSize(2);
  tft.print("Dino Game");
  tft.setCursor(20,60);
  tft.setTextColor(ST7735_RED);
  tft.setTextSize(1);
  tft.print("Press ENTER to start");
  tft.setCursor(50,75);
  tft.setTextColor(ST7735_BLUE);
  tft.setTextSize(1);
  tft.print("By: TextZip");
  

  drawBitmap(10, 97,body,trunk_w,trunk_l, 0x0000);
  //game_over();
  //drawBitmap(20, 20,cloud_big,31,16,tft.Color565(  0x00,  0x00,  0x00));
  //drawBitmap(20, 40,cloud_small,21,16,tft.Color565(  0x00,  0x00,  0x00));




}

void loop() {
  if(main_menu){
    drawBitmap(10, 97+25,leg1,leg_w,leg_l, 0x0000);
    delay(250);
    drawBitmap(10, 97+25,leg1,leg_w,leg_l, tft.Color565(  0xff,  0xff,  0xff));
    drawBitmap(10, 97+25,leg2,leg_w,leg_l, 0x0000);
    delay(250);
    drawBitmap(10, 97+25,leg2,leg_w,leg_l, tft.Color565(  0xff,  0xff,  0xff));
  }
  while (game_running) {
    tft.fillRect(80, 2, 80, 15, tft.Color565(  0xff,  0xff,  0xff));
    tft.setCursor(80, 2);
    tft.setTextColor(ST7735_RED);
    tft.setTextSize(2);
    tft.print((millis() - score) / 1000);
    //update_game();
    //display_game();
    loops = 0;
    while ( millis() > next_game_tick && loops < MAX_FRAMESKIP) {
      update_game();

      next_game_tick += SKIP_TICKS;
      loops++;
    }

    display_game();


  }

}

and this is sprite.c
#include <avr/pgmspace.h>

const unsigned char body [] PROGMEM = {
0x00, 0x00, 0xff, 0xf0, 0x00, 0x03, 0xff, 0xf8, 0x00, 0x03, 0xff, 0xf8, 0x00, 0x03, 0xff, 0xf8,
0x00, 0x03, 0xff, 0xf8, 0x00, 0x03, 0xff, 0xf8, 0x00, 0x03, 0xff, 0xf8, 0x00, 0x03, 0xff, 0xf8,
0x00, 0x03, 0xfc, 0x00, 0x00, 0x03, 0xff, 0xc0, 0xc0, 0x07, 0xff, 0xc0, 0xc0, 0x07, 0xf8, 0x00,
0xc0, 0x1f, 0xf8, 0x00, 0xe0, 0xff, 0xff, 0x00, 0xe0, 0xff, 0xff, 0x00, 0xf9, 0xff, 0xff, 0x00,
0xff, 0xff, 0xff, 0x00, 0xff, 0xff, 0xf8, 0x00, 0xff, 0xff, 0xf8, 0x00, 0xff, 0xff, 0xf8, 0x00,
0x7f, 0xff, 0xe0, 0x00, 0x1f, 0xff, 0xe0, 0x00, 0x0f, 0xff, 0xc0, 0x00, 0x0f, 0xff, 0xc0, 0x00,
0x07, 0xff, 0x00, 0x00
// 0x00, 0x00, 0x03, 0xff, 0xfc, 0x00, 0x00, 0x03, 0xff, 0xfc, 0x00, 0x00, 0x0f, 0xff, 0xff, 0x00,
// 0x00, 0x0f, 0xff, 0xff, 0x00, 0x00, 0x0f, 0xff, 0xff, 0x00, 0x00, 0x0f, 0xff, 0xff, 0x00, 0x00,
// 0x0f, 0xff, 0xff, 0x00, 0x00, 0x0f, 0xff, 0xff, 0x00, 0x00, 0x0f, 0xff, 0xff, 0x00, 0x00, 0x0f,
// 0xff, 0xff, 0x00, 0x00, 0x0f, 0xff, 0xff, 0x00, 0x00, 0x0f, 0xfc, 0x00, 0x00, 0x00, 0x0f, 0xfc,
// 0x00, 0x00, 0x00, 0x0f, 0xff, 0xf0, 0x00, 0x00, 0x0f, 0xff, 0xf0, 0xc0, 0x00, 0x3f, 0xf0, 0x00,
// 0xc0, 0x00, 0x3f, 0xf0, 0x00, 0xc0, 0x01, 0xff, 0xf0, 0x00, 0xc0, 0x01, 0xff, 0xf0, 0x00, 0xf0,
// 0x0f, 0xff, 0xff, 0x00, 0xf0, 0x0f, 0xff, 0xff, 0x00, 0xfc, 0x3f, 0xff, 0xf3, 0x00, 0xfc, 0x3f,
// 0xff, 0xf3, 0x00, 0xff, 0xff, 0xff, 0xf0, 0x00, 0xff, 0xff, 0xff, 0xf0, 0x00, 0xff, 0xff, 0xff,
// 0xf0, 0x00, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x3f, 0xff, 0xff, 0xf0, 0x00, 0x3f, 0xff, 0xff, 0xc0,
// 0x00, 0x0f, 0xff, 0xff, 0xc0, 0x00, 0x0f, 0xff, 0xff, 0xc0, 0x00, 0x03, 0xff, 0xff, 0x00, 0x00,
// 0x03, 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, 0xfc, 0x00, 0x00, 0x00, 0xff, 0xfc, 0x00, 0x00
};

const unsigned char leg1 [] PROGMEM = {
0x01, 0xe7, 0x00, 0x00, 0x01, 0x87, 0x00, 0x00, 0x01, 0xe3, 0x00, 0x00, 0x01, 0xe3, 0x00, 0x00,
0x00, 0x03, 0xc0, 0x00, 0x00, 0x03, 0xc0, 0x00
// 0x00, 0x3c, 0x3c, 0x00, 0x00, 0x00, 0x30, 0x3c, 0x00, 0x00, 0x00, 0x30, 0x0c, 0x00, 0x00, 0x00,
// 0x3c, 0x0c, 0x00, 0x00, 0x00, 0x3c, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00,
// 0x0f, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00
};

const unsigned char leg2 [] PROGMEM = {
0x01, 0xf3, 0x00, 0x00, 0x01, 0xf3, 0x00, 0x00, 0x01, 0xe3, 0xc0, 0x00, 0x01, 0x83, 0xc0, 0x00,
0x01, 0xe0, 0x00, 0x00, 0x01, 0xe0, 0x00, 0x00
// 0x00, 0x3f, 0x0c, 0x00, 0x00, 0x00, 0x3f, 0x0c, 0x00, 0x00, 0x00, 0x3c, 0x0c, 0x00, 0x00, 0x00,
// 0x3c, 0x0f, 0x00, 0x00, 0x00, 0x30, 0x0f, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x3c,
// 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00
};

const unsigned char cloud_small [] PROGMEM = {
0x1f, 0x00, 0x3f, 0x80, 0x7f, 0xe0, 0xff, 0xe0, 0xff, 0xe0, 0xff, 0xe0, 0xff, 0xe0, 0x7f, 0xe0

};
const unsigned char cloud_big [] PROGMEM = {
0x0f, 0x3c, 0x00, 0x1f, 0xfe, 0x00, 0x3f, 0xff, 0x80, 0xff, 0xff, 0xc0, 0xff, 0xff, 0xc0, 0xff,
0xff, 0xc0, 0x7f, 0xff, 0xc0, 0x3f, 0xff, 0xc0

};

Why can't you?

Arduino IDE will say Arduino: 1.8.19 (Windows 10), Board: "Arduino Nano, ATmega328P"

C:\Users\nil92\AppData\Local\Temp\35cad64f-ddd8-437e-bd37-f5ced8719466_Dino-Game-Arduino-Edition-main.zip.466\Dino-Game-Arduino-Edition-main\dino_FPS\dino_FPS.ino: In function 'void button()':

dino_FPS:60:24: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillScreen(tft.Color565( 0xff, 0xff, 0xff));

                    ^~~~~~~~

                    color565

C:\Users\nil92\AppData\Local\Temp\35cad64f-ddd8-437e-bd37-f5ced8719466_Dino-Game-Arduino-Edition-main.zip.466\Dino-Game-Arduino-Edition-main\dino_FPS\dino_FPS.ino: In function 'void update_game()':

dino_FPS:109:57: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

     tft.fillRoundRect(tree_pos, 99, 4, 29, 1.5, tft.Color565( 0xff, 0xff, 0xff));

                                                     ^~~~~~~~

                                                     color565

dino_FPS:110:63: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

     tft.fillRoundRect(tree_pos - 10, 113, 20, 4, 1.5, tft.Color565( 0xff, 0xff, 0xff));

                                                           ^~~~~~~~

                                                           color565

dino_FPS:111:67: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

     tft.fillRoundRect(tree_pos - 10, 113 - 8, 4, 10, 1.5, tft.Color565( 0xff, 0xff, 0xff));

                                                               ^~~~~~~~

                                                               color565

dino_FPS:112:67: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

     tft.fillRoundRect(tree_pos + 8, 113 - 10, 4, 12, 1.5, tft.Color565( 0xff, 0xff, 0xff));

                                                               ^~~~~~~~

                                                               color565

dino_FPS:114:58: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

     tft.fillRoundRect(tree_pos, 108, 4, 20, 1.5, tft.Color565( 0xff, 0xff, 0xff));

                                                      ^~~~~~~~

                                                      color565

dino_FPS:115:62: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

     tft.fillRoundRect(tree_pos - 8, 115, 18, 4, 1.5, tft.Color565( 0xff, 0xff, 0xff));

                                                          ^~~~~~~~

                                                          color565

dino_FPS:116:66: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

     tft.fillRoundRect(tree_pos - 9, 115 - 8, 4, 10, 1.5, tft.Color565( 0xff, 0xff, 0xff));

                                                              ^~~~~~~~

                                                              color565

dino_FPS:117:66: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

     tft.fillRoundRect(tree_pos + 8, 115 - 8, 4, 10, 1.5, tft.Color565( 0xff, 0xff, 0xff));

                                                              ^~~~~~~~

                                                              color565

dino_FPS:119:63: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

     tft.fillRoundRect(tree_pos + 25, 108, 4, 20, 1.5, tft.Color565( 0xff, 0xff, 0xff));

                                                           ^~~~~~~~

                                                           color565

dino_FPS:120:67: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

     tft.fillRoundRect(tree_pos - 8 + 25, 115, 18, 4, 1.5, tft.Color565( 0xff, 0xff, 0xff));

                                                               ^~~~~~~~

                                                               color565

dino_FPS:121:71: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

     tft.fillRoundRect(tree_pos - 9 + 25, 115 - 8, 4, 10, 1.5, tft.Color565( 0xff, 0xff, 0xff));

                                                                   ^~~~~~~~

                                                                   color565

C:\Users\nil92\AppData\Local\Temp\35cad64f-ddd8-437e-bd37-f5ced8719466_Dino-Game-Arduino-Edition-main.zip.466\Dino-Game-Arduino-Edition-main\dino_FPS\dino_FPS.ino: In function 'void display_game()':

dino_FPS:143:72: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRect(dino_x, dino_y - y - 5, trunk_w + 5, trunk_l + 5, tft.Color565( 0xff, 0xff, 0xff)); //clearing extra bits

                                                                    ^~~~~~~~

                                                                    color565

dino_FPS:145:79: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRect(dino_x, dino_y - y + trunk_l - 5, leg_w + 5, leg_l + 10, tft.Color565( 0xff, 0xff, 0xff));

                                                                           ^~~~~~~~

                                                                           color565

dino_FPS:154:68: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

   tft.fillRect(dino_x, dino_y - y + trunk_l, leg_w, leg_l, tft.Color565( 0xff, 0xff, 0xff));

                                                                ^~~~~~~~

                                                                color565

dino_FPS:160:68: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

   tft.fillRect(dino_x, dino_y - y + trunk_l, leg_w, leg_l, tft.Color565( 0xff, 0xff, 0xff));

                                                                ^~~~~~~~

                                                                color565

dino_FPS:168:53: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(tree_pos, 99, 4, 29, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                 ^~~~~~~~

                                                 color565

dino_FPS:169:59: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(tree_pos - 10, 113, 20, 4, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                       ^~~~~~~~

                                                       color565

dino_FPS:170:63: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(tree_pos - 10, 113 - 8, 4, 10, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                           ^~~~~~~~

                                                           color565

dino_FPS:171:63: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(tree_pos + 8, 113 - 10, 4, 12, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                           ^~~~~~~~

                                                           color565

dino_FPS:173:54: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(tree_pos, 108, 4, 20, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                  ^~~~~~~~

                                                  color565

dino_FPS:174:58: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(tree_pos - 8, 115, 18, 4, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                      ^~~~~~~~

                                                      color565

dino_FPS:175:62: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(tree_pos - 9, 115 - 8, 4, 10, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                          ^~~~~~~~

                                                          color565

dino_FPS:176:62: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(tree_pos + 8, 115 - 8, 4, 10, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                          ^~~~~~~~

                                                          color565

dino_FPS:178:59: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(tree_pos + 25, 108, 4, 20, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                       ^~~~~~~~

                                                       color565

dino_FPS:179:63: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(tree_pos - 8 + 25, 115, 18, 4, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                           ^~~~~~~~

                                                           color565

dino_FPS:180:67: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(tree_pos - 9 + 25, 115 - 8, 4, 10, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                               ^~~~~~~~

                                                               color565

dino_FPS:189:17: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 color = tft.Color565(  0xff,  0xff,  0xff); // to avoid stray pixels due to border effects

             ^~~~~~~~

             color565

dino_FPS:213:64: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(cloud_pos, cloud_height, 18, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                            ^~~~~~~~

                                                            color565

dino_FPS:216:64: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(cloud_pos, cloud_height, 11, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                            ^~~~~~~~

                                                            color565

dino_FPS:223:64: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(cloud_pos, cloud_height, 18, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                            ^~~~~~~~

                                                            color565

dino_FPS:225:64: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(cloud_pos, cloud_height, 11, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                            ^~~~~~~~

                                                            color565

dino_FPS:232:64: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(cloud_pos, cloud_height, 18, 8, 1.5, tft.Color565(  0x80,  0x80,  0x80));

                                                            ^~~~~~~~

                                                            color565

dino_FPS:235:64: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(cloud_pos, cloud_height, 11, 8, 1.5, tft.Color565(  0x80,  0x80,  0x80));

                                                            ^~~~~~~~

                                                            color565

dino_FPS:243:66: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(cloud_pos1, cloud_height1, 18, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                              ^~~~~~~~

                                                              color565

dino_FPS:246:66: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(cloud_pos1, cloud_height1, 11, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                              ^~~~~~~~

                                                              color565

dino_FPS:253:66: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(cloud_pos1, cloud_height1, 18, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                              ^~~~~~~~

                                                              color565

dino_FPS:255:66: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(cloud_pos1, cloud_height1, 11, 8, 1.5, tft.Color565(  0xff,  0xff,  0xff));

                                                              ^~~~~~~~

                                                              color565

dino_FPS:262:66: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(cloud_pos1, cloud_height1, 18, 8, 1.5, tft.Color565(  0x80,  0x80,  0x80));

                                                              ^~~~~~~~

                                                              color565

dino_FPS:265:66: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRoundRect(cloud_pos1, cloud_height1, 11, 8, 1.5, tft.Color565(  0x80,  0x80,  0x80));

                                                              ^~~~~~~~

                                                              color565

C:\Users\nil92\AppData\Local\Temp\35cad64f-ddd8-437e-bd37-f5ced8719466_Dino-Game-Arduino-Edition-main.zip.466\Dino-Game-Arduino-Edition-main\dino_FPS\dino_FPS.ino: In function 'void setup()':

dino_FPS:293:22: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

tft.fillScreen(tft.Color565( 0xff, 0xff, 0xff));

                  ^~~~~~~~

                  color565

C:\Users\nil92\AppData\Local\Temp\35cad64f-ddd8-437e-bd37-f5ced8719466_Dino-Game-Arduino-Edition-main.zip.466\Dino-Game-Arduino-Edition-main\dino_FPS\dino_FPS.ino: In function 'void loop()':

dino_FPS:322:48: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 drawBitmap(10, 97+25,leg1,leg_w,leg_l, tft.Color565(  0xff,  0xff,  0xff));

                                            ^~~~~~~~

                                            color565

dino_FPS:325:48: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 drawBitmap(10, 97+25,leg2,leg_w,leg_l, tft.Color565(  0xff,  0xff,  0xff));

                                            ^~~~~~~~

                                            color565

dino_FPS:328:37: error: 'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

 tft.fillRect(80, 2, 80, 15, tft.Color565(  0xff,  0xff,  0xff));

                                 ^~~~~~~~

                                 color565

Multiple libraries were found for "Adafruit_ST7735.h"

Used: C:\Users\nil92\Documents\Arduino\libraries\Adafruit_ST7735_and_ST7789_Library

Not used: C:\Users\nil92\Documents\Arduino\libraries\Adafruit_ST7735_and_ST7789_Library-1.10.4

Not used: C:\Users\nil92\Documents\Arduino\libraries\Adafruit-ST7735-Library-master

exit status 1

'class Adafruit_ST7735' has no member named 'Color565'; did you mean 'color565'?

Invalid library found in C:\Users\nil92\Documents\Arduino\libraries\Arduino-libraries-master: no headers files (.h) found in C:\Users\nil92\Documents\Arduino\libraries\Arduino-libraries-master

Invalid library found in C:\Users\nil92\Documents\Arduino\libraries\atmegabreadboard-master: no headers files (.h) found in C:\Users\nil92\Documents\Arduino\libraries\atmegabreadboard-master

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Sometimes older code uses older libraries or libraries from other sources.
Where did you get your code and how old is it?

I had a similar code compile error and as above, changing the "C" to "c" allowed it to compile without any error.
Cannot remember if it worked after that or not, too long ago.

I can't use this code in arduino Nano

  • Wow, that’s a very interesting way of asking for help.
    Did you read the posting guidelines ?

I cant use this code to 1.44 lcd st7735

It is an old problem: https://forum.arduino.cc/t/color565-error-adafruit-st7735/617381
I could not find the origin of Color565() with a capital 'C', it might have to do with a previous version of the library.

I suggest to update everything to the newest version and look at examples of the libraries.

Arduino is for learning about electronics and writing code. If you grab just any code and put it on an Arduino board then it only works if you are lucky. In most cases the hardware and software need some attention.

I rolled back the library several times before going all the way back to 1.1.0. It then compiled fine. You will have to contact the library author or support staff to fix the library. An alternate suggestion is to NOT use that library, find another one that is current. I searched the Library Manager on 7735 and found a few. This solves the issue, please mark this post as so.

Which one...???

A few, just enter 7735 in the search bar. It doesn't mean any will work and they are all probably not compatible with the sketch, but if the OP can't wait for the current library to be fixed, then he may be prepared to modify his code to work with another library. I leave it to the OP to report the error.