These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!
GLCD.h
00001 /******************************************************************************/ 00002 /* GLCD.h: Graphic LCD function prototypes and defines */ 00003 /******************************************************************************/ 00004 /* This file is part of the uVision/ARM development tools. */ 00005 /* Copyright (c) 2005-2009 Keil Software. All rights reserved. */ 00006 /* This software may only be used under the terms of a valid, current, */ 00007 /* end user licence from KEIL for a compatible version of KEIL software */ 00008 /* development tools. Nothing else gives you the right to use this software. */ 00009 /******************************************************************************/ 00010 00011 #ifndef _GLCD_H 00012 #define _GLCD_H 00013 00014 /*------------------------------------------------------------------------------ 00015 Color coding 00016 GLCD is coded: 15..11 red, 10..5 green, 4..0 blue (unsigned short) GLCD_R5, GLCD_G6, GLCD_B5 00017 original coding: 17..12 red, 11..6 green, 5..0 blue ORG_R6, ORG_G6, ORG_B6 00018 00019 ORG_R1..5 = GLCD_R0..4, ORG_R0 = GLCD_R4 00020 ORG_G0..5 = GLCD_G0..5, 00021 ORG_B1..5 = GLCD_B0..4, ORG_B0 = GLCD_B4 00022 *----------------------------------------------------------------------------*/ 00023 00024 /* GLCD RGB color definitions */ 00025 #define Black 0x0000 /* 0, 0, 0 */ 00026 #define Navy 0x000F /* 0, 0, 128 */ 00027 #define DarkGreen 0x03E0 /* 0, 128, 0 */ 00028 #define DarkCyan 0x03EF /* 0, 128, 128 */ 00029 #define Maroon 0x7800 /* 128, 0, 0 */ 00030 #define Purple 0x780F /* 128, 0, 128 */ 00031 #define Olive 0x7BE0 /* 128, 128, 0 */ 00032 #define LightGrey 0xC618 /* 192, 192, 192 */ 00033 #define DarkGrey 0x7BEF /* 128, 128, 128 */ 00034 #define Blue 0x001F /* 0, 0, 255 */ 00035 #define Green 0x07E0 /* 0, 255, 0 */ 00036 #define Cyan 0x07FF /* 0, 255, 255 */ 00037 #define Red 0xF800 /* 255, 0, 0 */ 00038 #define Magenta 0xF81F /* 255, 0, 255 */ 00039 #define Yellow 0xFFE0 /* 255, 255, 0 */ 00040 #define White 0xFFFF /* 255, 255, 255 */ 00041 00042 00043 extern void GLCD_Init (void); 00044 extern void GLCD_WindowMax (void); 00045 extern void GLCD_PutPixel (unsigned int x, unsigned int y); 00046 extern void GLCD_SetTextColor (unsigned short color); 00047 extern void GLCD_SetBackColor (unsigned short color); 00048 extern void GLCD_Clear (unsigned short color); 00049 extern void GLCD_DrawChar (unsigned int x, unsigned int y, unsigned short *c); 00050 extern void GLCD_DisplayChar (unsigned int ln, unsigned int col, unsigned char c); 00051 extern void GLCD_DisplayString (unsigned int ln, unsigned int col, unsigned char *s); 00052 extern void GLCD_ClearLn (unsigned int ln); 00053 extern void GLCD_Bargraph (unsigned int x, unsigned int y, unsigned int w, unsigned int h, unsigned int val); 00054 extern void GLCD_Bitmap (unsigned int x, unsigned int y, unsigned int w, unsigned int h, unsigned char *bitmap); 00055 extern void GLCD_Bmp (unsigned int x, unsigned int y, unsigned int w, unsigned int h, unsigned char *bmp); 00056 00057 #endif /* _GLCD_H */
Generated on Tue Jul 12 2022 17:28:08 by 1.7.2