Wio Terminal Display stops working with WiFi

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

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.

Or this way, you can try using tft.fillScreen() before connecting to wifi.

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);
}

}

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

Thanks, that maybe it. I will try use the espi_tft