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