Loading...
Searching...
No Matches
gc9a01.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Technische Universität Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
59
60#include "lcd.h"
61
62#ifdef __cplusplus
63extern "C" {
64#endif
65
76#ifndef CONFIG_GC9A01_VREG1A
77# define CONFIG_GC9A01_VREG1A (5340)
78#endif
79
86#ifndef CONFIG_GC9A01_VREG2A
87# define CONFIG_GC9A01_VREG2A (-3980)
88#endif
90
95#define GC9A01_ROTATION_VERT LCD_MADCTL_MX
96#define GC9A01_ROTATION_VERT_FLIP LCD_MADCTL_MY
97#define GC9A01_ROTATION_HORZ LCD_MADCTL_MV
98#define GC9A01_ROTATION_HORZ_FLIP LCD_MADCTL_MV | \
99 LCD_MADCTL_MY | \
100 LCD_MADCTL_MX
101
102
106typedef struct {
109} gc9a01_t;
110
115
116#ifdef __cplusplus
117}
118#endif
119
const lcd_driver_t lcd_gc9a01_driver
LCD device operations table.
struct lcd_driver lcd_driver_t
LCD driver interface.
Definition lcd.h:167
Device descriptor for the driver.
Definition gc9a01.h:106
lcd_t dev
Device initialization parameters.
Definition gc9a01.h:108
Device descriptor for a lcd.
Definition lcd.h:172