mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-17 21:23:58 +00:00
examples: switch st7789 example to use the Adafruit Clue since that device actually comes with one.
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -29,10 +29,10 @@ func main() {
|
|||||||
Mode: 0,
|
Mode: 0,
|
||||||
})
|
})
|
||||||
display := st7789.New(machine.SPI0,
|
display := st7789.New(machine.SPI0,
|
||||||
machine.P6, // TFT_RESET
|
machine.TFT_RESET, // TFT_RESET
|
||||||
machine.P7, // TFT_DC
|
machine.TFT_DC, // TFT_DC
|
||||||
machine.P8, // TFT_CS
|
machine.TFT_CS, // TFT_CS
|
||||||
machine.P9) // TFT_LITE
|
machine.TFT_LITE) // TFT_LITE
|
||||||
|
|
||||||
display.Configure(st7789.Config{
|
display.Configure(st7789.Config{
|
||||||
Rotation: st7789.NO_ROTATION,
|
Rotation: st7789.NO_ROTATION,
|
||||||
|
|||||||
+1
-1
@@ -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=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/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/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-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=circuitplay-bluefruit ./examples/tone
|
||||||
tinygo build -size short -o ./build/test.hex -target=arduino-nano33 ./examples/tm1637/main.go
|
tinygo build -size short -o ./build/test.hex -target=arduino-nano33 ./examples/tm1637/main.go
|
||||||
|
|||||||
Reference in New Issue
Block a user