EasyTFT Board Capacitive driver.
More...
|
#define | TFT7_MIN_BACKLIGHT (0) |
| Mapping for backlight control.
|
|
#define | TFT7_BACKLIGHT_10 (0.1) |
|
#define | TFT7_BACKLIGHT_20 (0.2) |
|
#define | TFT7_BACKLIGHT_30 (0.3) |
|
#define | TFT7_BACKLIGHT_40 (0.4) |
|
#define | TFT7_BACKLIGHT_50 (0.5) |
|
#define | TFT7_BACKLIGHT_60 (0.6) |
|
#define | TFT7_BACKLIGHT_70 (0.7) |
|
#define | TFT7_BACKLIGHT_80 (0.8) |
|
#define | TFT7_BACKLIGHT_90 (0.9) |
|
#define | TFT7_MAX_BACKLIGHT (1) |
|
#define | TFT_MIN_BACKLIGHT TFT7_MIN_BACKLIGHT |
|
#define | TFT_MAX_BACKLIGHT TFT7_MAX_BACKLIGHT |
|
#define | TFT7_MAP_CTRL_BITS(tft_cfg) |
| Mapping control pins.
|
|
#define | TFT_MAP_CTRL_BITS TFT7_MAP_CTRL_BITS |
|
#define | TFT7_MAP_CTRL_8BIT(tft_cfg) |
| Mapping configuration structure to 8 bit host interface defined with board.
|
|
#define | TFT_MAP_CTRL_8BIT TFT7_MAP_CTRL_8BIT |
|
#define | TFT7_MAP_CTRL_16BIT(tft_cfg) |
| Mapping configuration structure to 16 bit host interface defined with board.
|
|
#define | TFT_MAP_CTRL_16BIT TFT7_MAP_CTRL_16BIT |
|
|
typedef struct tft7_board_s | tft7_board_t |
| EasyTFT Board definition structure.
|
|
|
enum | tft7_host_interface_t { TFT7_HOST_INTERFACE_8BIT = 0
, TFT7_HOST_INTERFACE_16BIT
} |
| Host interface configuration enumeration.
|
|
enum | tft7_orientation_t { TFT_MODE_LANDSCAPE_UP = 0
, TFT_MODE_PORTRAIT_LEFT
, TFT_MODE_LANDSCAPE_DOWN
, TFT_MODE_PORTRAIT_RIGHT
} |
| Mapping structure for display orientation.
|
|
◆ TFT7_MAP_CTRL_16BIT
#define TFT7_MAP_CTRL_16BIT |
( |
| tft_cfg | ) |
|
Value:
tft_cfg.data_channel_0 = TFT_16BIT_DATA_PORT_CH0; \
tft_cfg.data_channel_0_mask = TFT_16BIT_DATA_PORT_CH0_MASK; \
tft_cfg.data_channel_1 = TFT_16BIT_DATA_PORT_CH1; \
tft_cfg.data_channel_1_mask = TFT_16BIT_DATA_PORT_CH1_MASK; \
tft_cfg.host_interface = TFT7_HOST_INTERFACE_16BIT;
#define TFT7_MAP_CTRL_BITS(tft_cfg)
Mapping control pins.
Definition tft7.h:85
◆ TFT7_MAP_CTRL_8BIT
#define TFT7_MAP_CTRL_8BIT |
( |
| tft_cfg | ) |
|
Value:
tft_cfg.data_channel_0 = TFT_8BIT_DATA_PORT_CH0; \
tft_cfg.data_channel_0_mask = TFT_8BIT_DATA_PORT_CH0_MASK; \
tft_cfg.host_interface = TFT7_HOST_INTERFACE_8BIT;
◆ TFT7_MAP_CTRL_BITS
#define TFT7_MAP_CTRL_BITS |
( |
| tft_cfg | ) |
|
Value: tft_cfg.tft_rst = TFT_RST;\
tft_cfg.tft_cs = TFT_CS; \
tft_cfg.tft_rs = TFT_RS; \
tft_cfg.tft_wr = TFT_WR; \
tft_cfg.tft_rd = TFT_RD; \
◆ tft7_init()
- Parameters
-
cfg | Configuration structure. |
driver | TFT driver object structure used to store driver context data. |
- Returns
- Returns TFT driver instance handle.
◆ tft7_set_backlight()
void tft7_set_backlight |
( |
float | intensity | ) |
|
- Parameters
-
intensity | Display backlight intensity that will be set as active. |
- Returns
- Nothing.
◆ tft7_set_display_orientation()
- Parameters
-
cfg | Configuration structure. |
driver | TFT driver object structure used to store driver context data. |
orientation | Display orientation that will be set as active. |
- Returns
- Nothing.