Complicated esp8266 with st7789 240x240 ips 1.3"

hi, ive had an annoying and probably basic problem with my code, but because of how long it is it gets confusing for me to understand. the problem is when i clear the display by filling the screen with black, the numbers i printed onscreen previously stay, even though the screen has been cleared, the image is cleared unlike the text. this could possibly because the numbers are still in the buffer, and need to be cleared somehow? my long code ino: tip: focus on void homescreen and void apprun() inside of appdata.h

240x240_ips_OS.zip (28.7 KB)

screen before filling with black:


screen after filling with black. the boxes should be there, but the numbers behind should not be: