1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
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.
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 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
22 // The resolution of the LCD
26 // 8bpp Color Mode - Some basic colors defined for ease of use
27 // remember 8bpp color = 3xRed, 3xGreen & 2xBlue bits
28 // organised as RRRGGGBB
39 // EPSON LCD command set
46 #define EEPSRRD1 0x17C
47 #define EEPSRRD2 0x17D
57 #define ESCSTART 0x1AB
65 #define ERGBSET8 0x1CE
69 #define EVOLDOWN 0x1D7
75 // PHILIPS LCD command set
77 #define PSWRESET 0x101
78 #define PBSTROFF 0x102
80 #define PRDDIDIF 0x104
82 #define PSLEEPIN 0x110
83 #define PSLEEPOUT 0x111
91 #define PDISPOFF 0x128
98 #define PVSCRDEF 0x133
101 #define PMADCTL 0x136
103 #define PIDMOFF 0x138
105 #define PCOLMOD 0x13A
106 #define PSETVOP 0x1B0
112 #define PTCVOPE 0x1BF
114 #define PSETMUL 0x1C2
115 #define PTCVOPAB 0x1C3
116 #define PTCVOPCD 0x1C4
120 #define PRDTEMP 0x1C8
128 void LCDSend(unsigned int data
);
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
);