Skip to content

Commit bc543b0

Browse files
add WAVESHARE RP2040-LCD-1.28 Dev Device
1 parent 688e8f6 commit bc543b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/PDQgraphicstest/Arduino_GFX_dev_device.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,12 @@ Arduino_GFX *gfx = new Arduino_ST7789(bus, 21 /* RST */, 0 /* rotation */, true
702702
Arduino_DataBus *bus = new Arduino_RPiPicoSPI(8 /* DC */, 9 /* CS */, 10 /* SCK */, 11 /* MOSI */, GFX_NOT_DEFINED /* MISO */, spi1 /* spi */);
703703
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 */);
704704

705+
#elif defined(WAVESHARE_RP2040_LCD_1_28)
706+
#define GFX_DEV_DEVICE WAVESHARE_RP2040_LCD_1_28
707+
#define GFX_BL 25
708+
Arduino_DataBus *bus = new Arduino_RPiPicoSPI(8 /* DC */, 9 /* CS */, 10 /* SCK */, 11 /* MOSI */, GFX_NOT_DEFINED /* MISO */, spi1 /* spi */);
709+
Arduino_GFX *gfx = new Arduino_GC9A01(bus, 12 /* RST */, 0 /* rotation */, true /* IPS */);
710+
705711
#elif defined(XIAO_SAMD21_ROUND_DISPLAY)
706712
#define GFX_DEV_DEVICE XIAO_SAMD21_ROUND_DISPLAY
707713
Arduino_DataBus *bus = new Arduino_HWSPI(3 /* DC */, 1 /* CS */);

0 commit comments

Comments
 (0)