Page 1 of 1

Waveshare SPI 2.4" LCD - no MISO

Posted: Sat Jan 30, 2021 9:09 pm
by Westcott
Has anyone got one of these to work?
I have a Waveshare 2.4" LCD (ILI9341) that I'm trying to run from an ESP32 Devkit V1 (30 pins)
https://www.waveshare.com/wiki/2.4inch_LCD_Module
It's a blue-ish PCB and there is NO MISO pin.
All 3 sketches I've tried (with the pins below) give just a white screen -
Bodmer.s Fonts_demo with the TFT_eSPI.h library
Vaveshare's own example for Arduino
Adafruit's example with Adafruit_GFX.h and Adafruit_ILI9341.h

#define TFT_MOSI 23
#define TFT_SCLK 18
#define TFT_CS 15
#define TFT_DC 2
#define TFT_RST 4
#define TFT_BL 32

Any help would be gratefully appreciated.
Thanks

Re: Waveshare SPI 2.4" LCD - no MOSI

Posted: Sun Jan 31, 2021 8:57 am
by becorey
There's no miso because the lcd doesn't send any data, it only receives data and displays.

From your link:
Note: It is not like the traditional SPI protocol, it only uses MOSI to send data from master to slave for the LCD display. For details please refer to Datasheet Page 105.
Did you read the datasheet?

The code snippet of your 3 sketches doesnt have define MOSI, do you have that? MOSI / DIN is how you send data in to the lcd

PS your post title.says "no MOSI" but your text says "no MISO", a typo

Re: Waveshare SPI 2.4" LCD - no MISO

Posted: Sun Jan 31, 2021 11:34 am
by Westcott
Hi Becorey,
Thanks for the typo alert, fixed.
Waveshare's name for MOSI is DIN.
Yes, I've read the datasheet thoroughly - this is the first SPI device I've ever had.
I haven't found any examples of this type of display in actual use.
All of the pin combinations I've tried so far just give a white screen.
Apparently -
"The Adafruit graphics test outputs 5 register values at the start, these show if your SPI bus is connected correctly."
Mine show all zeroes, which is not good.

Re: Waveshare SPI 2.4" LCD - no MISO

Posted: Sun Aug 15, 2021 9:31 pm
by Balooski
Did you ever get this to work? I'm stuck at the exact same place

Re: Waveshare SPI 2.4" LCD - no MISO

Posted: Mon Aug 16, 2021 8:58 am
by Westcott
Hi Balooski,

Unfortunately no, I never did on an ESP32.
However it did work for a day on an Arduino, then white-screened again.
It suddenly started to work OK when I was waggling its leads.
Kept going for a day while I played with the code, then stopped.

Re: Waveshare SPI 2.4" LCD - no MISO

Posted: Sat Aug 03, 2024 3:33 pm
by drloko
I was able to get this working. My setup:
ESP32-32 WROOM-1
Waveshare 2.4" LCD ILI9341 Controller
SCLK_PIN GPIO_NUM_12
MOSI_PIN GPIO_NUM_11
DC_PIN GPIO_NUM_2
CS_PIN GPIO_NUM_15
RST_PIN GPIO_NUM_4

Baudrate 9600 (I have set this as high as 256000 without issue)

I used the Adafruit Gfx library

Re: Waveshare SPI 2.4" LCD - no MISO

Posted: Mon Aug 05, 2024 10:07 pm
by Westcott
Hi Drloko,

Thanks for posting.
I think my panel is broken, although backlight control is working.