Imports 52 fonts for Arduino Adafruit GFX Library with just one line of code
- Download & Move this file to Arduino gfx library folder
- Open your arduino code
- Place this code on top of your script:
#include "Adafruit_GFX.h" //Arduino GFX Library
#include "allFonts.h" //Font importer
this is an example of a TFT LCD 2.4" using font-importer-for-Adafruit-GFX-Library:
#include "Adafruit_GFX.h"
#include "MCUFRIEND_kbv.h" // Hardware-specific library
#include "allFonts.h"
MCUFRIEND_kbv tft;
void setup() {
uint16_t ID = tft.readID();
tft.reset();
tft.begin(ID);
tft.fillScreen(TFT_BLACK);
tft.setCursor(245, 120);
tft.setFont(&FreeSansBold12pt7b);
tft.println("example");
}
void loop() {
//your code here
}