Driver for ili941 display. More...

Detailed Description

Driver for ili941 display.

Author
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net

The ILI9341 is a generic display driver for small RGB displays. The driver implemented here operates over SPI to communicate with the device.

The device requires colors to be send in big endian RGB-565 format. The ILI9341_LE_MODE compile time option can switch this, but only use this when strictly necessary. This option will slow down the driver as it certainly can't use DMA anymore, every short has to be converted before transfer.

Definition in file ili9341.h.

#include "periph/spi.h"
#include "periph/gpio.h"
+ Include dependency graph for ili9341.h:

Go to the source code of this file.

Data Structures

struct  ili9341_params_t
 Device initialization parameters. More...
 
struct  ili9341_t
 Device descriptor for a ili9341. More...
 

Macros

#define ILI9341_GVDD   4800
 ILI9341 gvdd level. More...
 
#define ILI9341_VCOMH   4250
 ILI9341 VCOMH voltage level. More...
 
#define ILI9341_VCOML   -2000
 ILI9341 VCOML voltage level. More...
 
#define ILI9341_LE_MODE   (0)
 Convert little endian colors to big endian. More...
 

Functions

int ili9341_init (ili9341_t *dev, const ili9341_params_t *params)
 Setup an ili9341 display device. More...
 
void ili9341_fill (const ili9341_t *dev, uint16_t x1, uint16_t x2, uint16_t y1, uint16_t y2, uint16_t color)
 Fill a rectangular area with a single pixel color. More...
 
void ili9341_pixmap (const ili9341_t *dev, uint16_t x1, uint16_t x2, uint16_t y1, uint16_t y2, const uint16_t *color)
 Fill a rectangular area with an array of pixels. More...
 
void ili9341_write_cmd (const ili9341_t *dev, uint8_t cmd, const uint8_t *data, size_t len)
 Raw write command. More...
 
void ili9341_read_cmd (const ili9341_t *dev, uint8_t cmd, uint8_t *data, size_t len)
 Raw read command. More...
 
void ili9341_invert_on (const ili9341_t *dev)
 Invert the display colors. More...
 
void ili9341_invert_off (const ili9341_t *dev)
 Disable color inversion. More...