|
54 | 54 | // #define WAVESHARE_ESP32_S3_LCD_2_8
|
55 | 55 | // #define WAVESHARE_ESP32_S3_TOUCH_AMOLED_2_41
|
56 | 56 | // #define WAVESHARE_ESP32_C6_LCD_1_47
|
| 57 | +// #define WAVESHARE_ESP32_C6_LCD_1_9 |
57 | 58 | // #define WAVESHARE_RP2040_LCD_0_96
|
58 | 59 | // #define WAVESHARE_RP2040_LCD_1_28 // Waveshare RP2040-LCD-1.28 or RP2350-LCD-1.28
|
59 | 60 | // #define WZ8048C050 // or called "Elecrow Wizee-ESP32"
|
@@ -780,6 +781,16 @@ Arduino_Canvas *gfx = new Arduino_Canvas(450 /* width */, 600 /* height */, g);
|
780 | 781 | Arduino_DataBus *bus = new Arduino_HWSPI(15 /* DC */, 14 /* CS */, 7 /* SCK */, 6 /* MOSI */, 5 /* MISO */);
|
781 | 782 | 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 */);
|
782 | 783 |
|
| 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 | + |
783 | 794 | #elif defined(WAVESHARE_RP2040_LCD_0_96)
|
784 | 795 | #define GFX_DEV_DEVICE WAVESHARE_RP2040_LCD_0_96
|
785 | 796 | #define GFX_BL 25
|
|
0 commit comments