Skip to content

Commit cf00665

Browse files
add WAVESHARE ESP32-C6-LCD-1.47 support
1 parent 92a2472 commit cf00665

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/PDQgraphicstest/Arduino_GFX_dev_device.h

Lines changed: 7 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_C6_LCD_1_47
5152
// #define WAVESHARE_RP2040_LCD_0_96
5253
// #define WZ8048C050 // or called "Elecrow Wizee-ESP32"
5354
// #define ZX2D10GE10R_V4848
@@ -684,6 +685,12 @@ Arduino_RGB_Display *gfx = new Arduino_RGB_Display(
684685
Arduino_DataBus *bus = new Arduino_HWSPI(41 /* DC */, 42 /* CS */, 40 /* SCK */, 45 /* MOSI */, 46 /* MISO */);
685686
Arduino_GFX *gfx = new Arduino_ST7789(bus, 39 /* RST */, 0 /* rotation */, true /* IPS */);
686687

688+
#elif defined(WAVESHARE_ESP32_C6_LCD_1_47)
689+
#define GFX_DEV_DEVICE WAVESHARE_ESP32_C6_LCD_1_47
690+
#define GFX_BL 22
691+
Arduino_DataBus *bus = new Arduino_HWSPI(15 /* DC */, 14 /* CS */, 7 /* SCK */, 6 /* MOSI */, 5 /* MISO */);
692+
Arduino_GFX *gfx = new Arduino_ST7789(bus, 21 /* RST */, 0 /* rotation */, true /* IPS */, 172 /* width */, 320 /* height */, 34 /* col offset 1 */, 0 /* row offset 1 */, 34 /* col offset 2 */, 0 /* row offset 2 */);
693+
687694
#elif defined(WAVESHARE_RP2040_LCD_0_96)
688695
#define GFX_DEV_DEVICE WAVESHARE_RP2040_LCD_0_96
689696
#define GFX_BL 25

0 commit comments

Comments
 (0)