-->
Page 2 of 2

Re: SPI Wiring on Wemos D1 mini

PostPosted: Thu Jul 09, 2020 2:29 am
by schufti
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

Re: SPI Wiring on Wemos D1 mini

PostPosted: Thu Jul 21, 2022 8:55 am
by VoodoonetDIS
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