Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By picstart
#55999 I can confirm things work.
It looks like you have the correct controllers for both the TFT and the Touch
Next look at the wiring

Below is the set up I used. The style declares the wiring schema before writing anycode.
[code]
/// notes working 5/27/16 ILI9341 XPT2046
//// LCD 240x320
/// the esp12e USES qio FOR THE PROGRAM FLASH
/// the places GOPI10 and GPIO9 as unavailable
/// unless the flash inside the can is removed and pins 3 and 7 lifted
/// pin 3 is wired to 7 and then to 3.3v
/// pads 3 and 7 are connected to GPIO9 and GPIO10
/// since GPIO9 and GPIO10 are now free and then set the FLASH to DIO mode
//// QIO will now not work
/// DIO mode maybe is the default for the arduino IDE NodeMCU v1 12E board
/// +--------+
/// _CS |1 8| 3.3v
/// DO |2 7| _HOLD
/// _WP |3 6| CLK
/// GND |4 5| DI
/// +--------+
/// 25Q32 4m byte flash

///////////////////////////Pin outs lolin esp12E //////////
// D0-GPI016 Wake
// D1-GPIO5-->T-IRQ ILI9341
// D2-GPIO4-->T-CS ILI9341
// D3-GPIO0 Flash
// D4-GPIO2-->D/C ILI9341
// 3.3v
// Gnd ReSet ILI9341
// D5-GPIO14 |-->SCK ILI9341
// |-->T-ClK ILI9341
//
// D6-GPIO12 |-->MISO ILI9341
// |-->T-DO ILI9341
//
// D7-GPIO13 |-->MOSI ILI9341
// |-->T-DIN ILI9341
//
// D8-GPIO15-->CS ILI9341
// D9-GPI03 RX
// D10-GP01 TX
///////////////////////////////////////////////////////////

/// SPI MOSI MISO CLK use hardware SPI ( secondary SPI on esp12E)
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <SPI.h>
#include <SD.h>
#include <Ticker.h>
#include <Adafruit_ILI9341esp.h>
#include <Adafruit_GFX.h>
#include <XPT2046.h>
#define TFT_DC 2
#define TFT_CS 15

#define Touch_CS 4
#define Touch_IRQ 5
#define SD_CS 9
// For esp8266 chipSelect 9 is GPIO9 SD2 needs flash 3 7 pins lifting
//const int SD_CS = 9;

Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
XPT2046 touch(Touch_CS, Touch_IRQ);

Adafruit_GFX_Button buttons[3]; //// declare button array[/code]
User avatar
By smily77
#56066 I don't use the SD card so the GIOP 9&10 aren't connected but all the rest is exactly as in picstart description. - Anyway I don't believe it'^s a wiring problem as the old version works

BTW @picstart: Is the plastic around the pins yellow or black in your case?

Image

Image