Adafruit GFX Library
Classes | Macros | Typedefs | Enumerations
Adafruit_SPITFT.h File Reference
#include "Adafruit_GFX.h"
#include <SPI.h>

Go to the source code of this file.

Classes

class  Adafruit_SPITFT
 Adafruit_SPITFT is an intermediary class between Adafruit_GFX and various hardware-specific subclasses for different displays. It handles certain operations that are common to a range of displays (address window, area fills, etc.). Originally these were all color TFT displays interfaced via SPI, but it's since expanded to include color OLEDs and parallel-interfaced TFTs. THE NAME HAS BEEN KEPT TO AVOID BREAKING A LOT OF SUBCLASSES AND EXAMPLE CODE. Many of the class member functions similarly live on with names that don't necessarily accurately describe what they're doing, again to avoid breaking a lot of other code. If in doubt, read the comments. More...
 

Macros

#define DEFAULT_SPI_FREQ   16000000L
 Hardware SPI default speed.
 

Typedefs

typedef uint32_t ADAGFX_PORT_t
 PORT values are 32-bit.
 
typedef volatile ADAGFX_PORT_tPORTreg_t
 PORT register type.
 

Enumerations

enum  tftBusWidth { tft8bitbus, tft16bitbus }
 

Detailed Description

Part of Adafruit's GFX graphics library. Originally this class was written to handle a range of color TFT displays connected via SPI, but over time this library and some display-specific subclasses have mutated to include some color OLEDs as well as parallel-interfaced displays. The name's been kept for the sake of older code.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor "ladyada" Fried for Adafruit Industries, with contributions from the open source community.

BSD license, all text here must be included in any redistribution.

Enumeration Type Documentation

◆ tftBusWidth

For first arg to parallel constructor