Re: SPI Wiring on Wemos D1 mini
Posted: Thu Jul 09, 2020 2:29 am
to get the relevant pins for ESP8266 look here:
https://arduino-esp8266.readthedocs.io/ ... s.html#spi
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
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
should work 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