Skip to content

Imports 52 fonts for Arduino Adafruit GFX Library with just one line of code

Notifications You must be signed in to change notification settings

hjun1052/font-importer-for-Adafruit-GFX-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

font-importer-for-Adafruit-GFX-Library

Imports 52 fonts for Arduino Adafruit GFX Library with just one line of code

How to use

  1. Download & Move this file to Arduino gfx library folder
  2. Open your arduino code
  3. Place this code on top of your script:
  #include "Adafruit_GFX.h" //Arduino GFX Library
  #include "allFonts.h" //Font importer

example

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
  }

About

Imports 52 fonts for Arduino Adafruit GFX Library with just one line of code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published