Page 1 of 1

Wemos Lolin 32 geting hardware SPI to work

Posted: Sun May 06, 2018 8:47 am
by rin67630
Hi
may I ask for a clue?

I have wired a TFT display to my Wemos Lolin32.

It works, but apparently only with software SPI. Here is my code for the (Arduino IDE)

Code: Select all

#define TFT_DC 2      //Data/Cmd
#define TFT_CS 15     //Chip Select
#define TFT_MOSI 23   //Master out Slave in
#define TFT_CLK 18    //System Clock
#define TFT_RST 4     //Restart
#define TFT_MISO 19   //Master in Slave out
#define TOUCH_CS 17   //Chip Select Touch

Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
//Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
Since MOSI=23, MISO=19, SCK=18 are printed on the board, they should match the hardware SPI pins and work with only

Code: Select all

Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC)

using hardware SPI. Shouldn't it?

But it does not.
Has someone got a clue?
Thank you.

Re: Wemos Lolin 32 geting hardware SPI to work

Posted: Mon May 07, 2018 2:36 am
by ESP_Sprite
Moved to Arduino subforum.