Hi all
Been trying to map the pins on this Chinese ILI9341 based screen.
Some of the demo examples don't work as usual, so just trying to dial in what the pins do.
Attached are the schematics...
Now if I change the screen definintions to the following, the screen works (and so does the touchscreen using pin 33)...
Its based on an ESP32
// Required libraries
#include <SPIFFS.h>
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#include <SPIFFS_ImageReader.h>
#define TFT_CS 15 /* TFT connections For 2.8" ESP32 WROOM 32 touchscreen*/
#define TFT_DC 2
#define TFT_MOSI 13
#define TFT_MISO 12 // How can this be the same a RST ?
#define TFT_CLK 14
#define TFT_RST 12
#define TFT_BL 21
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
But, the TFT_MISO pin and the TFT_RST pin are declared the same, and they don't seem to marry up with the schematic very well either.
Does MOSI = SDI?
Does MISO = SDO?
Does RST = DC?
I really wish they would use the same goddam pin names.