Skip to content

Commit

Permalink
Remove screen server code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodmer committed Feb 8, 2019
1 parent 61dfb2b commit 0b8e957
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/Generic/Local_Custom_Fonts/Local_Custom_Fonts.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -58,7 +57,6 @@

// Use hardware SPI
TFT_eSPI tft = TFT_eSPI();
TFT_eFEX fex = TFT_eFEX(&tft);

void setup(void) {

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0b8e957

Please sign in to comment.