st7789_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Koen Zandberg
3  * 2023 Gunar Schorcht
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 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #include "st77xx_internal.h"
30 
37 #define LCD_CMD_RAMWRC 0x3c
38 #define LCD_CMD_RAMRDC 0x3e
39 #define LCD_CMD_PORCTRL 0xb2
40 #define LCD_CMD_GCTRL 0xb7
41 #define LCD_CMD_VCOMS 0xbb
42 #define LCD_CMD_LCMCTRL 0xc0
43 #define LCD_CMD_VDVVRHEN 0xc2
44 #define LCD_CMD_VRHS 0xc3
45 #define LCD_CMD_VDVS 0xc4
46 #define LCD_CMD_VCMOFSET 0xc4
47 #define LCD_CMD_FRCTRL2 0xc6
48 #define LCD_CMD_PWCTRL1X 0xd0
54 int st7789_init(lcd_t *dev, const lcd_params_t *params);
55 
56 #ifdef __cplusplus
57 }
58 #endif
int st7789_init(lcd_t *dev, const lcd_params_t *params)
ST7789 controller specific initialization part.
Internal definitions that are common for all ST77xx controllers.
Device initialization parameters.
Definition: lcd.h:112
Device descriptor for a lcd.
Definition: lcd.h:175