Skip to content

Commit 784e4a7

Browse files
add WAVESHARE ESP32-C6-LCD-1.9 dev device support
1 parent 5f210a2 commit 784e4a7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

examples/PDQgraphicstest/Arduino_GFX_dev_device.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
// #define WAVESHARE_ESP32_S3_LCD_2_8
5555
// #define WAVESHARE_ESP32_S3_TOUCH_AMOLED_2_41
5656
// #define WAVESHARE_ESP32_C6_LCD_1_47
57+
// #define WAVESHARE_ESP32_C6_LCD_1_9
5758
// #define WAVESHARE_RP2040_LCD_0_96
5859
// #define WAVESHARE_RP2040_LCD_1_28 // Waveshare RP2040-LCD-1.28 or RP2350-LCD-1.28
5960
// #define WZ8048C050 // or called "Elecrow Wizee-ESP32"
@@ -780,6 +781,16 @@ Arduino_Canvas *gfx = new Arduino_Canvas(450 /* width */, 600 /* height */, g);
780781
Arduino_DataBus *bus = new Arduino_HWSPI(15 /* DC */, 14 /* CS */, 7 /* SCK */, 6 /* MOSI */, 5 /* MISO */);
781782
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 */);
782783

784+
#elif defined(WAVESHARE_ESP32_C6_LCD_1_9)
785+
#define GFX_DEV_DEVICE WAVESHARE_ESP32_C6_LCD_1_9
786+
#define DEV_DEVICE_INIT() \
787+
{ \
788+
pinMode(15 /* LCD_BL */, OUTPUT); \
789+
digitalWrite(15 /* LCD_BL */, LOW); \
790+
}
791+
Arduino_DataBus *bus = new Arduino_HWSPI(6 /* DC */, 7 /* CS */, 5 /* SCK */, 4 /* MOSI */, 19 /* MISO */);
792+
Arduino_GFX *gfx = new Arduino_ST7789(bus, 14 /* RST */, 0 /* rotation */, true /* IPS */, 170 /* width */, 320 /* height */, 35 /* col offset 1 */, 0 /* row offset 1 */, 35 /* col offset 2 */, 0 /* row offset 2 */);
793+
783794
#elif defined(WAVESHARE_RP2040_LCD_0_96)
784795
#define GFX_DEV_DEVICE WAVESHARE_RP2040_LCD_0_96
785796
#define GFX_BL 25

0 commit comments

Comments
 (0)