Wemos Lolin 32 geting hardware SPI to work

rin67630
Posts: 139
Joined: Sun Mar 11, 2018 5:13 pm

Wemos Lolin 32 geting hardware SPI to work

Postby rin67630 » Sun May 06, 2018 8:47 am

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.

ESP_Sprite
Posts: 9724
Joined: Thu Nov 26, 2015 4:08 am

Re: Wemos Lolin 32 geting hardware SPI to work

Postby ESP_Sprite » Mon May 07, 2018 2:36 am

Moved to Arduino subforum.

Who is online

Users browsing this forum: No registered users and 119 guests