mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-04 15:07:46 +00:00
941ea4e28b
* ili9341: Add spidriver
23 lines
283 B
Go
23 lines
283 B
Go
// +build pyportal
|
|
|
|
package main
|
|
|
|
import (
|
|
"machine"
|
|
|
|
"tinygo.org/x/drivers/ili9341"
|
|
)
|
|
|
|
var (
|
|
display = ili9341.NewParallel(
|
|
machine.LCD_DATA0,
|
|
machine.TFT_WR,
|
|
machine.TFT_DC,
|
|
machine.TFT_CS,
|
|
machine.TFT_RESET,
|
|
machine.TFT_RD,
|
|
)
|
|
|
|
backlight = machine.TFT_BACKLIGHT
|
|
)
|