Waveshare SPI 2.4" LCD #952
Replies: 7 comments 12 replies
-
You do not need MISO so that pin at the ESP32 can be left unconnected. This is the pinout and setup file I suggest you use. Those pins are the "native" SPI pins and are more reliable at high SPI clock rates. |
Beta Was this translation helpful? Give feedback.
-
You can either tie the BL pin to 3.3V to start with or define the TFT_BL pin as you suggest. I usualy try the simplest possible setup first of only display and ESP32 to eliminate any ardware conflicts that can arise. |
Beta Was this translation helpful? Give feedback.
-
Bodmer, thanks!
|
Beta Was this translation helpful? Give feedback.
-
The library manages those pins. |
Beta Was this translation helpful? Give feedback.
-
Hi again, TFT driver register values: Thanks. |
Beta Was this translation helpful? Give feedback.
-
Did you run the "Read_ID_Bitbash" example that is in the library example set? I ask because I posted a similar sketch on another thread and that other one definitely would not work as it requires a MISO pin, which your display does not have. |
Beta Was this translation helpful? Give feedback.
-
Note that to use ADafruit_GFX you must define all the pins (except MISO in your case):
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
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 with unusual pinout -
DIN (MOSI), CLK (SCLK), CS, DC, RST, BL
There is NO MISO pin, and according to Waveshare -
"It is not like the traditional SPI protocol, it only uses MOSI to send data from master to slave for the LCD display"
Do you have any idea how to connect and control this display?
I'm going to try -
#define TFT_SDA_READ
DIN 13
CLK 14
CS 15
DC 26
RST 27
BL 32
[code]
TFT_eSPI ver = 2.3.59
Processor = ESP32
Frequency = 240MHz
Transactions = Yes
Interface = SPI
Display driver = 9341
Display width = 240
Display height = 320
MOSI = GPIO 13
MISO = GPIO 19
SCK = GPIO 14
TFT_DC = GPIO 26
TFT_RST = GPIO 27
TFT_BL = GPIO 32
TFT_BACKLIGHT_ON = HIGH
Font GLCD loaded
Font 2 loaded
Font 4 loaded
Font 6 loaded
Font 7 loaded
Font 8 loaded
Smooth font enabled
Display SPI frequency = 40.00
[/code]
Backlight control works for ON/OFF and PWM.
Screen remains obstinately white.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions