1.3 spi Oled SH1106 help

Hi i have a 1.3 spi Oled SH1106

i have tried lots of different libraries and the only one that i can get to work is the code below
the code is really long and i cant work out how to clear the scree /delay the screen print something else also writ temperatures or values from sensors any help will be appreciated

code is in attached file as to large to post

code 1.3 spi.txt (26 KB)

void LED_DLY_ms(unsigned int ms); //DELAY

void LED_CLS(void); //CLEAR

I think you can call this functions from the loop.

You can read the library and see what else you can do.