Loading...
Searching...
No Matches
ili9341.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Koen Zandberg
3 * 2021 Francisco Molina
4 *
5 * This file is subject to the terms and conditions of the GNU Lesser
6 * General Public License v2.1. See the file LICENSE in the top level
7 * directory for more details.
8 */
9
32#ifndef ILI9341_H
33#define ILI9341_H
34
35#include "lcd.h"
36
37#ifdef MODULE_DISP_DEV
38#include "disp_dev.h"
39#endif
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
51#ifndef CONFIG_ILI9341_GVDD
52#define CONFIG_ILI9341_GVDD 4800
53#endif
54
63#ifndef CONFIG_ILI9341_VCOMH
64#define CONFIG_ILI9341_VCOMH 4250
65#endif
66
75#ifndef CONFIG_ILI9341_VCOML
76#define CONFIG_ILI9341_VCOML -2000
77#endif
78
79
84#define ILI9341_ROTATION_VERT LCD_MADCTL_MX
85#define ILI9341_ROTATION_VERT_FLIP LCD_MADCTL_MY
86#define ILI9341_ROTATION_HORZ LCD_MADCTL_MV
87#define ILI9341_ROTATION_HORZ_FLIP LCD_MADCTL_MV | \
88 LCD_MADCTL_MY | \
89 LCD_MADCTL_MX
95typedef struct {
97} ili9341_t;
98
103
104#ifdef __cplusplus
105}
106#endif
107#endif /* ILI9341_H */
const lcd_driver_t lcd_ili9341_driver
LCD device operations table.
Device descriptor for a ili9341.
Definition ili9341.h:95
lcd_t dev
Pointer to the common lcd device.
Definition ili9341.h:96
LCD driver interface.
Definition lcd.h:196
Device descriptor for a lcd.
Definition lcd.h:176