mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-17 21:23:58 +00:00
f2e5278965
* Copy from go1.17 image package * Remove unnecessary files * Reduce memory usage * Add examples/ili9341/slideshow * image: add ./image/README.md * image: change convert2bin to . /cmd * Makefile: add ./cmd to NOTEST
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
|
|
)
|