Hi,
I have an ESP32-TTGO-T4 (BigDisplay) and want use tft.println for printing with umlauts,
but it did not work, can you assist for an example ?
Thank you.
Jenni
Check the character set of the display driver. Umlauts may have non-Unicode codes.
HI @applepi333,
if this page is true
https://github.com/fdufnews/ESP32-TTGO-T4/tree/master
you may use the Adafruit GFX lib.
If this is the case
- you may have a look at this link
https://forums.adafruit.com/viewtopic.php?t=70719
- and try this sketch (from the link above, I have not tested it and it may require some adaptation to your application!):
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
// For the Adafruit shield, these are the default.
#define TFT_DC 9
#define TFT_CS 10
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
// If using the breakout, change pins as desired
//Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
void setup() {
Serial.begin(9600);
Serial.println("ILI9341 Test!");
tft.begin();
tft.fillScreen(ILI9341_BLACK);
tft.setCursor(0, 0);
tft.setTextColor(ILI9341_WHITE); tft.setTextSize(2);
tft.println(" 0123456789ABCDEF");
for (int row = 0; row < 16; row++)
{
tft.print(row,HEX); tft.print(" ");
for (int col = 0; col < 16; col++)
{
char c = row*16 + col;
if ((c >= '\10') && (c <= '\13')) c = ' '; //don't print LF, VT, FF, CR
tft.print(c);
}
tft.println();
}
}
void loop() {}
The sketch should display the entire character set on the ILI9341 ...
Good luck!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.