Loading...
Searching...
No Matches
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
23#ifndef ST7789_INTERNAL_H
24#define ST7789_INTERNAL_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include "st77xx_internal.h"
31
38#define LCD_CMD_RAMWRC 0x3c
39#define LCD_CMD_RAMRDC 0x3e
40#define LCD_CMD_PORCTRL 0xb2
41#define LCD_CMD_GCTRL 0xb7
42#define LCD_CMD_VCOMS 0xbb
43#define LCD_CMD_LCMCTRL 0xc0
44#define LCD_CMD_VDVVRHEN 0xc2
45#define LCD_CMD_VRHS 0xc3
46#define LCD_CMD_VDVS 0xc4
47#define LCD_CMD_VCMOFSET 0xc4
48#define LCD_CMD_FRCTRL2 0xc6
49#define LCD_CMD_PWCTRL1X 0xd0
55int st7789_init(lcd_t *dev, const lcd_params_t *params);
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* ST7789_INTERNAL_H */
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:113
Device descriptor for a lcd.
Definition lcd.h:176