• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

U8g2_for_Adafruit_GFX Fonts

Q&A Forum › Category: ESP32 › U8g2_for_Adafruit_GFX Fonts
0 Vote Up Vote Down
Antonio asked 4 years ago

Hi, I am working with ESP32 in VScode.
How can I free or get the character fonts for U8g2_Adafruit_GFX ?? Thank you very much in advance.

Question Tags: U8g2_Adafruit_GFX
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
Can you better explain your question? I don’t think I understood what you want to do.
We have this tutorial for the OLED display. It has a section showing how to use other fonts, but it uses the GFX library, not the library you are referring: https://randomnerdtutorials.com/esp32-ssd1306-oled-display-arduino-ide/
Regards,
Sara 

0 Vote Up Vote Down
Antonio answered 4 years ago

Thank you Sara.
I have found the solution. To use the many U8g2 libraries with Adafruit_GSX:
#include <Adafruit_SSD1306.h>
#include <U8g2_for_Adafruit_GFX.h>
Adafruit_SSD1306 display (/ * MOSI * / 11, / * CLK * / 13, / * DC * / 9, / * RESET * / 8, / * CS * / 10);
U8G2_FOR_ADAFRUIT_GFX u8g2_for_adafruit_gfx;
void setup () {
display.begin (SSD1306_SWITCHCAPVCC);
u8g2_for_adafruit_gfx.begin (display); // connect u8g2 procedures to Adafruit GFX
}…. etc
And then use the own commands of these libraries.
Thanks anyway, for your attention.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Great!
I’m glad you found the solution.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.