vikas
April 25, 2022, 7:56pm
#1
Hello,
The WIO Terminal display hardware works fine. But as soon as I enable WIFI by using rpcWiFi.h the display stops working. When I enable Serial, it does post information on the serial monitor but the Display goes blank.
I am able to connect to WiFi. And display works fine if I remove all references of WiFi in the code.
Any help?
Thanks,
Vikas
Citric
April 26, 2022, 6:07am
#2
This may be due to single-threaded, the display shows that it needs to be going on all the time, which may happen if the program with wifi is running at the same time.
Citric
April 26, 2022, 6:10am
#3
Or this way, you can try using tft.fillScreen() before connecting to wifi.
vikas
May 1, 2022, 5:12am
#4
Didn’t work. Serial communication works though.
I tried to connect wifi in the end of program, it doesn’t work still.
The screen stops working as soon as I declare this function:
void connectWiFi()
{
WiFi.mode(WIFI_STA);
WiFi.disconnect();
int tries = 0;
while (tries <5)
{
// spr.setTextColor(TFT_DARKGREEN); //setting text color
// spr.setTextSize(3); //setting text size
if(WiFi.status() != WL_CONNECTED){
// Serial.println("Connecting to WiFi...");
// Serial.println(SSID);
WiFi.begin(SSID, PASSWORD);
// Serial.println(WiFi.localIP());
// Serial.print("WiFi Status: ");
// Serial.println(WiFi.status());
// Serial.print("WL_CONNECTED VALUE: ");
// Serial.println(WL_CONNECTED);
delay(500);
}
tries = tries + 1;
}
if(WiFi.status() == WL_CONNECTED){
// Serial.println(“Connected!”);
// Serial.print("IP Address: ");
// Serial.println(WiFi.localIP()); //prints out the device’s IP address
// spr.drawString(“Connected to WiFi…”, 50, 15);
}
else{
// Serial.println(“Max Tries reached!”);
// Serial.println(“Wifi not connected”);
// spr.drawString(“Can’t connect to WiFi…”, 50, 15);
}
}
MaxZ
May 3, 2022, 7:55am
#5
Hi , are you using Sprite in your graphics ?
If yes there’s a known bug when using sprites and wifi together.
I asked for a solution but no answer so far, the only way is to revert sprites to espi_tft (much slower…)
MZ
vikas
May 4, 2022, 5:49pm
#6
Thanks, that maybe it. I will try use the espi_tft
voss
January 27, 2024, 6:02pm
#7
Still no fix for this? I am running into the same problem.