Loading...
Searching...
No Matches
pcd8544_internal.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
21
22#ifdef __cplusplus
23 extern "C" {
24#endif
25
29#define RESET_DELAY (5000) /* keep reset low for 5ms */
30
35#define MODE_CMD (0)
36#define MODE_DTA (1)
38
43#define CONTRAST_MAX (127U)
44#define TEMP_MAX (3U)
45#define BIAS_MAX (7U)
47
52#define CMD_DISABLE (0x24)
53#define CMD_ENABLE_H (0x20)
54#define CMD_ENABLE_V (0x22)
55#define CMD_EXTENDED (0x21)
56
57#define CMD_MODE_BLANK (0x08)
58#define CMD_MODE_NORMAL (0x0c)
59#define CMD_MODE_ALLON (0x09)
60#define CMD_MODE_INVERSE (0x0d)
61
62#define CMD_SET_Y (0x40)
63#define CMD_SET_X (0x80)
64
65#define CMD_EXT_TEMP (0x04)
66#define CMD_EXT_BIAS (0x10)
67#define CMD_EXT_CONTRAST (0x80)
69
70#ifdef __cplusplus
71}
72#endif
73