Adafruit-ST7735-Library
Adafruit-ST7735-Library copied to clipboard
Font FreeSans9pt7b ST7735 and ESP32
I have a problem using the FreeSans9pt7b and ESP32 fonts. After using this font (text eg 20 characters) the display freezes, the processor continues to work. The base font (tft.setFont (NULL);) works fine.
ESP32 Dev module board display 1.8" 128x160, controller ST7735
#include <Adafruit_GFX.h> // Core graphics library #include <Fonts \ FreeSans9pt7b.h> #include <Adafruit_ST7735.h> // Hardware-specific library
Adafruit_ST7735 tft = Adafruit_ST7735 (TFT_CS, TFT_DC, TFT_RST);
tft.initR (INITR_BLACKTAB); // chip, black tab (INITR_BLACKTAB) tft.fillScreen (ST7735_BLACK); tft.setFont (NULL); tft.setRotation (0); tft.setTextWrap (true); tft.fillScreen (ST7735_BLACK); tft.setFont (NULL); tft.print ("12345678901234567890"); //ok .. .. ...
tft.setFont (& FreeSans9pt7b); tft.print ("12345678901234567890"); //display freezes
Same configuration he worked with ESP8266 without any problems