Closed jpasqua closed 5 years ago
Ugh. Sorry to have bothered everyone. My setup file used D0, D8, D3
instead of PIN_D0, PIN_D8, PIN_D3
. This is an important distinction since the former are variable definitions and the latter are #define's. This screws up the way they are interpreted by TFT_eSPI.h.
I hope my error saves someone else some time.
Unfortunately the Arduino Dx designations do not always work for some reason and can map the signals to the wrong pins. Hence the need to use PIN_Dx, as noted in the setup file.
I'm confident that this is my error, but I'm having difficulty finding it. I have a Wemos D1 Mini mounted on a 2.4" Touch Shield: https://wiki.wemos.cc/products:d1_mini_shields:tft_2.4_shield
The display and touch controller work well (though slowly) with Adafruit_GFX and the ILI9341 driver. I have been unable to get anything but a white screen when using it with TFT_eSPI. I've tried several of the supplied examples. I have used the TFT_eSPI library successfully with a D1 Mini connected to a 2.8" TFT, but not via the shield.
Here is the setup file I am using and the settings correspond to those I'm using with my successful Adafruit_GFX test:
I've tried this with and without SUPPORT_TRANSACTIONS and with variations of the SPI_FREQUENCY. I am reading the settings back using Read_User_Setup and the values look good:
In summary: