mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-03 22:47:47 +00:00
4c98d0bc34
It can not be skipped as you may call setwindow even if device is not ready for data write to buffer. Data can only be written if last command was Memory Write or Write Memory Continue which was not guaranteed There's no performance loss as having the exact same window on a consecutive call is extremely unlikely - Fixed some typos and added a few missing comments to please go-lint
TinyGo driver for TFT displays using ILI9341 driver chips.
These displays support 8-bit parallel, 16-bit parallel, or SPI interfaces.
Examples of such displays include:
- Adafruit PyPortal
- Adafruit 2.8" Touch Shield V2 (SPI)
- Adafruit 2.4" TFT LCD with Touchscreen Breakout w/MicroSD Socket
- 2.8" TFT LCD with Touchscreen Breakout Board w/MicroSD Socket
- 2.2" 18-bit color TFT LCD display with microSD card breakout
- TFT FeatherWing - 2.4" 320x240 Touchscreen For All Feathers
Currently this driver only supports an 8-bit parallel interface using ATSAMD51
(this is the default configuration on PyPortal). It should be relatively
straightforward to implement a more generic SPI-based interface as well.
Please see parallel_atsamd51.go for an example of what needs to be
implemented if you are interested in contributing.