From 0b8e9572034d4527dd23b442a6fa814430bdc2be Mon Sep 17 00:00:00 2001 From: Bodmer Date: Fri, 8 Feb 2019 18:50:03 +0000 Subject: [PATCH] Remove screen server code --- examples/Generic/Local_Custom_Fonts/Local_Custom_Fonts.ino | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/Generic/Local_Custom_Fonts/Local_Custom_Fonts.ino b/examples/Generic/Local_Custom_Fonts/Local_Custom_Fonts.ino index b26f11e0..67deb9a3 100644 --- a/examples/Generic/Local_Custom_Fonts/Local_Custom_Fonts.ino +++ b/examples/Generic/Local_Custom_Fonts/Local_Custom_Fonts.ino @@ -45,7 +45,6 @@ #include "SPI.h" #include "TFT_eSPI.h" -#include "TFT_eFEX.h" // The custom font file attached to this sketch must be included #include "MyFont.h" @@ -58,7 +57,6 @@ // Use hardware SPI TFT_eSPI tft = TFT_eSPI(); -TFT_eFEX fex = TFT_eFEX(&tft); void setup(void) { @@ -111,7 +109,7 @@ void loop() { tft.setFreeFont(MYFONT32); // Select the font tft.drawString(TEST_TEXT, 160, 140, GFXFF); // Print the test text in the custom font delay(2000); -fex.screenServer(); + // Setting textDatum does nothing when using tft.print tft.fillScreen(TFT_BLUE); // Clear screen tft.setCursor(0,60); // To be compatible with Adafruit_GFX the cursor datum is always bottom left