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
10#pragma once
11
33
34#include "lcd.h"
35
36#ifdef MODULE_DISP_DEV
37#include "disp_dev.h"
38#endif
39
40#ifdef __cplusplus
41extern "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
88
89
93typedef struct {
95} ili9341_t;
96
101
102#ifdef __cplusplus
103}
104#endif
const lcd_driver_t lcd_ili9341_driver
LCD device operations table.
struct lcd_driver lcd_driver_t
LCD driver interface.
Definition lcd.h:170
Device descriptor for a ili9341.
Definition ili9341.h:93
lcd_t dev
Pointer to the common lcd device.
Definition ili9341.h:94
Device descriptor for a lcd.
Definition lcd.h:175