]> git.zerfleddert.de Git - proxmark3-svn/blob - armsrc/LCD.h
Initial commit for the firmware. Used the 20090306_ela version as baseline.
[proxmark3-svn] / armsrc / LCD.h
1 #ifndef __LCD
2 #define __LCD
3
4 #define LCD_RESET_HIGH() PIO_OUTPUT_DATA_SET |= (1<<GPIO_LRST)
5 #define LCD_RESET_LOW() PIO_OUTPUT_DATA_CLEAR |= (1<<GPIO_LRST)
6
7 // The resolution of the LCD
8 #define LCD_XRES 132
9 #define LCD_YRES 132
10
11 // 8bpp Color Mode - Some basic colors defined for ease of use
12 // remember 8bpp color = 3xRed, 3xGreen & 2xBlue bits
13 // organised as RRRGGGBB
14
15 #define BLACK 0x00
16 #define BLUE 0x03
17 #define GREEN 0x1C
18 #define CYAN 0x1F
19 #define RED 0xE0
20 #define MAGENTA 0xE3
21 #define YELLOW 0xFC
22 #define WHITE 0xFF
23
24 // EPSON LCD command set
25 #define ECASET 0x115
26 #define EPWRCTR 0x120
27 #define ENOP 0x125
28 #define ERAMWR 0x15C
29 #define ERAMRD 0x15D
30 #define EPASET 0x175
31 #define EEPSRRD1 0x17C
32 #define EEPSRRD2 0x17D
33 #define EVOLCTR 0x181
34 #define ETMPGRD 0x182
35 #define ESLPOUT 0x194
36 #define ESLPIN 0x195
37 #define EDISNOR 0x1A6
38 #define EDISINV 0x1A7
39 #define EPTLIN 0x1A8
40 #define EPTLOUT 0x1A9
41 #define EASCSET 0x1AA
42 #define ESCSTART 0x1AB
43 #define EDISOFF 0x1AE
44 #define EDISON 0x1AF
45 #define ECOMSCN 0x1BB
46 #define EDATCTL 0x1BC
47 #define EDISCTL 0x1CA
48 #define EEPCOUT 0x1CC
49 #define EEPCTIN 0x1CD
50 #define ERGBSET8 0x1CE
51 #define EOSCON 0x1D1
52 #define EOSCOFF 0x1D2
53 #define EVOLUP 0x1D6
54 #define EVOLDOWN 0x1D7
55 #define ERMWIN 0x1E0
56 #define ERMWOUT 0x1EE
57 #define EEPMWR 0x1FC
58 #define EEPMRD 0x1FD
59
60 // PHILIPS LCD command set
61 #define PNOP 0x100
62 #define PSWRESET 0x101
63 #define PBSTROFF 0x102
64 #define PBSTRON 0x103
65 #define PRDDIDIF 0x104
66 #define PRDDST 0x109
67 #define PSLEEPIN 0x110
68 #define PSLEEPOUT 0x111
69 #define PPTLON 0x112
70 #define PNORON 0x113
71 #define PINVOFF 0x120
72 #define PINVON 0x121
73 #define PDALO 0x122
74 #define PDAL 0x123
75 #define PSETCON 0x125
76 #define PDISPOFF 0x128
77 #define PDISPON 0x129
78 #define PCASET 0x12A
79 #define PPASET 0x12B
80 #define PRAMWR 0x12C
81 #define PRGBSET 0x12D
82 #define PPTLAR 0x130
83 #define PVSCRDEF 0x133
84 #define PTEOFF 0x134
85 #define PTEON 0x135
86 #define PMADCTL 0x136
87 #define PSEP 0x137
88 #define PIDMOFF 0x138
89 #define PIDMON 0x139
90 #define PCOLMOD 0x13A
91 #define PSETVOP 0x1B0
92 #define PBRS 0x1B4
93 #define PTRS 0x1B6
94 #define PFINV 0x1B9
95 #define PDOR 0x1BA
96 #define PTCDFE 0x1BD
97 #define PTCVOPE 0x1BF
98 #define PEC 0x1C0
99 #define PSETMUL 0x1C2
100 #define PTCVOPAB 0x1C3
101 #define PTCVOPCD 0x1C4
102 #define PTCDF 0x1C5
103 #define PDF8C 0x1C6
104 #define PSETBS 0x1C7
105 #define PRDTEMP 0x1C8
106 #define PNLI 0x1C9
107 #define PRDID1 0x1DA
108 #define PRDID2 0x1DB
109 #define PRDID3 0x1DC
110 #define PSFD 0x1EF
111 #define PECM 0x1F0
112
113 void LCDSend(unsigned int data);
114 void LCDInit(void);
115 void LCDReset(void);
116 void LCDSetXY(unsigned char x, unsigned char y);
117 void LCDSetPixel(unsigned char x, unsigned char y, unsigned char color);
118 void LCDString (char *lcd_string, const char *font_style,unsigned char x, unsigned char y, unsigned char fcolor, unsigned char bcolor);
119 void LCDFill (unsigned char xs,unsigned char ys,unsigned char width,unsigned char height, unsigned char color);
120 #endif
Impressum, Datenschutz