changing fonts in ST7789(240X240)

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ilit9915
 
Posts: 16
Joined: Sun Feb 05, 2017 12:35 pm

changing fonts in ST7789(240X240)

Post by ilit9915 »

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,

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”