Note that everything compiles and uploads smoothly without error. The LCD touchscreen also works very well and visual stuff such as the adafruit graphics demo runs well too.
I just cant change font. I also noticed
- Code: Select all | TOGGLE FULL SIZE
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_RA8875.h>
#include <Fonts/FreeSansBold24pt7b.h>
#define RA8875_INT 4
#define RA8875_CS 10
#define RA8875_RESET 9
Adafruit_RA8875 tft = Adafruit_RA8875(RA8875_CS, RA8875_RESET);
uint16_t tx, ty;
float xScale = 1024.0F/850.0;
float yScale = 1024.0F/545.0;
void setup() {
Serial.begin(9600);
tft.begin(RA8875_800x480);
tft.displayOn(true);
tft.GPIOX(true);
tft.PWM1config(true, RA8875_PWM_CLK_DIV1024);
tft.PWM1out(255);
tft.textMode();
tft.setFont(&FreeSansBold24pt7b);
tft.textSetCursor(80,200);
tft.textEnlarge(8);
tft.print("AXCDW0129314");
}
void loop() {
}