Eliminate white screen syndrome by using the 'exit deep sleep' command sequence

This commit is contained in:
Reed Nightingale 2020-01-07 23:07:44 -08:00
parent 7f3eee899a
commit f1ea1fd081

View File

@ -153,6 +153,14 @@ bool xpt2046_Init(){
}
void displayInit(void){
//Pulling this low 6 times should exit deep sleep mode
pinMode(TFT_CS,OUTPUT);
for(uint8_t i = 0; i < 6; ++i){
digitalWrite(TFT_CS,HIGH);
digitalWrite(TFT_CS,LOW);
}
digitalWrite(TFT_CS,HIGH);//Disable writing for now
tft.begin();
tft.setFont(ubitx_font);
tft.setTextWrap(false);