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