ofcourse =)
Maybe I have done something wrong with the code, but its most copy and paste in the begining from other examples.
the libraries used are the latest from your github and pubsubclient is the latest from arduino library manager.
#include <TFT_eSPI.h>
#include <AtWiFi.h>
#include <WiFiMulti.h>
#include <Seeed_FS.h>
#include "RawImage.h"
const char* mqtt_server = "192.168.43.190";
WiFiClient espClient;
PubSubClient client(espClient);
WiFiMulti WiFiMulti;
TFT_eSPI tft;
void setup()
{
pinMode(WIO_5S_PRESS, INPUT_PULLUP); // for menu
Serial.begin(115200);
delay(10);
while (!SD.begin(SDCARD_SS_PIN, SDCARD_SPI))
{
delay(1000);
return;
}
delay(10);
tft.begin();
tft.setRotation(3);
tft.fillScreen(TFT_BLACK); //Black background
tft.setTextSize(2);
// code stops working here for me...
drawImage<uint16_t>("photos/2.bmp",0,0);
delay(100);
WiFiMulti.addAP(myrouter, password :-);
Serial.println();
Serial.print("Waiting for WiFi... ");
while (WiFiMulti.run() != WL_CONNECTED)
{
Serial.print(".");
delay(500);
}
}
void loop()
{
}