Go to the documentation of this file.
39 #ifdef MODULE_DISP_DEV
58 #define ILI9341_GVDD 4800
67 #define ILI9341_VCOMH 4250
76 #define ILI9341_VCOML -2000
85 #ifndef ILI9341_LE_MODE
86 #define ILI9341_LE_MODE (0)
110 #ifdef MODULE_DISP_DEV
140 uint16_t y1, uint16_t y2, uint16_t color);
159 uint16_t y2,
const uint16_t *color);
uint16_t lines
Number of lines, from 16 to 320 in 8 line steps.
void ili9341_write_cmd(const ili9341_t *dev, uint8_t cmd, const uint8_t *data, size_t len)
Raw write command.
const ili9341_params_t * params
Device initialization parameters.
spi_t spi
SPI device that the display is connected to.
Device descriptor for a ili9341.
spi_clk_t spi_clk
SPI clock speed to use.
bool inverted
Display works in inverted color mode.
Low-level SPI peripheral driver interface definition.
Generic type for a display device.
gpio_t dcx_pin
pin connected to the DC line
spi_mode_t
Available SPI modes, defining the configuration of clock polarity and clock phase.
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.
Device initialization parameters.
bool rgb
True when display is connected in RGB mode False when display is connected in BGR mode.
spi_clk_t
Available SPI clock speeds.
void ili9341_invert_on(const ili9341_t *dev)
Invert the display colors.
void ili9341_invert_off(const ili9341_t *dev)
Disable color inversion.
gpio_t rst_pin
pin connected to the reset line
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.
Low-level GPIO peripheral driver interface definitions.
int ili9341_init(ili9341_t *dev, const ili9341_params_t *params)
Setup an ili9341 display device.
gpio_t cs_pin
pin connected to the CHIP SELECT line
spi_mode_t spi_mode
SPI mode.
void ili9341_read_cmd(const ili9341_t *dev, uint8_t cmd, uint8_t *data, size_t len)
Raw read command.
unsigned int spi_t
Default type for SPI devices.