Hi,
when I try to load a smooth font by using tft.loadFont, sometimes WIO Terminal hangs in the command and does not go on.
- in the program below it hangs
- the font is ok, works in another program, size is about 8k
- other fonts do also not work
- in another more complex program it works (so the font is ok, 4GB SD card as well)
- drawImage from the same SD card work without problems
Anyone else who had problems with loadFont?
#include "SPI.h"
#include "Seeed_FS.h" // Including SD card library
#include "SD/Seeed_SD.h" // Including SD card library
#include "TFT_eSPI.h"
TFT_eSPI tft;
void setup() {
// initialize Serial Monitor
Serial.begin(9600);
while (!Serial) {
;
}
Serial.println("Starting..");
// Initialize SD card
Serial.println("Initializing SD Card...");
if (!SD.begin(SDCARD_SS_PIN, SDCARD_SPI)) {
Serial.println("SD-Card Not Initialised!");
}
// Initialize TFT
Serial.println("Initializing TFT...");
tft.begin();
tft.setRotation(1);
tft.loadFont("Verdana-18"); // stops here and hangs in this command
Serial.println("Loading font done..."); // does not reach this line
}
void loop() {
}