Feather Huzzah ESP8266 with ILI9341 Screen

Hi all,

Looking for a bit of help if i can.

I have an Adafruit Feather Huzzah ESP8266 which i'm trying to hook up to an SPI screen from Amazon ( https://www.amazon.co.uk/gp/product/B08HH7SXJW/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1 )

The code i'm using works fine when connected to a 2.4" Adafruit Featherwing screen but when i try and hook it up to the no-brand screen i'm only getting a white screen, i'm guessing i'm not connecting to the right pins but this being my first time out on this i'm hoping someone can point me in the direction

Here's a picture of the boards in question, VCC and LED i'm connecting to the 3.3v pin on the board, GND to GND.

The top of the code is attached which where i guess i've got the issue. The screen is labelled as SCK, SDI (MOSI), D/C and CS, where as the pins in the code are STMPE_CS, TFT_CS, TFT_DC and SD_CS. I'm assuming its just a matter of knowing which one connects to which?

#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#include <gfxfont.h>


   #define STMPE_CS 16
   #define TFT_CS   0
   #define TFT_DC   15
   #define SD_CS    2


Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);

Any assistance would be much appreciated.

Adafruit are not stupid. They know that Chinese Red SPI displays do not have a pullup on TFT_RST. So their code will fail on the Chinese displays.
Genuine Adafruit displays do have a pullup.

If you use the full-fat constructor everything should work.
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);

David.

Thanks David, so for that will i need to set another pin high and plug that one into the reset on the TFT? (sorry for the stupid questions, first project so i'm driving blind!)

You don't set anything.
You connect a jumper cable from TFT_RST on the Display to a spare pin on the Arduino.
#define TFT_RST this_Arduino_pin_number

This is not rocket science. You have already connected the Adafruit display successfully.

Got there eventually!

The adafruit display plugs directly into the feather so no wiring required. When i was connecting to the red board i was using the wrong pins. Reconnected everything along with the reset as per yours and its fired up

Thanks for the help