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
5 //-----------------------------------------------------------------------------
7 //-----------------------------------------------------------------------------
12 // The resolution of the LCD
16 // 8bpp Color Mode - Some basic colors defined for ease of use
17 // remember 8bpp color = 3xRed, 3xGreen & 2xBlue bits
18 // organised as RRRGGGBB
29 // EPSON LCD command set
36 #define EEPSRRD1 0x17C
37 #define EEPSRRD2 0x17D
47 #define ESCSTART 0x1AB
55 #define ERGBSET8 0x1CE
59 #define EVOLDOWN 0x1D7
65 // PHILIPS LCD command set
67 #define PSWRESET 0x101
68 #define PBSTROFF 0x102
70 #define PRDDIDIF 0x104
72 #define PSLEEPIN 0x110
73 #define PSLEEPOUT 0x111
81 #define PDISPOFF 0x128
88 #define PVSCRDEF 0x133
102 #define PTCVOPE 0x1BF
104 #define PSETMUL 0x1C2
105 #define PTCVOPAB 0x1C3
106 #define PTCVOPCD 0x1C4
110 #define PRDTEMP 0x1C8
118 void LCDSend(unsigned int data
);
121 void LCDSetXY(unsigned char x
, unsigned char y
);
122 void LCDSetPixel(unsigned char x
, unsigned char y
, unsigned char color
);
123 void LCDString (char *lcd_string
, const char *font_style
,unsigned char x
, unsigned char y
, unsigned char fcolor
, unsigned char bcolor
);
124 void LCDFill (unsigned char xs
,unsigned char ys
,unsigned char width
,unsigned char height
, unsigned char color
);