mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-12-25 13:57:10 -05:00
Eliminate white screen syndrome by using the 'exit deep sleep' command sequence
This commit is contained in:
parent
7f3eee899a
commit
f1ea1fd081
@ -153,6 +153,14 @@ bool xpt2046_Init(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void displayInit(void){
|
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.begin();
|
||||||
tft.setFont(ubitx_font);
|
tft.setFont(ubitx_font);
|
||||||
tft.setTextWrap(false);
|
tft.setTextWrap(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user