I have TFT 240x240 ST7789 display. It is weird SPI module with no CS pin and no MISO pin.
It has pins SCL which is in fact CLK and SDA which is in fact MISO. It is not I2C module!!!
I connected it to Arduino and it works with no problem.
For Arduino I used this library #include <Arduino_ST7789_Fast.h>
Unfortunately it is not suported on ESP
and I need to use it with ESP8266 and it simply does not work. I tried all libraries that I could find. The most promising was #include <Adafruit_ST7789.h> // Hardware-specific library for ST7789.
But it did not work.
I initialise the module like this
#include <Adafruit_GFX.h>
#include <Adafruit_ST7789.h>
#include <SPI.h>
// Define pins for the ESP8266
#define TFT_RST 4 // Reset pin
#define TFT_DC 3 // Data/Command pin
#define TFT_SCLK 5 // Clock pin
#define TFT_MOSI 7 // MOSI pin
// Create Adafruit ST7789 object, using -1 for CS since it's not connected
Adafruit_ST7789 tft = Adafruit_ST7789(-1, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
tft.init(240, 240); // Initialize the display with 240x240 resolution
tft.setSPISpeed(10000000);
Has anyone used this module with ESP8266. ANy idea what I have to change