26#ifndef _ULTIBO_ILI9486_H
27#define _ULTIBO_ILI9486_H
39#define ILI9486_FRAMEBUFFER_DESCRIPTION "ILITEK ILI9486 TFT LCD"
42#define ILI9486_SPI_RATE 32000000
45#define ILI9486_CMD_NOP 0x00
46#define ILI9486_CMD_SWRESET 0x01
48#define ILI9486_CMD_SLPOUT 0x11
50#define ILI9486_CMD_DISPOFF 0x28
51#define ILI9486_CMD_DISPON 0x29
53#define ILI9486_CMD_CASET 0x2A
54#define ILI9486_CMD_PASET 0x2B
55#define ILI9486_CMD_RAMWR 0x2C
57#define ILI9486_CMD_MADCTL 0x36
59#define ILI9486_CMD_COLMOD 0x3A
61#define ILI9486_CMD_IFMODE 0xB0
63#define ILI9486_CMD_FRMCTR1 0xB1
65#define ILI9486_CMD_DISCTRL 0xB6
67#define ILI9486_CMD_PWCTRL1 0xC0
68#define ILI9486_CMD_PWCTRL2 0xC1
69#define ILI9486_CMD_PWCTRL3 0xC2
71#define ILI9486_CMD_VMCTRL1 0xC5
73#define ILI9486_CMD_PGAMCTRL 0xE0
74#define ILI9486_CMD_NGAMCTRL 0xE1
75#define ILI9486_CMD_DGAMCTRL 0xE2
78#define ILI9486_CMD_MADCTL_MY 0x80
79#define ILI9486_CMD_MADCTL_MX 0x40
80#define ILI9486_CMD_MADCTL_MV 0x20
81#define ILI9486_CMD_MADCTL_ML 0x10
82#define ILI9486_CMD_MADCTL_RGB 0x00
83#define ILI9486_CMD_MADCTL_BGR 0x08
84#define ILI9486_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 ili9486_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 ILI9486 Framebuffer device which can be accessed using the frameb...
struct _ILI9486_FRAMEBUFFER ILI9486_FRAMEBUFFER
Definition ili9486.h:87
uint32_t STDCALL ili9486_framebuffer_destroy(FRAMEBUFFER_DEVICE *framebuffer)
Release, deregister and destroy an ILI9486 Framebuffer device created by this driver.
struct _SPI_DEVICE SPI_DEVICE
Definition spi.h:108
TFT_FRAMEBUFFER tft
Definition ili9486.h:91
struct _TFT_FRAMEBUFFER TFT_FRAMEBUFFER
Definition tftframebuffer.h:43