I'm trying to use the TTGO TS 1.0 display with a demo app from a different source. The demo app wants the following to be configured:
#define PIN_NUM_MISO 17 // SPI MISO #define PIN_NUM_MOSI 23 // SPI MOSI #define PIN_NUM_CLK 5 // SPI CLOCK pin #define PIN_NUM_CS 26 // Display CS pin #define PIN_NUM_DC 17 // Display command/data pin // ** If you want to use them, set them to some valid GPIO number #define PIN_NUM_RST 0 // GPIO used for RESET control
According to the TTGO readme the following wiring is used:
CS:16 DC:17 SDA:23 SCK:5 RST:9
My guess is:
PIN_NUM_MISO ? PIN_NUM_MOSI 23 PIN_NUM_CLK 5 PIN_NUM_CS 16 PIN_NUM_DC 17
How to update the demo app to match with this? Reset is optional in the demo and there is 1 additional pin there as well which I can't figure out...