Waveshare SPI 2.4" LCD - no MISO

Westcott
Posts: 4
Joined: Fri Jan 29, 2021 10:57 pm

Waveshare SPI 2.4" LCD - no MISO

Postby Westcott » Sat Jan 30, 2021 9:09 pm

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
Last edited by Westcott on Sun Jan 31, 2021 10:40 am, edited 1 time in total.

becorey
Posts: 92
Joined: Sat Mar 28, 2020 4:18 pm

Re: Waveshare SPI 2.4" LCD - no MOSI

Postby becorey » Sun Jan 31, 2021 8:57 am

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

Westcott
Posts: 4
Joined: Fri Jan 29, 2021 10:57 pm

Re: Waveshare SPI 2.4" LCD - no MISO

Postby Westcott » Sun Jan 31, 2021 11:34 am

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.

Balooski
Posts: 1
Joined: Sun Aug 15, 2021 9:30 pm

Re: Waveshare SPI 2.4" LCD - no MISO

Postby Balooski » Sun Aug 15, 2021 9:31 pm

Did you ever get this to work? I'm stuck at the exact same place

Westcott
Posts: 4
Joined: Fri Jan 29, 2021 10:57 pm

Re: Waveshare SPI 2.4" LCD - no MISO

Postby Westcott » Mon Aug 16, 2021 8:58 am

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.

drloko
Posts: 1
Joined: Sat Aug 03, 2024 3:28 pm

Re: Waveshare SPI 2.4" LCD - no MISO

Postby drloko » Sat Aug 03, 2024 3:33 pm

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

Westcott
Posts: 4
Joined: Fri Jan 29, 2021 10:57 pm

Re: Waveshare SPI 2.4" LCD - no MISO

Postby Westcott » Mon Aug 05, 2024 10:07 pm

Hi Drloko,

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

Who is online

Users browsing this forum: No registered users and 101 guests