fb11e647
vrobic
reseau statique a...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/*
* Copyright (C) 2015 Freie Universitรคt Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup driver_pcd8544
*
* @{
*
* @file
* @brief Internal definitions for PCD8544 displays
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifndef PDC8544_INTERNAL_H
#define PDC8544_INTERNAL_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Delay for resetting the device
*/
#define RESET_DELAY (5000) /* keep reset low for 5ms */
/**
* @brief Communication modes: command or data
* @{
*/
#define MODE_CMD (0) /**< we are sending a command */
#define MODE_DTA (1) /**< we are sending some data */
/** @} */
/**
* @brief Maximum parameter values
* @{
*/
#define CONTRAST_MAX (127U) /**< maximum possible contrast value */
#define TEMP_MAX (3U) /**< maximum possible temp coefficient */
#define BIAS_MAX (7U) /**< maximum possible bias value */
/** @} */
/**
* @brief Display commands
* @{
*/
#define CMD_DISABLE (0x24) /**< set LCD into power down mode */
#define CMD_ENABLE_H (0x20) /**< ON using horizontal addressing */
#define CMD_ENABLE_V (0x22) /**< ON using vertical addressing */
#define CMD_EXTENDED (0x21) /**< enter extended instruction set mode */
#define CMD_MODE_BLANK (0x08) /**< display nothing */
#define CMD_MODE_NORMAL (0x0c) /**< display memory content */
#define CMD_MODE_ALLON (0x09) /**< display 'black' screen */
#define CMD_MODE_INVERSE (0x0d) /**< display inverted memory content */
#define CMD_SET_Y (0x40) /**< set 3-bit y address, OR with Y value */
#define CMD_SET_X (0x80) /**< set 7-bit x address, OR with X value */
#define CMD_EXT_TEMP (0x04) /**< select temperature coefficient */
#define CMD_EXT_BIAS (0x10) /**< select BIAS value */
#define CMD_EXT_CONTRAST (0x80) /**< set contrast, OR with [0 - 127] */
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* PDC8544_INTERNAL_H */
/** @} */
|