Waveshare esp32-s3 2.1 touch #630
Replies: 5 comments 6 replies
-
the wiki has a some demo code both for esp-idf and arduino however there is no existing LGFX config for this device, so you'll have to build your own. you can use this configuration example as a basis:
|
Beta Was this translation helpful? Give feedback.
-
So the 816S is compatible with the 820 that is on this display?
Sent from Proton Mail Android
…-------- Original Message --------
On 10/21/24 9:37 AM, tobozo wrote:
the [wiki](https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-2.1) has a some [demo code](https://files.waveshare.com/wiki/ESP32-S3-Touch-LCD-2.1/ESP32-S3-Touch-LCD-2.1-Code.zip) both for esp-idf and arduino
however there is no existing config for this device, so you'll have to build your own.
you can use [this configuration example](https://github.com/lovyan03/LovyanGFX/blob/master/src/lgfx_user/LGFX_ESP32S3_RGB_MakerfabsParallelTFTwithTouch40.h) as a basis:
- keep Panel_ST7701 section
- replace Touch_GT911 with [Touch_CST816S](https://github.com/lovyan03/LovyanGFX/blob/master/src/lgfx/v1/touch/Touch_CST816S.cpp)
- edit the pin numbers to match those from the wiki
—
Reply to this email directly, [view it on GitHub](#630 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ACW7EAALDGXTAGWHWZB5RY3Z4UGSFAVCNFSM6AAAAABQG6WK3WVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBQGYZTSNI).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
hi @themagicm, have you make it work? I'm doing the same but still not work, confusing with EXIO_Init |
Beta Was this translation helpful? Give feedback.
-
Hi @themagicm I'd also like to know if you've had any success with this display as I'm trying desperately to draw anything on it, so far unsuccessfully. Ta! |
Beta Was this translation helpful? Give feedback.
-
warning: your code sample includes LovyanGFX twice, make sure both the include and the LGFX config block are placed before setup() and loop(), and only include <LovyanGFX.hpp> once According to Waveshare zip example, this init sequence handles the backlight, it is called before initializing the LCD: I2C_Init();
TCA9554PWR_Init(0x00);
Set_EXIO(EXIO_PIN8,Low);
this is the equivalent of doing this in your setup before tft.init(): Wire.begin(sda, scl);
Wire.beginTransmission(0x20); // I2C device ID
Wire.write(0x03); // EXIO config reg
Wire.write(0x00); // EXIO config value
I2C.endTransmission();
digitalWrite(EXIO_PIN8, LOW); jittering: most parallel display issues can be solved by tweaking one of those settings: cfg.hsync_polarity = 0;
cfg.hsync_front_porch = 50;
cfg.hsync_pulse_width = 8;
cfg.hsync_back_porch = 8;
cfg.vsync_polarity = 0;
cfg.vsync_front_porch = 8;
cfg.vsync_pulse_width = 3;
cfg.vsync_back_porch = 8;
cfg.pclk_idle_high = 0;
cfg.de_idle_high = 1; |
Beta Was this translation helpful? Give feedback.
-
Anyone have an example code that works with this device?
https://www.waveshare.com/esp32-s3-touch-lcd-2.1.htm
Beta Was this translation helpful? Give feedback.
All reactions