From 5d3399da2ff922572cf489adbc8da0d5f741d749 Mon Sep 17 00:00:00 2001 From: David Glaude Date: Fri, 10 Jan 2025 22:34:06 +0100 Subject: [PATCH] Update gc9a01_hellocircles.py Add Waveshare RP2040-TOUCH-LCD-1.28 support. I likely need to do the same change in every demo file, I will try all of your demo anyway. --- examples/gc9a01_hellocircles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gc9a01_hellocircles.py b/examples/gc9a01_hellocircles.py index 3dfe6a3..9cfa9a7 100644 --- a/examples/gc9a01_hellocircles.py +++ b/examples/gc9a01_hellocircles.py @@ -62,7 +62,7 @@ tft_cs = board.GP14 tft_bl = board.GP15 spi = busio.SPI(clock=tft_clk, MOSI=tft_mosi) -elif 'Waveshare RP2040-LCD-1.28 with rp2040' in board_type: +elif 'Waveshare RP2040-LCD-1.28 with rp2040' or 'Waveshare RP2040-TOUCH-LCD-1.28 with rp2040' in board_type: tft_clk = board.LCD_CLK tft_mosi = board.LCD_DIN tft_rst = board.LCD_RST