Micro switching from com4 port com5 while uploading code

I have some code that isnt too long but has considerable length. The code works fine & uploads without an issue on my uno but my micro is disconnecting while i am uploading this script. When i upload a small sketch like fading it does the fading script & after a couple of seconds its stops the fading. Any ideas?

Edit: I sent this exact same code to the uno and the code ran correctly. This time the arduino micro appeared on COM7. While completing it went to COM6 and then back to COM7 without running the code correctly. When the Arduino micro switched from COM7 to COM8 three lights were on the built in led (PIN13) and the RX & TX lights.
Code here:

//included libraries
#include "SPI.h" //Includes library for SPI communication of display
#include "Adafruit_GFX.h" //Includes core graphics library
#include "Adafruit_SSD1351.h" //Includes hardware specific library

extern const uint16_t WhiteSquare[];
extern const uint16_t LBlock_R1[];
extern const uint16_t thumbsup48[];
//screen dimensions
#define SCREEN_WIDTH 128 //pixel width
#define SCREEN_HEIGHT 128 //pixel height

//pin definitions
#define SCLK_PIN 13 //defines s clock pin
#define MOSI_PIN 11 //defines master-out slave-in SDA pin
#define RST_PIN   3 //defines reset pin
#define DC_PIN    5 //defines master-in slave-out pin
#define CS_PIN    4 //defines chip select pin

// Colour definitions
#define BLACK           0x0000
#define BLUE            0x001F
#define RED             0xF800
#define GREEN           0x07E0
#define CYAN            0x07FF
#define MAGENTA         0xF81F
#define YELLOW          0xFFE0  
#define WHITE           0xFFFF
#define GREY            0x8410
#define ORANGE          0xE880

Adafruit_SSD1351 display = Adafruit_SSD1351(SCREEN_WIDTH, SCREEN_HEIGHT, &SPI, CS_PIN, DC_PIN, RST_PIN);

void setup() {
  display.begin();
  display.fillScreen(BLACK);
  display.setTextSize(3);
}

void loop() {
  display.drawRGBBitmap(30,30,thumbsup48,48,48);
  //display.drawRGBBitmap(0,0,LBlock_R1,3,3);

  display.setCursor(1, 1);
  display.setTextColor(WHITE);
  //display.print(1234);
  delay(100);
  for (int x = 1; x<128; x+=3) {
    for (int y= 1; y<128; y+=3){
      draw3x3(x,y);
      delay(10);
      display.fillScreen(BLACK);
    }
  }
  //delay(1000);
}
void draw3x3(int x, int y) {
  for (int xA = x-2; xA<x+2; xA++){
    for (int yA = y-2; yA<y+2; yA++ ){
      display.drawPixel(xA,yA,WHITE);
    }
  }
}

Second page of code:

// Generated by   : ImageConverter 565 Online
// Generated from : Black 3x3.png
// Time generated : Tue, 26 Dec 23 03:55:45 +0100  (Server timezone: CET)
// Image Size     : 3x3 pixels
// Memory usage   : 18 bytes


#if defined(__AVR__)
    #include <avr/pgmspace.h>
#elif defined(__PIC32MX__)
    #define PROGMEM
#elif defined(__arm__)
    #define PROGMEM
#endif

const unsigned short WhiteSquare[9] PROGMEM={
0xFFFF, 0xFFFF, 0xFFFF, 
0xFFFF, 0xFFFF, 0xFFFF, 
0xFFFF, 0xFFFF, 0xFFFF
};
const unsigned short LBlock_R1[9] PROGMEM={
0x0000, 0xFFFF, 0xFFFF, 
0x0000, 0x0000, 0xFFFF, 
0x0000, 0x0000, 0xFFFF
};
const unsigned short thumbsup48[2304] PROGMEM={
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0010 (16) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0020 (32) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0030 (48) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0040 (64) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0050 (80) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0060 (96) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0070 (112) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0080 (128) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0090 (144) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x00A0 (160) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x00B0 (176) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x00C0 (192) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x00D0 (208) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF5A3, 0xF582, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x00E0 (224) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x00F0 (240) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0100 (256) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF5E2, 0xF5C3, 0xF5C3, 0xF5A2, 0xFDA4, 0x0000, 0x0000,   // 0x0110 (272) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0120 (288) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0130 (304) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE03, 0xFE03, 0xF5E3, 0xF5C3, 0xF5A2, 0x0000, 0x0000,   // 0x0140 (320) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0150 (336) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0160 (352) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE44, 0xFE23, 0xFE03, 0xF603, 0xF5E3, 0xFBE0, 0x0000,   // 0x0170 (368) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0180 (384) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0190 (400) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFDE7, 0xFE44, 0xFE44, 0xFE24, 0xFE23, 0xFE03, 0xFE03, 0x0000,   // 0x01A0 (416) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x01B0 (432) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x01C0 (448) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE64, 0xFE64, 0xFE64, 0xFE64, 0xFE44, 0xFE23, 0xFE03, 0x0000,   // 0x01D0 (464) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x01E0 (480) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x01F0 (496) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFFE0, 0xFE84, 0xFE84, 0xFE64, 0xFE64, 0xFE64, 0xFE44, 0xFE24, 0x0000,   // 0x0200 (512) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0210 (528) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0220 (544) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE85, 0xFE85, 0xFE84, 0xFE84, 0xFE84, 0xFE64, 0xFE64, 0xFE44, 0x0000,   // 0x0230 (560) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0240 (576) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0250 (592) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE86, 0xFE86, 0xFEA5, 0xFE85, 0xFE84, 0xFE84, 0xFE84, 0xFE64, 0xFE44, 0x0000,   // 0x0260 (608) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0270 (624) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0280 (640) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0xFE66, 0xFEA7, 0xFEA7, 0xFEA6, 0xFEA6, 0xFEA5, 0xFE85, 0xFE85, 0xFE84, 0xFE64, 0xFDE3, 0x0000,   // 0x0290 (656) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x02A0 (672) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x02B0 (688) pixels
0x0000, 0x0000, 0x0000, 0xFEA8, 0xFEA8, 0xFEA8, 0xFEA7, 0xFEA7, 0xFEA6, 0xFEA6, 0xFEA5, 0xFE85, 0xFE84, 0xFE84, 0x0000, 0x0000,   // 0x02C0 (704) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x02D0 (720) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x02E0 (736) pixels
0x0000, 0xFFEA, 0xFEC9, 0xFEC9, 0xFEC8, 0xFEC8, 0xFEC8, 0xFEA7, 0xFEA7, 0xFEA6, 0xFEA6, 0xFEA5, 0xFE85, 0xFE84, 0x0000, 0x0000,   // 0x02F0 (752) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0300 (768) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0310 (784) pixels
0xFECA, 0xFECA, 0xFECA, 0xFEC9, 0xFEC9, 0xFEC9, 0xFEC8, 0xFEC8, 0xFEA7, 0xFEA7, 0xFEA6, 0xFEA6, 0xFE85, 0xFE84, 0x0000, 0x0000,   // 0x0320 (800) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0330 (816) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFEEA,   // 0x0340 (832) pixels
0xFECA, 0xFEEA, 0xFEEA, 0xFEEA, 0xFECA, 0xFEC9, 0xFEC9, 0xFEC8, 0xFEC8, 0xFEA7, 0xFEA7, 0xFEA6, 0xFE85, 0x0000, 0x0000, 0x0000,   // 0x0350 (848) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0360 (864) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFEEA, 0xFEEB,   // 0x0370 (880) pixels
0xFEEB, 0xFEEB, 0xFEEB, 0xFEEB, 0xFEEA, 0xFECA, 0xFEC9, 0xFEC9, 0xFEC8, 0xFEA8, 0xFEA7, 0xFEA6, 0xFEA6, 0xFE66, 0x0000, 0x0000,   // 0x0380 (896) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0390 (912) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE8B, 0xFEEA, 0xFEEB, 0xFEEB,   // 0x03A0 (928) pixels
0xFEEC, 0xFEEC, 0xFEEC, 0xFEEB, 0xFEEB, 0xFECA, 0xFECA, 0xFEC9, 0xFEC8, 0xFEA8, 0xFEA7, 0xFEA7, 0xFEA6, 0xFE65, 0xFE44, 0xFE44,   // 0x03B0 (944) pixels
0xFE24, 0xF5C3, 0xEDA3, 0xED63, 0xED63, 0xED63, 0xF5A3, 0xF5C3, 0xF5A2, 0xFFE0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x03C0 (960) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF626, 0xFE46, 0xFEA7, 0xFEC8, 0xFEC9, 0xFEC9, 0xFEEA, 0xFEEB, 0xFEEB, 0xFEEC,   // 0x03D0 (976) pixels
0xFEEC, 0xFF0D, 0xFEEC, 0xFF0C, 0xFEEC, 0xFEEB, 0xFEEA, 0xFEC9, 0xFEC9, 0xFEA8, 0xFEA7, 0xFE66, 0xF625, 0xF5A4, 0xED63, 0xED43,   // 0x03E0 (992) pixels
0xF583, 0xF5E4, 0xFE24, 0xFE85, 0xFE85, 0xFE85, 0xFE84, 0xFE64, 0xFE24, 0xF5E3, 0xFCE3, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x03F0 (1008) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE45, 0xFE25, 0xFE46, 0xFE87, 0xFEA8, 0xFEC9, 0xFECA, 0xFEEA, 0xFEEB, 0xFEEB, 0xFF0C,   // 0x0400 (1024) pixels
0xFF0D, 0xFF0D, 0xFF0D, 0xFF0D, 0xFF0C, 0xFEEB, 0xFECA, 0xFEC9, 0xFEC9, 0xFEA8, 0xFE67, 0xF605, 0xF5A4, 0xED23, 0xED63, 0xFE44,   // 0x0410 (1040) pixels
0xFE84, 0xFEA6, 0xFEA8, 0xFEC9, 0xFEC9, 0xFEC9, 0xFEC7, 0xFEA5, 0xFE84, 0xFE24, 0xF5C3, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0420 (1056) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF625, 0xFE45, 0xFE46, 0xFE87, 0xFEA8, 0xFEC9, 0xFEC9, 0xFEEA, 0xFEEB, 0xFEEC, 0xFF0C,   // 0x0430 (1072) pixels
0xFF0D, 0xFF0D, 0xFF0D, 0xFF0D, 0xFF0C, 0xFEEC, 0xFEEA, 0xFEC9, 0xFEA8, 0xFE87, 0xFE46, 0xF5E5, 0xED64, 0xED23, 0xFE04, 0xFE84,   // 0x0440 (1088) pixels
0xFEA7, 0xFEC9, 0xFEEB, 0xFEEC, 0xFEEC, 0xFEEC, 0xFEEA, 0xFEC8, 0xFEA6, 0xFE64, 0xF5E3, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0450 (1104) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF624, 0xFE45, 0xFE46, 0xFE87, 0xFEA8, 0xFEC9, 0xFEC9, 0xFECA, 0xFEEB, 0xFEEC, 0xFF0D,   // 0x0460 (1120) pixels
0xFF0D, 0xFF0D, 0xFF0D, 0xFF0D, 0xFEEC, 0xFEEB, 0xFEEA, 0xFEC9, 0xFEA8, 0xFE87, 0xFE46, 0xF5C4, 0xED44, 0xED23, 0xFE44, 0xFE85,   // 0x0470 (1136) pixels
0xFEA8, 0xFECA, 0xFEEC, 0xFF0D, 0xFF0D, 0xFEEC, 0xFEEB, 0xFEC9, 0xFEA6, 0xFE64, 0xF5E3, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0480 (1152) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE24, 0xFE45, 0xFE46, 0xFE86, 0xFEC8, 0xFEC8, 0xFEC9, 0xFECA, 0xFEEB, 0xFEEC, 0xFF0D,   // 0x0490 (1168) pixels
0xFF0D, 0xFF0D, 0xFF0D, 0xFF0C, 0xFEEC, 0xFEEB, 0xFEC9, 0xFEA8, 0xFE87, 0xFE87, 0xFE26, 0xF5C4, 0xED64, 0xED23, 0xFE23, 0xFE84,   // 0x04A0 (1184) pixels
0xFEA6, 0xFEC8, 0xFEEA, 0xFEEB, 0xFEEB, 0xFEEA, 0xFEC9, 0xFEA7, 0xFE85, 0xFE44, 0xF5C3, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x04B0 (1200) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE24, 0xFE45, 0xFE45, 0xFE86, 0xFEA7, 0xFEC8, 0xFEC9, 0xFEC9, 0xFEEB, 0xFEEC, 0xFEEC,   // 0x04C0 (1216) pixels
0xFEEC, 0xFEED, 0xFF0D, 0xFEEC, 0xFEEB, 0xFEC9, 0xFEC9, 0xFE67, 0xFE87, 0xFE87, 0xFE46, 0xF5E5, 0xED64, 0xED23, 0xED83, 0xFE64,   // 0x04D0 (1232) pixels
0xFE84, 0xFEA5, 0xFEA6, 0xFEA7, 0xFEA7, 0xFEA6, 0xFE85, 0xFE84, 0xFE44, 0xF5E3, 0xF562, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x04E0 (1248) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE24, 0xFE45, 0xFE45, 0xFE86, 0xFEA7, 0xFEC8, 0xFEC8, 0xFEC9, 0xFEEA, 0xFEEB, 0xFEEC,   // 0x04F0 (1264) pixels
0xFF0C, 0xFEEC, 0xFEEB, 0xFEEA, 0xFEC9, 0xFEC9, 0xFE67, 0xFE67, 0xFEA7, 0xFE87, 0xFE46, 0xF5E4, 0xED84, 0xED43, 0xE503, 0xED63,   // 0x0500 (1280) pixels
0xF5E3, 0xFE23, 0xFE44, 0xFE44, 0xFE44, 0xFE44, 0xFE24, 0xFE03, 0xF5A2, 0xED62, 0xF562, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0510 (1296) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE24, 0xFE44, 0xFE45, 0xFE66, 0xFEA6, 0xFEA7, 0xFEC8, 0xFEC8, 0xFEC9, 0xFEEA, 0xFEEB,   // 0x0520 (1312) pixels
0xFEEB, 0xFEEA, 0xFEEA, 0xFEC9, 0xFEC9, 0xFE87, 0xFE46, 0xFEA7, 0xFEA7, 0xFE66, 0xFE25, 0xF5C4, 0xED63, 0xED23, 0xED62, 0xF5E3,   // 0x0530 (1328) pixels
0xFE23, 0xFE44, 0xFE44, 0xFE44, 0xFE44, 0xFE24, 0xFE03, 0xF5C3, 0xF582, 0xF562, 0xED62, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0540 (1344) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE24, 0xFE44, 0xFE44, 0xFE65, 0xFE86, 0xFEA7, 0xFEA7, 0xFEA7, 0xFEC8, 0xFEC9, 0xFEC9,   // 0x0550 (1360) pixels
0xFEC9, 0xFEC9, 0xFEC8, 0xFEA8, 0xFE66, 0xFE66, 0xFEA7, 0xFEA7, 0xFE86, 0xFE45, 0xF5E4, 0xED84, 0xED43, 0xED83, 0xFE44, 0xFE64,   // 0x0560 (1376) pixels
0xFE84, 0xFEA6, 0xFEA7, 0xFEA7, 0xFEA7, 0xFEA5, 0xFE84, 0xFE64, 0xFE23, 0xF5C3, 0xED62, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0570 (1392) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF624, 0xFE24, 0xFE44, 0xFE65, 0xFE86, 0xFEA6, 0xFEA7, 0xFEA7, 0xFEA7, 0xFEA7, 0xFEA8,   // 0x0580 (1408) pixels
0xFEC8, 0xFEA8, 0xFE87, 0xFE46, 0xFE66, 0xFEA7, 0xFEA7, 0xFEA6, 0xFE86, 0xFE45, 0xF5C4, 0xED63, 0xED23, 0xFE24, 0xFE84, 0xFEA6,   // 0x0590 (1424) pixels
0xFEC8, 0xFECA, 0xFEEB, 0xFEEB, 0xFEEB, 0xFEEA, 0xFEC8, 0xFEA6, 0xFE64, 0xFE23, 0xF5C3, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x05A0 (1440) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF604, 0xFE24, 0xFE44, 0xFE64, 0xFE85, 0xFEA6, 0xFEA6, 0xFEA6, 0xFEA6, 0xFE86, 0xFE66,   // 0x05B0 (1456) pixels
0xFE66, 0xFE45, 0xFE45, 0xFE86, 0xFEA7, 0xFEA6, 0xFEA6, 0xFE86, 0xFE85, 0xFE25, 0xF5C4, 0xED63, 0xED23, 0xFE24, 0xFE85, 0xFEC8,   // 0x05C0 (1472) pixels
0xFECA, 0xFEEB, 0xFEEC, 0xFF0C, 0xFEEC, 0xFEEB, 0xFECA, 0xFEA7, 0xFE85, 0xFE64, 0xF5E3, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x05D0 (1488) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF603, 0xFE24, 0xFE24, 0xFE44, 0xFE84, 0xFE85, 0xFEA5, 0xFEA6, 0xFEA6, 0xFE65, 0xFE66,   // 0x05E0 (1504) pixels
0xFE66, 0xFEA7, 0xFEA7, 0xFEA7, 0xFEA6, 0xFEA6, 0xFEA5, 0xFE85, 0xFE85, 0xFE44, 0xF5E4, 0xED84, 0xED23, 0xF5A3, 0xFE85, 0xFEA7,   // 0x05F0 (1520) pixels
0xFEC9, 0xFEEB, 0xFEEC, 0xFEEC, 0xFEEB, 0xFECA, 0xFEC8, 0xFEA6, 0xFE84, 0xFE64, 0xFFE0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0600 (1536) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF603, 0xF624, 0xFE24, 0xFE44, 0xFE64, 0xFE84, 0xFE85, 0xFE85, 0xFEA6, 0xFEA7, 0xFEC8,   // 0x0610 (1552) pixels
0xFEC8, 0xFEC8, 0xFEC8, 0xFEC8, 0xFEA7, 0xFEA6, 0xFEA5, 0xFE85, 0xFE85, 0xFE44, 0xF5E4, 0xED83, 0xED43, 0xE4E3, 0xF5A3, 0xFE45,   // 0x0620 (1568) pixels
0xFE66, 0xFE87, 0xFE87, 0xFE88, 0xFE87, 0xFE66, 0xFE65, 0xFE44, 0xF5C3, 0xF582, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0630 (1584) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF5E3, 0xF603, 0xF624, 0xFE24, 0xFE44, 0xFE64, 0xFE84, 0xFE85, 0xFEA6, 0xFEA7, 0xFEC9,   // 0x0640 (1600) pixels
0xFEC9, 0xFECA, 0xFECA, 0xFEC9, 0xFEC8, 0xFEA7, 0xFE86, 0xFE85, 0xFE65, 0xFE25, 0xF5C4, 0xED63, 0xE523, 0xF582, 0xF5E3, 0xFE23,   // 0x0650 (1616) pixels
0xFE44, 0xFE64, 0xFE64, 0xFE64, 0xFE44, 0xFE23, 0xF5E3, 0xF582, 0xF562, 0xED62, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0660 (1632) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF5C3, 0xF5E3, 0xF603, 0xFE24, 0xFE44, 0xFE44, 0xFE44, 0xFE65, 0xFE86, 0xFEA8, 0xFEC9,   // 0x0670 (1648) pixels
0xFECA, 0xFECA, 0xFECA, 0xFECA, 0xFECA, 0xFEC9, 0xFEA7, 0xFE66, 0xFE44, 0xF5E4, 0xED84, 0xED23, 0xF5A3, 0xFE44, 0xFE64, 0xFEA5,   // 0x0680 (1664) pixels
0xFEA7, 0xFEC8, 0xFEC8, 0xFEA8, 0xFEA7, 0xFE85, 0xFE64, 0xFE23, 0xF5C3, 0xF562, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0690 (1680) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF5A3, 0xF5C3, 0xF5E3, 0xF603, 0xFE03, 0xFE23, 0xFE24, 0xFE44, 0xFE66, 0xFE87, 0xFEA9,   // 0x06A0 (1696) pixels
0xFEC9, 0xFECA, 0xFECA, 0xFECA, 0xFECA, 0xFEC9, 0xFEA7, 0xFE86, 0xFE25, 0xF5C4, 0xED64, 0xE523, 0xFE23, 0xFE84, 0xFEA7, 0xFEC9,   // 0x06B0 (1712) pixels
0xFEEB, 0xFEEB, 0xFEEC, 0xFEEB, 0xFEEB, 0xFEC9, 0xFEA6, 0xFE84, 0xFE23, 0xF582, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x06C0 (1728) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF5A2, 0xF5A3, 0xF5C3, 0xF5C3, 0xF5E3, 0xF5E3, 0xF5E3, 0xFE03, 0xFE25, 0xFE66, 0xFE88,   // 0x06D0 (1744) pixels
0xFEA9, 0xFEC9, 0xFEC9, 0xFEC9, 0xFEC9, 0xFEA8, 0xFE87, 0xFE66, 0xF625, 0xF5C4, 0xED63, 0xE503, 0xFE04, 0xFE84, 0xFEA7, 0xFECA,   // 0x06E0 (1760) pixels
0xFEEB, 0xFF0C, 0xFF0D, 0xFEEC, 0xFEEB, 0xFEC9, 0xFEA7, 0xFE84, 0xFE23, 0xF5A3, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x06F0 (1776) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF5A1, 0xF582, 0xF5A3, 0xF5A3, 0xF5A3, 0xF5C3, 0xF5C3, 0xF5E3, 0xF5E3, 0xF605, 0xFE46,   // 0x0700 (1792) pixels
0xFE67, 0xFE88, 0xFEA8, 0xFEA8, 0xFE88, 0xFE67, 0xFE66, 0xFE45, 0xF604, 0xF5E4, 0xED84, 0xED23, 0xED63, 0xFE84, 0xFE85, 0xFEA7,   // 0x0710 (1808) pixels
0xFEC9, 0xFECA, 0xFEEA, 0xFECA, 0xFEC9, 0xFEA7, 0xFE85, 0xFE64, 0xF603, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0720 (1824) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFBE0, 0xF5C3, 0xF5A3, 0xF5C3, 0xF5C3, 0xF5C3, 0xF5E4,   // 0x0730 (1840) pixels
0xF605, 0xFE25, 0xFE46, 0xFE46, 0xFE45, 0xFE25, 0xFE04, 0xF604, 0xF5E4, 0xF5E4, 0xF5A4, 0xED63, 0xE523, 0xED63, 0xF603, 0xFE44,   // 0x0740 (1856) pixels
0xFE65, 0xFE65, 0xFE65, 0xFE45, 0xFE44, 0xFE44, 0xFE03, 0xFE23, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0750 (1872) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF5A2, 0xF5A3, 0xF5A3, 0xF5A3,   // 0x0760 (1888) pixels
0xF5C3, 0xF5C3, 0xF5E3, 0xF5E3, 0xF5C3, 0xF5C3, 0xF5C3, 0xF5E3, 0xF5E4, 0xF5C4, 0xED84, 0xED23, 0xED83, 0xFE64, 0xFE84, 0xFE85,   // 0x0770 (1904) pixels
0xFE85, 0xFE85, 0xFE84, 0xFE64, 0xFE24, 0xF5C3, 0xF562, 0xEDA2, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0780 (1920) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xF562, 0xED82, 0xF582,   // 0x0790 (1936) pixels
0xF582, 0xF582, 0xF583, 0xF583, 0xF582, 0xF5A2, 0xF583, 0xF5A3, 0xF5C4, 0xED84, 0xED63, 0xED23, 0xFE44, 0xFEA5, 0xFEC8, 0xFEEB,   // 0x07A0 (1952) pixels
0xFEEB, 0xFEEB, 0xFEEB, 0xFEC8, 0xFE85, 0xFE44, 0xF5C3, 0xFD40, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x07B0 (1968) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xED42, 0xED42,   // 0x07C0 (1984) pixels
0xED42, 0xED62, 0xED62, 0xED62, 0xED62, 0xED62, 0xED62, 0xF583, 0xF5A3, 0xED84, 0xED43, 0xE503, 0xFE24, 0xFEA6, 0xFEC9, 0xFEEB,   // 0x07D0 (2000) pixels
0xFF0D, 0xFEEC, 0xFEEB, 0xFEC9, 0xFEA5, 0xFE64, 0xF603, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x07E0 (2016) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x07F0 (2032) pixels
0xED42, 0xED42, 0xED42, 0xED42, 0xED42, 0xED42, 0xED42, 0xED62, 0xED83, 0xED83, 0xED83, 0xED43, 0xED83, 0xFE85, 0xFEA7, 0xFEC8,   // 0x0800 (2048) pixels
0xFEC9, 0xFEC8, 0xFEA7, 0xFEA6, 0xFE84, 0xFE44, 0xFDA4, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0810 (2064) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0820 (2080) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0xFE43, 0xFE84, 0xFE84,   // 0x0830 (2096) pixels
0xFE84, 0xFE84, 0xFE64, 0xFE64, 0xF5E3, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0840 (2112) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0850 (2128) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0860 (2144) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0870 (2160) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0880 (2176) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0890 (2192) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x08A0 (2208) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x08B0 (2224) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x08C0 (2240) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x08D0 (2256) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x08E0 (2272) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x08F0 (2288) pixels
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,   // 0x0900 (2304) pixels
};

Please show the code

It is normal for a Arduino Micro to change COM ports during the upload. When you perform an upload, the IDE will (attempt to) reset the board by opening and closing the serial port with a baud rate of 1200; the first thing after the board resets is that it runs the boot loader for approximately 8 seconds. You can see that the boot loader is active by observing the L-LED; it will fade in- and out.

If you monitor it in Windows device manager, you will see the change (the port will change as well as the name 'Arduino Micro' will change to something like 'Arduino Micro (boot loader)' and back once the upload is complete or the boot loader times out.

Based on your comment i am presuming that the bootloader times out, but only after 1 minute unlike my uno which doesn't do that. I modified some code from this video https://youtu.be/fQ3vFvVXiG4?si=WB5RtneLTUEDzimT I currently do not have access to my computer. so the basic part of the code is in the description of the video if the code might me the problem leave any suggestions. Thanks.

We will wait till you're back so you can show your fading script. The youtube is not your fading script (as far as I can see).

I wasnt using the fading script it was an example for a working script. The script in the video is what i intend to use. The fading script i used is the basic script. Included in the arduino ide.

In your opening post your wrote the below

So my conclusion is that it is not working as expected. I've now loaded the fade sketch after changing the led pin to LED_BUILTIN and it has happily be fading for the last 10 minutes.

OK, we'll wait for your version of the sketch as well as a description of what it does as compared to what you expect it to do. You might want to present a wiring diagram as well.

How do i do wiring diagrams and upload them to the forum? The description from reading the code might be adequate, The screen i am using is a 1.5 inch OLED SSD1351 RGB if that helps.

Your can draw with pencil on paper and take a photo. Next add the photo in a reply by e.g. dragging it or pasting it in the reply.

I suspect that you do not yet have reached the required forum's trust level to be able to do this; see e.g. 9V Wall Adapter Doesn't Power Arduino Mega - #17 by UKHeliBob how to get to the next trust level.

The wiring is literally as the code says just wires no resisters or anything. 13-SCL(Display) ,11-SDA,3-RST,5-DC,4-CS. The link to the display is here for a look. Duinotech Arduino Compatible 1.5 Inch Colour OLED Display | Jaycar Electronics

The code that you now have presented does not compile. Is that what your problem is?

  1. You did not include the file with the bitmaps in the main sketch; so that was the first problem.
  2. uint16_t and unsigned short seem to be a conflict though I'm not sure why that would be.
  3. The Adafruit library does not like the unsigned short; again not sure why.
  4. You don't need the extern in this code.

You need to change

const unsigned short thumbsup48[2304] PROGMEM ={

to

const uint16_t thumbsup48[2304] PROGMEM ={

You can also change the other two bitmaps. I called the file (the second page) 'bitmaps.h'

In the main sketch you should include 'bitmaps.h' and you can uncomment the extern

/included libraries
#include "SPI.h" //Includes library for SPI communication of display
#include "Adafruit_GFX.h" //Includes core graphics library
#include "Adafruit_SSD1351.h" //Includes hardware specific library

#include "bitmaps.h"


//extern const uint16_t WhiteSquare[];
//extern const uint16_t LBlock_R1[];
//extern const uint16_t thumbsup48[];

//screen dimensions
#define SCREEN_WIDTH 128 //pixel width
#define SCREEN_HEIGHT 128 //pixel height
...
...

And I think that that was it.

I can't test but at least it now compiles.

i can not find the extension "bitmaps.h" inside the library manager is it under a different name? You were right about the const unsigned short thumbsup48[2304] PROGMEM ={ as it was causing an error and using const uint16_t thumbsup48[2304] PROGMEM ={ didn't fix it either. The error i am getting now is

 const uint16_t WhiteSquare[9] PROGMEM={
       ^~~~~~~~
picture.c:16:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
 const uint16_t WhiteSquare[9] PROGMEM={
                               ^~~~~~~
picture.c:21:7: error: unknown type name 'uint16_t'
 const uint16_t LBlock_R1[9] PROGMEM={
       ^~~~~~~~
picture.c:21:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
 const uint16_t LBlock_R1[9] PROGMEM={
                             ^~~~~~~
picture.c:26:8: error: unknown type name 'uint16_t'
 const  uint16_t thumbsup48[2304] PROGMEM={
        ^~~~~~~~
picture.c:26:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PROGMEM'
 const  uint16_t thumbsup48[2304] PROGMEM={
                                  ^~~~~~~
exit status 1
unknown type name 'uint16_t'

It's what you referred to as "second page". I did have to give it a name and you did not state what the name of that second page was :wink:

Is that the name of the second page? If so, rename the file to 'picture.h' and include that in the main ino file. Instead of #include "bitmaps.h" as I demonstrated, use #include "picture.h".

A different error now.

 #include "picture.h"
          ^~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: picture.h: No such file or directory

My Arduino uno is also now turning off every time I connect the VCC and GND pins to power, It is not shorting as that would cause it to turn off instantly, it turns of slowly (The power light fades) when I connect the power pins.

Is the second tab called picture.h?

Please upload all files of your project here as attachment.

That indicates that the bootloader on the board is active. It should stop after approximately 8 seconds.
Can you still upload a simple example like blink?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.