Adafruit TFTDMA Arduino Library
|
#include <Adafruit_ZeroDMA.h>
Go to the source code of this file.
Classes | |
class | Adafruit_TFTDMA |
A base class that interfaces with the SAMD51 hardware, including PORTs, timer/counters, DMA and other operipherals. Unlikely to be instantiated on its own, a few subclasses are provided that represent the display and graphics memory in different ways. Applications must be designed around ONE of these subclasses and stick with it; can't toggle among them. More... | |
class | TFT_framebuffer |
Subclass of Adafruit_TFTDMA providing a whole-screen contiguous framebuffer. This is probably the easiest subclass to understand, but requires an enormous amount of RAM, nearly 160 kilobytes. More... | |
class | TFT_segmented |
Subclass of Adafruit_TFTDMA that does not provide a contiguous framebuffer. Instead, application provides a buffer for graphics operations, which are divided into segments and redrawn as needed. Uses less RAM that TFT_framebuffer – only as much as one wants to allocate to it (minimum of TFTWIDTH*2 16-bit pixels, or 1,280 bytes, up to a maximum of 65,535 bytes). Invokes a user callback to draw graphics into this buffer before issuing to the screen. There is no permanent framebuffer; graphics are disposed after each update, and dirty rectangle handling is the application;s responsibility (or update the full screen or sections as needed). More... | |
class | TFT_scanline |
Subclass of Adafruit_TFTDMA in which display (or section thereof) is generated one scanline at a time, using a callback which sets up one or more sequential 'spans,' providing a start address for each and a width in pixels. The total span width MUST match the update region width. This requires careful planning but might be good for scrollers, tile engines, anything with lots of canned pixel data in tables. Uses about 12K RAM. More... | |
Macros | |
#define | TFT_INTERFACE_8 0 |
8-bit parallel interface | |
#define | TFT_INTERFACE_16 1 |
16-bit parallel - work-in-progress | |
#define | TFT_INTERFACE_SPI 2 |
SPI - totally not implemented at all. | |
#define | TFT_INTERFACE TFT_INTERFACE_8 |
Select interface methodology. | |
#define | TFTWIDTH 320 |
Display width in pixels. | |
#define | TFTHEIGHT 240 |
Display height in pixels. | |
This is part of Adafruit's SAMD51 DMA-driven ILI9341 display library. It is designed specifically for this microcontroller and display combo, using the display's parallel interface.
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Phil "PaintYourDragon" Burgess for Adafruit Industries.
BSD license, all text here must be included in any redistribution.