When I open the .h file, TFT_eSPI/TFT_eSPI.h at master · Bodmer/TFT_eSPI · GitHub and I do a search for seTextSize I get setTextSize(uint8_t size); // Set character size multiplier (this increases pixel size) . I am shown that setTextSize takes a certain data type that does not accept decimals.
I'm not clear about the power thing you got going on.
Generally, when trying to work thru hardware/software issues, the best approach is to go to the library site, make certain you have the most recent release, and find an appropriate example to test your project:
Additionally, it is a good idea to completely remove all the Dupont wiring and use fresh jumper cables; just a precaution as these jumpers have been the source of numerous prototyping issues.
/***************************************************
Sketch uses 18226 bytes (7%) of program storage space. Maximum is 253952 bytes.
Global variables use 608 bytes (7%) of dynamic memory, leaving 7584 bytes for local variables. Maximum is 8192 bytes.
Arduino 1.9.0-beta on Windows 10 Pro
Note: Works at 80MHz and 160MHz
python /home/ray/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 /home/ray/.arduino15/packages/esp32/hardware/esp32/1.0.4/tools/partitions/boot_app0.bin 0x1000 /home/ray/.arduino15/packages/esp32/hardware/esp32/1.0.4/tools/sdk/bin/bootloader_qio_80m.bin 0x10000 /tmp/arduino_build_528244/graphicstest.ino.bin 0x8000 /tmp/arduino_build_528244/graphicstest.ino.partitions.bin
esptool.py v2.6
Serial port /dev/ttyUSB0
Connecting........___
Chip is ESP32D0WDQ6 (revision 0)
Features: WiFi, BT, Dual Core, Coding Scheme None
MAC: 24:0a:c4:05:78:6c
Uploading stub...
Modified graphics demo for the ESP-WROVER-KIT and equivalent
projects using Ardiono-ESP32 with an ILI9341 LCD display
By Martin Falatic
Implemented by MRB 20200527 on Win 10 PRo w/ IDE 1.8.12
****************************************************/
#include <SPI.h>
#include <Adafruit_GFX.h">
#include <Adafruit_ILI9341.h>
// For the ESP-WROVER_KIT, these are the default.
#define TFT_CS 22
#define TFT_DC 21
#define TFT_MOSI 23
#define TFT_CLK 19
#define TFT_RST 18
#define TFT_MISO 25
#define TFT_LED 5 // GPIO not managed by library
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO); // software SPI
// Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST); // hardware SPI
Are you using the Adafruit /Arduino/libraries updated library files (current) or the older ones that I had in the Zip I attached to this thread?
Adafruit has gone thru a big architectural rewrite of their libraries and if you are using the newest version, you will need to refer to their latest documentation.
The "sketch bound" ILI9341" in my Zip file are dated by a few years... I find these files very stable and usable across ESP8266/ESP32/STM32 devices.
It is not that I have a significant "issue" with the new architecture of Adafruit drivers; rather, I find it totally impossible to regression test libraries that change as often as Adafruit's.
As you can see in the pix in post#14, I'm driving 2 ILI9341 displays from the exact code in the Zip (sketch folder.)
From your pix, it seems that the display is not configured as 320x240, or perhaps the font is being improperly displayed and not spacing out correctly.
Try my Zip with your display ... you should see the standard Adafruit test suite from years back.