I want to use 4.0inch TFT SPI display with Wemos D1 (ESP8266)
I download TFT_eSPI library.
When i upload graphic example with choosen ILI9341 display works with 2/3 of screen (1/3 screen is white)
With setup ST7796 i have just white screen,
//#define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line) #define TFT_RST -1 // Set TFT_RST to -1 if the display RESET is connected to NodeMCU RST or 3.3V
I change connection from wemos pinD4 to reset with no result
You have a Red SPI display. There is no Touch Controller.
I strongly advise you to start with User_Setups/Setup28_RPi_ST7796_ESP8266.h
comment the #define RPI_DISPLAY_TYPE
and save as your custom Setup with a descriptive name e.g. SetupNN_ST7796_ESP8266.h
Wire screen to the ESP8266 D1 board according to the defines.
// Only ONE line below should be uncommented. Add extra lines and files as needed.
//#include <User_Setup.h> // Default setup is root library folder
...
#include <User_Setups/Setup28_RPi_ST7796_ESP8266.h> // ESP8266 RPi MHS-4.0 inch Display-B
...
Bodmer provides lots of ready-made Setups. You must follow his instructions. e.g. Only ONE line below should be uncommented.
//#define RPI_DISPLAY_TYPE #define TFT_CS PIN_D2 // Chip select control pin D2 #define TFT_DC PIN_D3 // Data Command control pin
//#define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line) #define TFT_RST -1 // Set TFT_RST to -1 if the display RESET is connected to NodeMCU RST or 3.3V
//#define TOUCH_CS PIN_D1 // Chip select pin (T_CS) of touch screen #define SPI_FREQUENCY 27000000 #define SUPPORT_TRANSACTIONS
SetupNN_ST7796_ESP8266.h
//#define RPI_DISPLAY_TYPE #define TFT_CS PIN_D2 // Chip select control pin D2 #define TFT_DC PIN_D3 // Data Command control pin #define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line)
//#define TFT_RST -1 // Set TFT_RST to -1 if the display RESET is connected to NodeMCU RST or 3.3V
//#define TOUCH_CS PIN_D1 // Chip select pin (T_CS) of touch screen #define SPI_FREQUENCY 27000000 #define SUPPORT_TRANSACTIONS