From b561dc36f29d339e559f6db8ef0a318804348f28 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sun, 14 Dec 2025 11:12:36 +0100 Subject: [PATCH] examples: switch st7789 example to use the Adafruit Clue since that device actually comes with one. Signed-off-by: deadprogram --- examples/st7789/main.go | 8 ++++---- smoketest.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/st7789/main.go b/examples/st7789/main.go index 48532d8..941e65f 100644 --- a/examples/st7789/main.go +++ b/examples/st7789/main.go @@ -29,10 +29,10 @@ func main() { Mode: 0, }) display := st7789.New(machine.SPI0, - machine.P6, // TFT_RESET - machine.P7, // TFT_DC - machine.P8, // TFT_CS - machine.P9) // TFT_LITE + machine.TFT_RESET, // TFT_RESET + machine.TFT_DC, // TFT_DC + machine.TFT_CS, // TFT_CS + machine.TFT_LITE) // TFT_LITE display.Configure(st7789.Config{ Rotation: st7789.NO_ROTATION, diff --git a/smoketest.sh b/smoketest.sh index aee7229..4ef8db1 100755 --- a/smoketest.sh +++ b/smoketest.sh @@ -74,7 +74,7 @@ tinygo build -size short -o ./build/test.hex -target=xiao-rp2040 ./examples/ssd1 tinygo build -size short -o ./build/test.hex -target=thumby ./examples/ssd1306/ tinygo build -size short -o ./build/test.hex -target=microbit ./examples/ssd1331/main.go tinygo build -size short -o ./build/test.hex -target=microbit ./examples/st7735/main.go -tinygo build -size short -o ./build/test.hex -target=microbit ./examples/st7789/main.go +tinygo build -size short -o ./build/test.hex -target=clue ./examples/st7789/main.go tinygo build -size short -o ./build/test.hex -target=circuitplay-express ./examples/thermistor/main.go tinygo build -size short -o ./build/test.hex -target=circuitplay-bluefruit ./examples/tone tinygo build -size short -o ./build/test.hex -target=arduino-nano33 ./examples/tm1637/main.go