26#ifndef _ULTIBO_ILI9340_H
27#define _ULTIBO_ILI9340_H
39#define ILI9340_FRAMEBUFFER_DESCRIPTION "ILITEK ILI9340 TFT LCD"
42#define ILI9340_SPI_RATE 32000000
45#define ILI9340_CMD_NOP 0x00
46#define ILI9340_CMD_SWRESET 0x01
48#define ILI9340_CMD_SLPOUT 0x11
50#define ILI9340_CMD_GAMSET 0x26
52#define ILI9340_CMD_DISPOFF 0x28
53#define ILI9340_CMD_DISPON 0x29
55#define ILI9340_CMD_CASET 0x2A
56#define ILI9340_CMD_PASET 0x2B
57#define ILI9340_CMD_RAMWR 0x2C
59#define ILI9340_CMD_MADCTL 0x36
61#define ILI9340_CMD_COLMOD 0x3A
63#define ILI9340_CMD_FRMCTR1 0xB1
65#define ILI9340_CMD_DISCTRL 0xB6
67#define ILI9340_CMD_PWCTRL1 0xC0
68#define ILI9340_CMD_PWCTRL2 0xC1
70#define ILI9340_CMD_VMCTRL1 0xC5
71#define ILI9340_CMD_VMCTRL2 0xC7
73#define ILI9340_CMD_PGAMCTRL 0xE0
74#define ILI9340_CMD_NGAMCTRL 0xE1
77#define ILI9340_CMD_MADCTL_MY 0x80
78#define ILI9340_CMD_MADCTL_MX 0x40
79#define ILI9340_CMD_MADCTL_MV 0x20
80#define ILI9340_CMD_MADCTL_ML 0x10
81#define ILI9340_CMD_MADCTL_RGB 0x00
82#define ILI9340_CMD_MADCTL_BGR 0x08
83#define ILI9340_CMD_MADCTL_MH 0x04
struct _FRAMEBUFFER_DEVICE FRAMEBUFFER_DEVICE
Definition framebuffer.h:112
#define STDCALL
Definition globaltypes.h:45
struct _GPIO_INFO GPIO_INFO
Definition gpio.h:176
FRAMEBUFFER_DEVICE *STDCALL ili9340_framebuffer_create(SPI_DEVICE *spi, uint16_t chipselect, char *name, uint32_t rotation, uint32_t width, uint32_t height, GPIO_INFO *rst, GPIO_INFO *dc, GPIO_INFO *bl)
Create, register and allocate a new ILI9340 Framebuffer device which can be accessed using the frameb...
struct _ILI9340_FRAMEBUFFER ILI9340_FRAMEBUFFER
Definition ili9340.h:86
uint32_t STDCALL ili9340_framebuffer_destroy(FRAMEBUFFER_DEVICE *framebuffer)
Release, deregister and destroy an ILI9340 Framebuffer device created by this driver.
struct _SPI_DEVICE SPI_DEVICE
Definition spi.h:108
TFT_FRAMEBUFFER tft
Definition ili9340.h:90
struct _TFT_FRAMEBUFFER TFT_FRAMEBUFFER
Definition tftframebuffer.h:43