]> git.sur5r.net Git - freertos/blobdiff - Demo/CORTEX_LPC1768_GCC_RedSuite/src/LCD/lcd_commands.h
Add new LPC1768 RedSuite demo.
[freertos] / Demo / CORTEX_LPC1768_GCC_RedSuite / src / LCD / lcd_commands.h
diff --git a/Demo/CORTEX_LPC1768_GCC_RedSuite/src/LCD/lcd_commands.h b/Demo/CORTEX_LPC1768_GCC_RedSuite/src/LCD/lcd_commands.h
new file mode 100644 (file)
index 0000000..37ebb39
--- /dev/null
@@ -0,0 +1,53 @@
+//*****************************************************************************\r
+//   +--+       \r
+//   | ++----+   \r
+//   +-++    |  \r
+//     |     |  \r
+//   +-+--+  |   \r
+//   | +--+--+  \r
+//   +----+    Copyright (c) 2009 Code Red Technologies Ltd. \r
+//\r
+// lcd_commands.h contains defines mapping onto the commands accepted by the\r
+// Sitronix ST7637 LCD Controller/driver used on the RDB1768 development board.//\r
+//\r
+// Software License Agreement\r
+// \r
+// The software is owned by Code Red Technologies and/or its suppliers, and is \r
+// protected under applicable copyright laws.  All rights are reserved.  Any \r
+// use in violation of the foregoing restrictions may subject the user to criminal \r
+// sanctions under applicable laws, as well as to civil liability for the breach \r
+// of the terms and conditions of this license.\r
+// \r
+// THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED\r
+// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF\r
+// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.\r
+// USE OF THIS SOFTWARE FOR COMMERCIAL DEVELOPMENT AND/OR EDUCATION IS SUBJECT\r
+// TO A CURRENT END USER LICENSE AGREEMENT (COMMERCIAL OR EDUCATIONAL) WITH\r
+// CODE RED TECHNOLOGIES LTD. \r
+\r
+#ifndef LCD_COMMANDS_H_\r
+#define LCD_COMMANDS_H_\r
+\r
+#define DD_NOP                         0x00\r
+#define DD_SWRESET             0x01    //SW reset the display\r
+#define DD_SLPIN               0x10    //Sleep in and booster off\r
+#define DD_SLPOUT              0x11    //Sleep out and booster on\r
+#define DD_NORON               0x13    //Partial mode off (Normal mode on)\r
+#define DD_DISPOFF             0x28    //Display Off\r
+#define DD_DISPON              0x29    //Display On\r
+#define DD_CASET               0x2a    //Column address set\r
+#define DD_RASET               0x2b    //Row address set\r
+#define DD_RAMWR               0x2c    //Memory write\r
+#define DD_MADCTR              0x36    //Memory Data Access Control\r
+#define DD_COLORMOD            0x3a    //Set the color mode for the display \r
+#define DD_ColScanDir  0xb7    //Set the column scanning direction\r
+#define DD_VopSet              0xc0    //LCD supply voltage set\r
+#define DD_BiasSel             0xc3    //Bias selection\r
+#define DD_BstMbpXSel  0xc4    //Booster setting\r
+#define DD_AUTOLOADSET 0xd7    //Control auto load of ROM data\r
+#define DD_EPCTIN              0xe0    //OTP control RD/WR\r
+#define DD_EPREAD              0xe3    //OTP read\r
+#define DD_EPCTOUT             0xe1    //OTP control cancel\r
+\r
+\r
+#endif /*LCD_COMMANDS_H_*/\r