--- /dev/null
+#ifndef __LCD\r
+#define __LCD\r
+\r
+#define LCD_RESET_HIGH() PIO_OUTPUT_DATA_SET |= (1<<GPIO_LRST)\r
+#define LCD_RESET_LOW() PIO_OUTPUT_DATA_CLEAR |= (1<<GPIO_LRST)\r
+\r
+// The resolution of the LCD\r
+#define LCD_XRES 132\r
+#define LCD_YRES 132\r
+\r
+// 8bpp Color Mode - Some basic colors defined for ease of use\r
+// remember 8bpp color = 3xRed, 3xGreen & 2xBlue bits\r
+// organised as RRRGGGBB\r
+\r
+#define BLACK 0x00\r
+#define BLUE 0x03\r
+#define GREEN 0x1C\r
+#define CYAN 0x1F\r
+#define RED 0xE0\r
+#define MAGENTA 0xE3\r
+#define YELLOW 0xFC\r
+#define WHITE 0xFF\r
+\r
+// EPSON LCD command set\r
+#define ECASET 0x115\r
+#define EPWRCTR 0x120\r
+#define ENOP 0x125\r
+#define ERAMWR 0x15C\r
+#define ERAMRD 0x15D\r
+#define EPASET 0x175\r
+#define EEPSRRD1 0x17C\r
+#define EEPSRRD2 0x17D\r
+#define EVOLCTR 0x181\r
+#define ETMPGRD 0x182\r
+#define ESLPOUT 0x194\r
+#define ESLPIN 0x195\r
+#define EDISNOR 0x1A6\r
+#define EDISINV 0x1A7\r
+#define EPTLIN 0x1A8\r
+#define EPTLOUT 0x1A9\r
+#define EASCSET 0x1AA\r
+#define ESCSTART 0x1AB\r
+#define EDISOFF 0x1AE\r
+#define EDISON 0x1AF\r
+#define ECOMSCN 0x1BB\r
+#define EDATCTL 0x1BC\r
+#define EDISCTL 0x1CA\r
+#define EEPCOUT 0x1CC\r
+#define EEPCTIN 0x1CD\r
+#define ERGBSET8 0x1CE\r
+#define EOSCON 0x1D1\r
+#define EOSCOFF 0x1D2\r
+#define EVOLUP 0x1D6\r
+#define EVOLDOWN 0x1D7\r
+#define ERMWIN 0x1E0\r
+#define ERMWOUT 0x1EE\r
+#define EEPMWR 0x1FC\r
+#define EEPMRD 0x1FD\r
+\r
+// PHILIPS LCD command set\r
+#define PNOP 0x100\r
+#define PSWRESET 0x101\r
+#define PBSTROFF 0x102\r
+#define PBSTRON 0x103\r
+#define PRDDIDIF 0x104\r
+#define PRDDST 0x109\r
+#define PSLEEPIN 0x110\r
+#define PSLEEPOUT 0x111\r
+#define PPTLON 0x112\r
+#define PNORON 0x113\r
+#define PINVOFF 0x120\r
+#define PINVON 0x121\r
+#define PDALO 0x122\r
+#define PDAL 0x123\r
+#define PSETCON 0x125\r
+#define PDISPOFF 0x128\r
+#define PDISPON 0x129\r
+#define PCASET 0x12A\r
+#define PPASET 0x12B\r
+#define PRAMWR 0x12C\r
+#define PRGBSET 0x12D\r
+#define PPTLAR 0x130\r
+#define PVSCRDEF 0x133\r
+#define PTEOFF 0x134\r
+#define PTEON 0x135\r
+#define PMADCTL 0x136\r
+#define PSEP 0x137\r
+#define PIDMOFF 0x138\r
+#define PIDMON 0x139\r
+#define PCOLMOD 0x13A\r
+#define PSETVOP 0x1B0\r
+#define PBRS 0x1B4\r
+#define PTRS 0x1B6\r
+#define PFINV 0x1B9\r
+#define PDOR 0x1BA\r
+#define PTCDFE 0x1BD\r
+#define PTCVOPE 0x1BF\r
+#define PEC 0x1C0\r
+#define PSETMUL 0x1C2\r
+#define PTCVOPAB 0x1C3\r
+#define PTCVOPCD 0x1C4\r
+#define PTCDF 0x1C5\r
+#define PDF8C 0x1C6\r
+#define PSETBS 0x1C7\r
+#define PRDTEMP 0x1C8\r
+#define PNLI 0x1C9\r
+#define PRDID1 0x1DA\r
+#define PRDID2 0x1DB\r
+#define PRDID3 0x1DC\r
+#define PSFD 0x1EF\r
+#define PECM 0x1F0\r
+\r
+void LCDSend(unsigned int data);\r
+void LCDInit(void);\r
+void LCDReset(void);\r
+void LCDSetXY(unsigned char x, unsigned char y);\r
+void LCDSetPixel(unsigned char x, unsigned char y, unsigned char color);\r
+void LCDString (char *lcd_string, const char *font_style,unsigned char x, unsigned char y, unsigned char fcolor, unsigned char bcolor);\r
+void LCDFill (unsigned char xs,unsigned char ys,unsigned char width,unsigned char height, unsigned char color);\r
+#endif\r