ra8875 and GFX fonts not seeming to change

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rlgjr562
 
Posts: 60
Joined: Sun Jan 21, 2018 5:02 pm

ra8875 and GFX fonts not seeming to change

Post by rlgjr562 »

I have an Adafruit ra8875 and 800x480 tft display that I cannot figure out how to get the font to change.
These are the commands I am using to write to the display. It is writing to display but no matter what I set tft.setFont(&FreeSansBold24pt7b); to the size does not change.
searching on the internet I see others have had similar issues but they were not using Adafruit boards and found alternate solutions. Any asstance would be helpful.

At the beginning I have the following included:

Code: Select all

#include <Adafruit_GFX.h>
#include <Adafruit_RA8875.h>
#include <Fonts/FreeSansBold24pt7b.h>

Code: Select all

  // Display the Values
  tft.textMode();                 // go to text mode
  tft.setFont(&FreeSansBold24pt7b);
  //void setCursor(uint16_t x0, uint16_t y0);
  //void setTextColor(uint16_t color); 
  tft.textSetCursor(120, 190);
  tft.textTransparent(WHITE);
  //tft.textEnlarge(3);
  tft.textWrite("Temprature");
  tft.textSetCursor(200, 190);
  tft.textWrite(temp);
  tft.graphicsMode();

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”