mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-07 16:33:39 +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,
|
||||
})
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user