mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-03 06:27:47 +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
19 lines
525 B
Markdown
19 lines
525 B
Markdown
# 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](./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.
|