mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +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
525 B
525 B
examples/ili9341/slideshow
This example uses the image package for TinyGo to display png and jpeg images.
How to create an image
The following program will output an image binary like the one in images.go.
go run ./examples/ili9341/slideshow/convert2bin ./path/to/png_or_jpg.png
Notes
Displaying a 320x240 png or jpeg often requires more than 50KB of memory.
The examples include samd21 settings, but if you run them as is, you will get a memory size error.
