Skip to content

Commit 62d5e06

Browse files
add ESP32-S3-Touch-AMOLED-2.41 Dev Device
1 parent 323dcd8 commit 62d5e06

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/PDQgraphicstest/Arduino_GFX_dev_device.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
// #define XIAO_ESP32C3_ROUND_DISPLAY
4949
// #define XIAO_ESP32S3_ROUND_DISPLAY
5050
// #define WAVESHARE_ESP32_S3_LCD_2_8
51+
// #define WAVESHARE_ESP32_S3_TOUCH_AMOLED_2_41
5152
// #define WAVESHARE_ESP32_C6_LCD_1_47
5253
// #define WAVESHARE_RP2040_LCD_0_96
5354
// #define WAVESHARE_RP2040_LCD_1_28 // Waveshare RP2040-LCD-1.28 or RP2350-LCD-1.28
@@ -686,6 +687,14 @@ Arduino_RGB_Display *gfx = new Arduino_RGB_Display(
686687
Arduino_DataBus *bus = new Arduino_HWSPI(41 /* DC */, 42 /* CS */, 40 /* SCK */, 45 /* MOSI */, 46 /* MISO */);
687688
Arduino_GFX *gfx = new Arduino_ST7789(bus, 39 /* RST */, 0 /* rotation */, true /* IPS */);
688689

690+
#elif defined(WAVESHARE_ESP32_S3_TOUCH_AMOLED_2_41)
691+
#define GFX_DEV_DEVICE WAVESHARE_ESP32_S3_TOUCH_AMOLED_2_41
692+
Arduino_DataBus *bus = new Arduino_ESP32QSPI(
693+
9 /* CS */, 10 /* SCK */, 11 /* D0 */, 12 /* D1 */, 13 /* D2 */, 14 /* D3 */);
694+
Arduino_GFX *g = new Arduino_RM690B0(bus, 21 /* RST */, 0 /* rotation */, 450 /* width */, 600 /* height */, 16 /* col offset 1 */, 0 /* row offset 1 */, 16 /* col offset 2 */, 0 /* row offset 2 */);
695+
#define CANVAS
696+
Arduino_Canvas *gfx = new Arduino_Canvas(450 /* width */, 600 /* height */, g);
697+
689698
#elif defined(WAVESHARE_ESP32_C6_LCD_1_47)
690699
#define GFX_DEV_DEVICE WAVESHARE_ESP32_C6_LCD_1_47
691700
#define DEV_DEVICE_INIT() \

0 commit comments

Comments
 (0)