Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By schufti
#87824 to get the relevant pins for ESP8266 look here:
https://arduino-esp8266.readthedocs.io/ ... s.html#spi
Code: Select all    MOSI = GPIO13
    MISO = GPIO12
    SCLK = GPIO14

and don't forget that simple pin# like "0" or "2" relate to "gpio0" or "gpio2" NOT "D0" or "D2" as marked on your Wemos D1 mini - you need to translate!

so for you sth like
Code: Select all    TFT_MOSI = D7
    TFT_CLK = D5
(for TFT_CS and TFT_DC you are free to choose any free pin you like)
    TFT_DC = D1
    TFT_CS = D2
should work
User avatar
By VoodoonetDIS
#94965 i copied this quoted as reminder to my project.
I still looking for a really good driver for the ST7789, Textsupport is so poor. try to show "°C", a mess.
I trying to use it for a project longterm temperature registration with pt1000 or maybe BMP280.


#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7789.h> // Hardware-specific library for ST7789

//D3 RES
//D4 DC
//3V3 VCC
//GND GND
//D5 SCL
//D7 SDA
//D8 CS
//
// unquote the three lines.
// #define TFT_CS 15
// #define TFT_RST 0
// #define TFT_DC 2