Just having fun playing with a 3.5” SPI TFT 480x320 screen …. looks great.
But, I want to use large text, to read at a distance, which limits the characters I can put on screen.
I would like to “squeeze” the font width, or make BOLD to make it more readable.
I’ve googled everything I can find on how to use the range of TFT_eSPI.h fonts, but I admit, I didn’t understand much of it and no success. How do I get to change fonts ?
The main problem I’m having with ESP32 is finding out about all this stuff. I’m from the PIC controller world, where you chose a device and get a 1000 page datasheet, explaining everything possible
you should take a look at Larry Banks bb_lcd_spi library it is usable on the newer ESP32 devices and is far better than the older TFT_ESPI library. There are many examples and many predefined devices. There is no need for for the clunky individual setup files used with TFT_eSPI. fonts can be added by using an oon-line font creator.
I’ve been distracted elsewhere and when I’ve returned, I can’t get my display working now !
Got all sorts of compiler errors all of a sudden.
It doesn’t like any of my Platformio.ini lines now …..
Warning! Could not find the package with ‘-D USER_SETUP_LOADED’ requirements for your system ‘windows_amd64’
Warning! Could not find the package with ‘-D ILI9488_DRIVER’ requirements for your system ‘windows_amd64’
Warning! Could not find the package with ‘-D LOAD_FONT4’ requirements for your system ‘windows_amd64’
and so on …
Also …
Compiling .pio\build\nodemcu-32s\libf55\Adafruit DHT Unified\DHT_U.cpp.o In file included from .pio/libdeps/nodemcu-32s/Adafruit DHT Unified/DHT_U.cpp:22: .pio/libdeps/nodemcu-32s/Adafruit DHT Unified/DHT_U.h:26:10: fatal error: DHT.h: No such file or directory
You will, no doubt, come a cross the term CYD, Cheap Yellow display. It used to refer to the original 2.8” display with an onboard ESP32 but nowadays it has become almost generic for a whole range of displays from small round displays to 7” touch screens. I mention it because there is an excellent Discord site called Blough that covers almost anything display related. The site belongs to Brian Lough and there is a lot of information on displays including the TFT_ESPI library and the bb_lcd_spi I mentioned earlier.
Thanks Bob, I’ll Google that, will be very helpful.
The biggest problem I have, is finding out what c++ commands to use, when trying to do things.
Just last night reading a text file from SD card. I read card ok, put characters on display, all good. But then I need to work on some integer numbers from the file. Trying to make “6” and “2” = number 62 took ages, because I can’t find the commands I need. Always some compiler error, that doesn’t help me much. Got there eventually, so I could add up a few numbers.
I’m learning, but need find better training type resources. Putting queries on Google leads you down so many rabbit holes.
Here is my project where I am playing around with creating new fonts, loading different fonts, both from Flash and from SD Card. Using TFT_eSPI library.