Loading...
Searching...
No Matches
pcd8544_internal.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#ifdef __cplusplus
20 extern "C" {
21#endif
22
26#define RESET_DELAY (5000) /* keep reset low for 5ms */
27
32#define MODE_CMD (0)
33#define MODE_DTA (1)
35
40#define CONTRAST_MAX (127U)
41#define TEMP_MAX (3U)
42#define BIAS_MAX (7U)
44
49#define CMD_DISABLE (0x24)
50#define CMD_ENABLE_H (0x20)
51#define CMD_ENABLE_V (0x22)
52#define CMD_EXTENDED (0x21)
53
54#define CMD_MODE_BLANK (0x08)
55#define CMD_MODE_NORMAL (0x0c)
56#define CMD_MODE_ALLON (0x09)
57#define CMD_MODE_INVERSE (0x0d)
58
59#define CMD_SET_Y (0x40)
60#define CMD_SET_X (0x80)
61
62#define CMD_EXT_TEMP (0x04)
63#define CMD_EXT_BIAS (0x10)
64#define CMD_EXT_CONTRAST (0x80)
66
67#ifdef __cplusplus
68}
69#endif
70