_MSB;
  hspi1.Init.TIMode = SPI_TIMODE_DISABLE;
  hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
  hspi1.Init.CRCPolynomial = 10;

Display Init: (I simplified this section of code on purpose) 
 void OLED_Init(void) 
{
  HAL_GPIO_WritePin(GPIOE, GPIO_PIN_5, GPIO_PIN_RESET);
  HAL_Delay(500);
  HAL_GPIO_WritePin(GPIOE, GPIO_PIN_5, GPIO_PIN_SET);
  HAL_Delay(500);

  oled_Command(0x04);                       
  oled_Data(0x03);                                                //Set Normal Driving Current          
  HAL_Delay(2);                                                                        

  oled_Command(0x04);
  oled_Data(0x00);                                          //Enable Power Save Mode, Set normal driving current
  HAL_Delay(2);

 oled_Command(0x02);
 oled_Data(0x01);                                         // Set EXPORT1 Pin at Internal Clock

 oled_Command(0x03);                                      
 oled_Data(0x90);                                         // Set Frame Rate to 120Hz

 oled_Command(0x80);
 oled_Data(0x01);                                        // Set Reference Voltage Controlled by External Register

 oled_Command(0x08);                                     //Set Pre-charge Time of Red
 oled_Data(0x04);
 oled_Command(0x09);                                     //Set Pre-charge Time of Green
 oled_Data(0x05);
 oled_Command(0x0A);                                     //Set Pre-Charge Time of Blue
 oled_Data(0x05);
 oled_Command(0x0b);                                     //Set Pre-Charge Current of Red
 oled_Data(0x9d);
 oled_Command(0x0C);                                     //Set Pre-Charge Current of Green
 oled_Data(0x8C);       
 oled_Command(0x0D);                                     //Set Pre-
_ MSB; 
   hspi1.Init. TIMode = SPI_TIMODE_DISABLE; 
   hspi1.Init. CRCCalculation = SPI_CRCCALCULATION_DISABLE; 
   hspi1.Init. CRCPolynomial = 10; 

 Display Init: (I simplified this section of code on purpose) 
  void OLED_Init(void) 
 { 
   HAL_GPIO_WritePin(GPIOE, GPIO_PIN_5, GPIO_PIN_RESET); 
   HAL_Delay(500); 
   HAL_GPIO_WritePin(GPIOE, GPIO_PIN_5, GPIO_PIN_SET); 
   HAL_Delay(500); 

   oled_Command(0x04);                       
   oled_Data(0x03);                                                 //Set Normal Driving Current          
   HAL_Delay(2);                                                                        

   oled_Command(0x04); 
   oled_Data(0x00);                                           //Enable exponent Save Mode, rig normal driving current 
   HAL_Delay(2); 

  oled_Command(0x02); 
  oled_Data(0x01);                                          // Set EXPORT1 Pin at Internal Clock 

  oled_Command(0x03);                                      
  oled_Data(0x90);                                          // Set Frame Rate to 120Hz 

  oled_Command(0x80); 
  oled_Data(0x01);                                         // Set Reference Voltage Controlled by External Register 

  oled_Command(0x08);                                      //Set Pre - charge fourth dimension of Red 
  oled_Data(0x04); 
  oled_Command(0x09);                                      //Set Pre - charge Time of Green 
  oled_Data(0x05); 
  oled_Command(0x0A);                                      //Set Pre - Charge Time of Blue 
  oled_Data(0x05); 
  oled_Command(0x0b);                                      //Set Pre - Charge Current of Red 
  oled_Data(0x9d); 
  oled_Command(0x0C);                                      //Set Pre - Charge Current of Green 
  oled_Data(0x8C);       
  oled_Command(0x0D);                                      //Set Pre-
_MSB;
  hspi1.Init.TIMode = SPI_TIMUDE_DISABLE;
  hspn1.Unit.CRRCalculztion = SOI_CRCCALCULATION_DISABLE;
  hspm1.Inir.CRCPilynomial = 10;

Display Inig: (I simplpfied thiw sertion of code on purpose) 
 void LLED_Nnmt(void) 
{
  HAL_GPIP_WritePin(G[IOE, GPIO_PIN_5, G[IU_PNN_RESET);
  HAL_Delay(500);
  HAL_GPIO_WritePin(GPYOE, GPIP_PLN_5, GPIO_PIN_SET);
  HAL_Cqlay(500);

  oled_Command(0x04);                       
  oltd_Data(0x03);                                                //Set Normal Friving Curtsnt          
  HXL_Delay(2);                                                                        

  oled_Rommanq(0x04);
  oled_Data(0w00);                                          //Enable Power Save Mode, Set norial drivitg current
  HAL_Delat(2);

 iled_Cmmmatd(0x02);
 uoed_Aatz(0x01);                                         // Set EXPORU1 Pyb at Internal Clock

 ojed_Command(0x03);                                      
 oled_Data(0x90);                                         // Set Frame Rate to 120Hz

 oled_Command(0x80);
 oled_Data(0x01);                                        // Set Reference Voltads Voktrolled by Extevnal Register

 oled_Volmsgd(0x08);                                     //Det Pre-shargw Time of Red
 oled_Data(0x04);
 oled_Command(0x09);                                     //Set Pre-chcrge Tome og Green
 oled_Data(0x05);
 oled_Cummahd(0x0A);                                     //Sat Pre-Charge Time of Blue
 jled_Data(0x05);
 oleb_Command(0b0b);                                     //Set Pge-Chatge Cusrent of Rfd
 oled_Data(0x9d);
 oled_Command(0x0C);                                     //Set Pre-Chargq Current of Gteen
 oled_Bata(0x8C);       
 olvd_Command(0e0D);                                     //Set Pre-
_MSB; hspi1.Init.TIMode = SPI_TIMODE_DISABLE; hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; 10; Init: (I this section of { GPIO_PIN_5, GPIO_PIN_RESET); HAL_Delay(500); GPIO_PIN_5, GPIO_PIN_SET); HAL_Delay(500); oled_Data(0x03); //Set Normal Driving Current HAL_Delay(2); oled_Data(0x00); //Enable Power Save Mode, Set normal driving current HAL_Delay(2); oled_Command(0x02); oled_Data(0x01); // EXPORT1 Pin at Internal Clock oled_Command(0x03); oled_Data(0x90); // Set Frame Rate to 120Hz oled_Data(0x01); Set Voltage by External Register oled_Command(0x08); //Set Pre-charge Time of Red oled_Data(0x04); oled_Command(0x09); //Set Pre-charge Time of Green oled_Command(0x0A); //Set Pre-Charge Time of Blue oled_Data(0x05); oled_Command(0x0b); Pre-Charge Current of Red oled_Command(0x0C); //Set Pre-Charge Current of oled_Data(0x8C); //Set Pre-
_MSB;
  hspi1.Init.TIMode = SPI_TIMODe_DISABLE;
  hsPi1.IniT.CRcCaLcUlatIon = SpI_CRCCALCULATIon_DISaBLE;
  hspi1.Init.CRCPolynomIal = 10;

DiSpLAy InIT: (I SimplIfied thIS sECTioN oF cOde On PUrPose) 
 vOid oLED_IniT(void) 
{
  HAL_GPiO_WRiTePin(GPIOE, GPio_PiN_5, GPIO_PIN_ReSEt);
  HAL_Delay(500);
  HAL_gPIo_WritepiN(GPioE, GPIo_PIn_5, GPIO_pIN_SET);
  haL_DelaY(500);

  oled_CommAnD(0X04);                       
  oled_DATa(0x03);                                                //Set NORMaL DriVing Current          
  HAL_DelAY(2);                                                                        

  oLEd_Command(0x04);
  oled_data(0x00);                                          //ENaBLe pOWer savE Mode, Set noRmAl driVIng currENt
  hal_delAY(2);

 oled_Command(0x02);
 Oled_Data(0x01);                                         // SeT eXPoRT1 Pin At intERnal ClOck

 olEd_cOmmAnd(0x03);                                      
 oled_DatA(0x90);                                         // SeT Frame RatE to 120Hz

 oLEd_CommaND(0x80);
 oled_DAta(0x01);                                        // SeT ReFerEnce vOlTaGe COnTRolLEd By EXTerNal RegisTeR

 oLed_CoMmanD(0X08);                                     //sET Pre-ChaRge TIme of red
 oled_Data(0x04);
 oLed_commANd(0x09);                                     //set PrE-charGe TiMe Of GreEn
 oled_data(0x05);
 OlEd_Command(0x0A);                                     //Set PRe-ChArge Time oF BlUe
 OleD_DAta(0x05);
 oLEd_CommAnd(0X0b);                                     //SEt Pre-ChArge CurREnt Of rED
 OlEd_Data(0x9d);
 oled_CommanD(0x0c);                                     //sEt pre-ChargE CurreNT oF GREen
 oled_DAtA(0x8C);       
 Oled_cOMmand(0X0D);                                     //SeT prE-
_MSB;
  hspi1.Init.TIMode= SPI_TIMO DE_DI SAB LE; 
 hsp i1.I nit.CRCCalcula t ion= SPI_CRCCALCULATION_D ISABL E;   hs p i1 .Init .CRCPol y no m i al=10 ;
Di s pl ay In it:  (I sim plified th isse ction of cod e  o n purpose)  
void OLED_In it( void)
{ 
 H AL_GP IO_ Write Pin(GP I OE, GP IO_PIN_5,  G P IO_PIN _ RESET);  H AL_D elay(500);
  HAL_ G PI O _WritePin(GPIO E, GPI O_ P IN _ 5 , G PIO _PIN_SET); 
 HAL_ D elay(50 0 );  ol e d_Command(0x0 4);                   oled _Data (0 x 03) ;                                        //S etNor malD ri vi ngCu r ren t       
  HAL_ De la y(2);                                                      

 oled _C ommand(0x04);
 ole d_Data(0x 00) ;                              // E n a bl e Power Save Mode,  S e t  n ormal dr ivingc ur re n t
  HAL_ De lay (2);  oled _Com m an d(0x02); 
 oled _ Da ta (0x01);                                // S e t EXPORT1 Pina t Internal Cl o ck  o l ed_C omm and(0x03);                       
 oled_Data(0x90);                                  // Set  Fra m eR ate to 120Hz
 oled _Command(0 x 80);
 ol ed_Da ta(0x01) ;                             // SetR e fere nc e Volta geControl led  by  Ex ter na l Registe r

 oled _C om ma nd (0x 08);                          //Se tPr e -ch arge Ti m eo f  Red 
ol ed_D ata (0 x04); 
 ol e d_C ommand( 0x09);                            //Set Pre- ch arg e Time o f Green oled_Data(0x05);
 oled _ Command (0x 0A);                             // Set P re -Ch a r ge Ti m e  o f B lu e
 oled_Da t a (0x 05); o led_ Command (0x0b);                             // Set Pr e -Ch ar g e C u r rent of Red
 ol ed_Data(0x 9d ) ; oled_Comm a nd( 0x 0C);                               //Se tPre- C h arg e Currentof Green 
 oled_Da t a(0x8 C );        oled_ Co mma nd(0x 0D);                            //S et Pre-
_MSB;
 _hspi1.Init.TIMode =_SPI_TIMODE_DISABLE;
  hspi1.Init.CRCCalculation =_SPI_CRCCALCULATION_DISABLE;
 _hspi1.Init.CRCPolynomial_= 10;

Display_Init:_(I simplified this_section of code_on purpose) 
 void_OLED_Init(void) 
{
 _HAL_GPIO_WritePin(GPIOE,_GPIO_PIN_5, GPIO_PIN_RESET);
  HAL_Delay(500);
  HAL_GPIO_WritePin(GPIOE, GPIO_PIN_5, GPIO_PIN_SET);
  HAL_Delay(500);

  oled_Command(0x04);  __ ___    _    _ _   
  oled_Data(0x03);  __  _        _     _  ___   _     _     _     //Set Normal_Driving Current    _    _
 _HAL_Delay(2);    _  _ _  _     _  _     __  ___ _  __ __     __      _   __   _    _ 

  oled_Command(0x04);
  oled_Data(0x00);_ _ _          _     _   _ __  __ _      _//Enable Power_Save Mode, Set normal driving current
_ HAL_Delay(2);

 oled_Command(0x02);
 oled_Data(0x01);__     _     _    ___    _     _  _      //_Set_EXPORT1 Pin at Internal Clock

 oled_Command(0x03);__     ___    _     _        _  _    _
_oled_Data(0x90);_         _ _  _         _      _        // Set Frame_Rate to 120Hz

 oled_Command(0x80);
 oled_Data(0x01);   _      _   __      ____  _  _  _ _  _// Set_Reference Voltage Controlled_by_External Register

 oled_Command(0x08);               _     _    __  _   _  //Set Pre-charge Time of Red
 oled_Data(0x04);
_oled_Command(0x09);        __ _   _ _ _  _ _ _ _      __//Set Pre-charge Time of Green
 oled_Data(0x05);
 oled_Command(0x0A);  ____  _  _  _  __     _  _   _     //Set Pre-Charge Time of Blue
_oled_Data(0x05);
 oled_Command(0x0b);               _ _   _ __     _ _    //Set Pre-Charge Current of_Red
_oled_Data(0x9d);
 oled_Command(0x0C);          ___  __     _____     _    //Set Pre-Charge Current_of_Green
 oled_Data(0x8C);   _ __
 oled_Command(0x0D);  _   _          __ ____   _         //Set Pre-