Zephyr API Documentation
4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ac057tc1.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2026 Fabian Blatz <fabianblatz@gmail.com>
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
12
13
#ifndef ZEPHYR_INCLUDE_DRIVERS_DISPLAY_AC057TC1_H_
14
#define ZEPHYR_INCLUDE_DRIVERS_DISPLAY_AC057TC1_H_
15
24
25
#include <
zephyr/drivers/display.h
>
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
37
#define PIXEL_FORMAT_L_4 (PIXEL_FORMAT_PRIV_START << 0)
38
42
#define AC057TC1_BITS_PER_PIXEL 4
43
48
#define AC057TC1_COLOR_BLACK 0x00
49
#define AC057TC1_COLOR_WHITE 0x01
50
#define AC057TC1_COLOR_GREEN 0x02
51
#define AC057TC1_COLOR_BLUE 0x03
52
#define AC057TC1_COLOR_RED 0x04
53
#define AC057TC1_COLOR_YELLOW 0x05
54
#define AC057TC1_COLOR_ORANGE 0x06
56
64
#define AC057TC1_PACK_PIXELS(pixel1, pixel2) (((pixel1) << 4) | ((pixel2) & 0x0F))
65
73
#define AC057TC1_BUFFER_SIZE(width, height) (((width) * (height)) / 2)
74
75
#ifdef __cplusplus
76
}
77
#endif
78
82
83
#endif
/* ZEPHYR_INCLUDE_DRIVERS_DISPLAY_AC057TC1_H_ */
display.h
Main header file for display driver API.
zephyr
drivers
display
ac057tc1.h
Generated on
for Zephyr API Documentation by
1.15.0