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 
10 #pragma once
11 
34 #include "lcd.h"
35 
36 #ifdef MODULE_DISP_DEV
37 #include "disp_dev.h"
38 #endif
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
50 #ifndef CONFIG_ILI9341_GVDD
51 #define CONFIG_ILI9341_GVDD 4800
52 #endif
53 
62 #ifndef CONFIG_ILI9341_VCOMH
63 #define CONFIG_ILI9341_VCOMH 4250
64 #endif
65 
74 #ifndef CONFIG_ILI9341_VCOML
75 #define CONFIG_ILI9341_VCOML -2000
76 #endif
77 
82 #define ILI9341_ROTATION_VERT LCD_MADCTL_MX
83 #define ILI9341_ROTATION_VERT_FLIP LCD_MADCTL_MY
84 #define ILI9341_ROTATION_HORZ LCD_MADCTL_MV
85 #define ILI9341_ROTATION_HORZ_FLIP LCD_MADCTL_MV | \
86  LCD_MADCTL_MY | \
87  LCD_MADCTL_MX
93 typedef struct {
95 } ili9341_t;
96 
100 extern const lcd_driver_t lcd_ili9341_driver;
101 
102 #ifdef __cplusplus
103 }
104 #endif
const lcd_driver_t lcd_ili9341_driver
LCD device operations table.
Device descriptor for a ili9341.
Definition: ili9341.h:93
lcd_t dev
Pointer to the common lcd device.
Definition: ili9341.h:94
LCD driver interface.
Definition: lcd.h:195
Device descriptor for a lcd.
Definition: lcd.h:175