Skip to content

Commit 17067be

Browse files
add WAVESHARE_RP2040_LCD_0_96 Dev Device
1 parent 0da1347 commit 17067be

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
@@ -45,6 +45,7 @@
4545
// #define XIAO_SAMD21_ROUND_DISPLAY
4646
// #define XIAO_ESP32C3_ROUND_DISPLAY
4747
// #define XIAO_ESP32S3_ROUND_DISPLAY
48+
// #define WAVESHARE_RP2040_LCD_0_96
4849
// #define WZ8048C050 // or called "Elecrow Wizee-ESP32"
4950
// #define ZX2D10GE10R_V4848
5051
// #define ZX3D50CE02S // or called "WT32-SC01 PLUS"
@@ -644,6 +645,12 @@ Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
644645
Arduino_RGB_Display *gfx = new Arduino_RGB_Display(
645646
800 /* width */, 480 /* height */, rgbpanel, 0 /* rotation */, true /* auto_flush */);
646647

648+
#elif defined(WAVESHARE_RP2040_LCD_0_96)
649+
#define GFX_DEV_DEVICE WAVESHARE_RP2040_LCD_0_96
650+
#define GFX_BL 25
651+
Arduino_DataBus *bus = new Arduino_RPiPicoSPI(8 /* DC */, 9 /* CS */, 10 /* SCK */, 11 /* MOSI */, GFX_NOT_DEFINED /* MISO */, spi1 /* spi */);
652+
Arduino_GFX *gfx = new Arduino_ST7735(bus, 12 /* RST */, 0 /* rotation */, true /* IPS */, 80 /* width */, 160 /* height */, 26 /* col offset 1 */, 1 /* row offset 1 */, 26 /* col offset 2 */, 1 /* row offset 2 */);
653+
647654
#elif defined(XIAO_SAMD21_ROUND_DISPLAY)
648655
#define GFX_DEV_DEVICE XIAO_SAMD21_ROUND_DISPLAY
649656
Arduino_DataBus *bus = new Arduino_HWSPI(3 /* DC */, 1 /* CS */);

0 commit comments

Comments
 (0)