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