Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

changing fonts in ST7789(240X240)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

changing fonts in ST7789(240X240)

by ilit9915 on Thu Nov 25, 2021 4:23 am

Hello!
Need help please with changing fonts on this display...
when writing in the code:
tft.setFont(&FreeSerifBoldItalic24pt7b);

get compile error:
Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "Generic STM32F4 series, Adafruit Feather STM32F405, STM32CubeProgrammer (DFU), Enabled (generic 'Serial'), CDC (generic 'Serial' supersede U(S)ART), Low/Full Speed, Smallest (-Os default), Newlib Nano (default)"





















sketch_nov24a:82:1: error: 'tft' does not name a type

82 | tft.setFont(&FreeSerifBoldItalic24pt7b);

| ^~~

exit status 1

'tft' does not name a type

i have declared in the header:

#include <Adafruit_GFX.h> // Core graphics library

#include <Adafruit_ST7735.h> // Hardware-specific library for ST7735

#include <Adafruit_ST7789.h> // Hardware-specific library for ST7789

#include <Fonts/FreeSerifBoldItalic24pt7b.h>

Can ay one help with this please?
Regards,

ilit9915
 
Posts: 16
Joined: Sun Feb 05, 2017 12:35 pm

Please be positive and constructive with your questions and comments.


cron