Skip to content

Commit fcbe67f

Browse files
add WAVESHARE ESP32-S3-LCD-1.3 and prism cube version support
1 parent 58ac1d4 commit fcbe67f

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,13 @@ ESP32LCD8, ESP32LCD16 and ESP32RGBPanel only supported by arduino-esp32 v2.x and
353353
* [Makerfabs ESP32-S3 TFT 4.3" v1.3](https://www.makerfabs.com/esp32-s3-parallel-tft-with-touch-4-3-inch.html) [[demo video](https://youtu.be/oQ57L2gTHoo)]
354354
* [Odroid Go](https://www.hardkernel.com/shop/odroid-go/)
355355
* [seeed studio Wio Terminal](https://wiki.seeedstudio.com/Wio-Terminal-Getting-Started/)
356+
* [Waveshare ESP32-C6-LCD-1.47](https://www.waveshare.com/esp32-c6-lcd-1.47.htm?&aff_id=107987)
357+
* [Waveshare ESP32-S3-Touch-LCD-1.3](https://www.waveshare.com/esp32-s3-lcd-1.3.htm?&aff_id=107987) [[demo video](https://youtube.com/shorts/_n3qTa_nVGE)]
358+
* [Waveshare ESP32-S3-Touch-LCD-1.3 with case and prism cube](https://www.waveshare.com/esp32-s3-lcd-1.3.htm?sku=30559&aff_id=107987) [[demo video](https://youtube.com/shorts/tqyqxdRA550)]
359+
* [Waveshare ESP32-S3-Touch-LCD-2.8](https://www.waveshare.com/esp32-s3-touch-lcd-2.8.htm?&aff_id=107987) [[demo video](https://youtube.com/shorts/1RU_EanUgSU)
356360
* [Waveshare RP2040-LCD-0.96](https://www.waveshare.com/rp2040-lcd-0.96.htm?&aff_id=107987)
357361
* [Waveshare RP2040-LCD-1.28](https://www.waveshare.com/rp2040-lcd-1.28.htm?&aff_id=107987)
358362
* [Waveshare RP2350-LCD-0.96](https://www.waveshare.com/rp2350-lcd-0.96.htm?&aff_id=107987)
359-
* [Waveshare ESP32-C6-LCD-1.47](https://www.waveshare.com/esp32-c6-lcd-1.47.htm?&aff_id=107987)
360-
* [Waveshare ESP32-S3-Touch-LCD-2.8](https://www.waveshare.com/esp32-s3-touch-lcd-2.8.htm?&aff_id=107987)
361363
* [wireless-tag WT-32-SC01](http://www.wireless-tag.com/portfolio/wt32-sc01/)
362364
* [Elecrow ESP Terminal with 3.5" parallel RGB display DLC35010R](https://www.elecrow.com/esp-terminal-with-esp32-3-5-inch-parallel-480x320-tft-capacitive-touch-display-rgb-by-chip-ili9488.html) [[demo video](https://youtu.be/QRDVuwayNFw)]
363365
* [Elecrow Wizee-ESP32 WZ8048C050](https://www.elecrow.com/esp32-display-5-inch-hmi-display-rgb-tft-lcd-touch-screen-support-lvgl.html)

examples/PDQgraphicstest/Arduino_GFX_dev_device.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
// #define XIAO_SAMD21_ROUND_DISPLAY
4848
// #define XIAO_ESP32C3_ROUND_DISPLAY
4949
// #define XIAO_ESP32S3_ROUND_DISPLAY
50+
// #define WAVESHARE_ESP32_S3_LCD_1_3
51+
// #define WAVESHARE_ESP32_S3_LCD_1_3_PRISM
5052
// #define WAVESHARE_ESP32_S3_LCD_2_8
5153
// #define WAVESHARE_ESP32_S3_TOUCH_AMOLED_2_41
5254
// #define WAVESHARE_ESP32_C6_LCD_1_47
@@ -713,6 +715,18 @@ Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
713715
Arduino_RGB_Display *gfx = new Arduino_RGB_Display(
714716
800 /* width */, 480 /* height */, rgbpanel, 0 /* rotation */, true /* auto_flush */);
715717

718+
#elif defined(WAVESHARE_ESP32_S3_LCD_1_3)
719+
#define GFX_DEV_DEVICE WAVESHARE_ESP32_S3_LCD_1_3
720+
#define GFX_BL 20
721+
Arduino_DataBus *bus = new Arduino_ESP32SPI(38 /* DC */, 39 /* CS */, 40 /* SCK */, 41 /* MOSI */, GFX_NOT_DEFINED /* MISO */);
722+
Arduino_GFX *gfx = new Arduino_ST7789(bus, 42 /* RST */, 2 /* rotation */, true /* IPS */, 240 /* width */, 240 /* height */, 0 /* col offset 1 */, 0 /* row offset 1 */, 0 /* col offset 2 */, 80 /* row offset 2 */);
723+
724+
#elif defined(WAVESHARE_ESP32_S3_LCD_1_3_PRISM)
725+
#define GFX_DEV_DEVICE WAVESHARE_ESP32_S3_LCD_1_3_PRISM
726+
#define GFX_BL 20
727+
Arduino_DataBus *bus = new Arduino_ESP32SPI(38 /* DC */, 39 /* CS */, 40 /* SCK */, 41 /* MOSI */, GFX_NOT_DEFINED /* MISO */);
728+
Arduino_GFX *gfx = new Arduino_ST7789(bus, 42 /* RST */, 6 /* rotation */, true /* IPS */, 240 /* width */, 240 /* height */, 0 /* col offset 1 */, 0 /* row offset 1 */, 0 /* col offset 2 */, 80 /* row offset 2 */);
729+
716730
#elif defined(WAVESHARE_ESP32_S3_LCD_2_8)
717731
#define GFX_DEV_DEVICE WAVESHARE_ESP32_S3_LCD_2_8
718732
#define GFX_BL 5

src/display/Arduino_ST7789.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ void Arduino_ST7789::setRotation(uint8_t r)
4545
case 3:
4646
r = ST7789_MADCTL_MY | ST7789_MADCTL_MV | ST7789_MADCTL_RGB;
4747
break;
48+
case 4:
49+
r = ST7789_MADCTL_MX | ST7789_MADCTL_RGB;
50+
break;
51+
case 5:
52+
r = ST7789_MADCTL_MX | ST7789_MADCTL_MY | ST7789_MADCTL_MV | ST7789_MADCTL_RGB;
53+
break;
54+
case 6:
55+
r = ST7789_MADCTL_MY | ST7789_MADCTL_RGB;
56+
break;
57+
case 7:
58+
r = ST7789_MADCTL_MV | ST7789_MADCTL_RGB;
59+
break;
4860
default: // case 0:
4961
r = ST7789_MADCTL_RGB;
5062
break;

0 commit comments

Comments
 (0)