adafruit / Adafruit-ST7735-Library

This is a library for the Adafruit 1.8" SPI display http://www.adafruit.com/products/358 and http://www.adafruit.com/products/618
https://learn.adafruit.com/1-8-tft-display
565 stars 305 forks source link

Font FreeSans9pt7b ST7735 and ESP32 #127

Open jarda195 opened 4 years ago

jarda195 commented 4 years ago

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 // Core graphics library

include <Fonts \ FreeSans9pt7b.h>

include // 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