Project 6
Monochrome Liquid-Crystal Display
Neff Site
pcd8544.h
Go to the documentation of this file.
1
17
#ifndef PCD8544_H_
18
#define PCD8544_H_
19
20
// No operation
21
#define PCD8544_NOP 0x00
22
23
// Function set
24
#define PCD8544_FUNCTIONSET 0x20
25
#define PCD8544_ACTIVATE 0x00
26
#define PCD8544_POWERDOWN 0x04
27
#define PCD8544_VERTICAL_ADRESSING 0x02
28
#define PCD8544_HORIZONTAL_ADRESSING 0x00
29
#define PCD8544_BASIC_MODE 0x00
30
#define PCD8544_EXTENDED_MODE 0x01
31
32
/*
33
* Basic mode instructions
34
*/
35
36
// Display control
37
#define PCD8544_DISPLAYCONTROL 0x08
38
#define PCD8544_DISPLAY_TEST 0x01
39
#define PCD8544_DISPLAY_BLANK 0x00
40
#define PCD8544_DISPLAY_NORMAL 0x04
41
#define PCD8544_DISPLAY_INVERSE 0x5
42
43
// Set Y address of RAM
44
#define PCD8544_SET_YADDR 0x40
45
#define PCD8544_YADDR(Y) ((Y) & 0x07)
46
47
// Set X address of RAM
48
#define PCD8544_SET_XADDR 0x80
49
#define PCD8544_XADDR(X) ((X) & 0x7f)
50
51
/*
52
* Extended mode instructions
53
*/
54
55
// Temperature control
56
#define PCD8544_TEMP_CONTROL 0x04
57
#define PCD8544_TEMP(T) ((T) & 0x03)
58
59
// Bias system
60
#define PCD8544_SET_BIAS 0x10
61
#define PCD8544_BIAS(B) ((B) & 0x07)
62
63
// Set VOP
64
#define PCD8544_SET_VOP 0x80
65
#define PCD8544_VOP(V) ((V) & 0x7f)
66
67
#endif
/* PCD8544_H_ */
Contact
Generated by
1.8.13