I'm using this as a guide for hooking up an LCD screen via SPI:
The guide uses an UNO as its board of choice, but I'm using an ESP8266 - https://www.amazon.com/gp/product/B010O1G1ES/ref=oh_aui_detailpage_o08_s00?ie=UTF8&psc=1
So I'm following the guide and I installed the Adafruit GFX and HX8357 libraries. Now I'm trying to run the 'graphicstest' example sketch from the HX library, but I'm not sure about all the connections of my LCD screen to my ESP.
It looks like I want
CLK -> D5
MISO -> D6
MOSI -> D7
CS -> D8
... but what do I want for D/C?
Once thats determined, what do I want to define for CS and DC in the example code? I cant tell if these numbers represent digital pins or GPIO pins or what. Heres the beginning part of the example code unmodified:
#include <SPI.h>
#include "Adafruit_GFX.h"
#include "Adafruit_HX8357.h"
// These are 'flexible' lines that can be changed
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 8 // RST can be set to -1 if you tie it to Arduino's reset
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
Adafruit_HX8357 tft = Adafruit_HX8357(TFT_CS, TFT_DC, TFT_RST);
Any thoughts would certainly be appreciated, thanks!