Loading...
Searching...
No Matches
ili9341.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Koen Zandberg
3 * SPDX-FileCopyrightText: 2021 Francisco Molina
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
30
31#include "lcd.h"
32
33#ifdef MODULE_DISP_DEV
34#include "disp_dev.h"
35#endif
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
47#ifndef CONFIG_ILI9341_GVDD
48#define CONFIG_ILI9341_GVDD 4800
49#endif
50
59#ifndef CONFIG_ILI9341_VCOMH
60#define CONFIG_ILI9341_VCOMH 4250
61#endif
62
71#ifndef CONFIG_ILI9341_VCOML
72#define CONFIG_ILI9341_VCOML -2000
73#endif
74
79#define ILI9341_ROTATION_VERT LCD_MADCTL_MX
80#define ILI9341_ROTATION_VERT_FLIP LCD_MADCTL_MY
81#define ILI9341_ROTATION_HORZ LCD_MADCTL_MV
82#define ILI9341_ROTATION_HORZ_FLIP LCD_MADCTL_MV | \
83 LCD_MADCTL_MY | \
84 LCD_MADCTL_MX
85
86
90typedef struct {
92} ili9341_t;
93
98
99#ifdef __cplusplus
100}
101#endif
const lcd_driver_t lcd_ili9341_driver
LCD device operations table.
struct lcd_driver lcd_driver_t
LCD driver interface.
Definition lcd.h:167
Device descriptor for a ili9341.
Definition ili9341.h:90
lcd_t dev
Pointer to the common lcd device.
Definition ili9341.h:91
Device descriptor for a lcd.
Definition lcd.h:172