These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Committer:
frank26080115
Date:
Sun Mar 20 05:38:56 2011 +0000
Revision:
0:bf7b9fba3924

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
frank26080115 0:bf7b9fba3924 1 /******************************************************************************/
frank26080115 0:bf7b9fba3924 2 /* GLCD.h: Graphic LCD function prototypes and defines */
frank26080115 0:bf7b9fba3924 3 /******************************************************************************/
frank26080115 0:bf7b9fba3924 4 /* This file is part of the uVision/ARM development tools. */
frank26080115 0:bf7b9fba3924 5 /* Copyright (c) 2005-2009 Keil Software. All rights reserved. */
frank26080115 0:bf7b9fba3924 6 /* This software may only be used under the terms of a valid, current, */
frank26080115 0:bf7b9fba3924 7 /* end user licence from KEIL for a compatible version of KEIL software */
frank26080115 0:bf7b9fba3924 8 /* development tools. Nothing else gives you the right to use this software. */
frank26080115 0:bf7b9fba3924 9 /******************************************************************************/
frank26080115 0:bf7b9fba3924 10
frank26080115 0:bf7b9fba3924 11 #ifndef _GLCD_H
frank26080115 0:bf7b9fba3924 12 #define _GLCD_H
frank26080115 0:bf7b9fba3924 13
frank26080115 0:bf7b9fba3924 14 /*------------------------------------------------------------------------------
frank26080115 0:bf7b9fba3924 15 Color coding
frank26080115 0:bf7b9fba3924 16 GLCD is coded: 15..11 red, 10..5 green, 4..0 blue (unsigned short) GLCD_R5, GLCD_G6, GLCD_B5
frank26080115 0:bf7b9fba3924 17 original coding: 17..12 red, 11..6 green, 5..0 blue ORG_R6, ORG_G6, ORG_B6
frank26080115 0:bf7b9fba3924 18
frank26080115 0:bf7b9fba3924 19 ORG_R1..5 = GLCD_R0..4, ORG_R0 = GLCD_R4
frank26080115 0:bf7b9fba3924 20 ORG_G0..5 = GLCD_G0..5,
frank26080115 0:bf7b9fba3924 21 ORG_B1..5 = GLCD_B0..4, ORG_B0 = GLCD_B4
frank26080115 0:bf7b9fba3924 22 *----------------------------------------------------------------------------*/
frank26080115 0:bf7b9fba3924 23
frank26080115 0:bf7b9fba3924 24 /* GLCD RGB color definitions */
frank26080115 0:bf7b9fba3924 25 #define Black 0x0000 /* 0, 0, 0 */
frank26080115 0:bf7b9fba3924 26 #define Navy 0x000F /* 0, 0, 128 */
frank26080115 0:bf7b9fba3924 27 #define DarkGreen 0x03E0 /* 0, 128, 0 */
frank26080115 0:bf7b9fba3924 28 #define DarkCyan 0x03EF /* 0, 128, 128 */
frank26080115 0:bf7b9fba3924 29 #define Maroon 0x7800 /* 128, 0, 0 */
frank26080115 0:bf7b9fba3924 30 #define Purple 0x780F /* 128, 0, 128 */
frank26080115 0:bf7b9fba3924 31 #define Olive 0x7BE0 /* 128, 128, 0 */
frank26080115 0:bf7b9fba3924 32 #define LightGrey 0xC618 /* 192, 192, 192 */
frank26080115 0:bf7b9fba3924 33 #define DarkGrey 0x7BEF /* 128, 128, 128 */
frank26080115 0:bf7b9fba3924 34 #define Blue 0x001F /* 0, 0, 255 */
frank26080115 0:bf7b9fba3924 35 #define Green 0x07E0 /* 0, 255, 0 */
frank26080115 0:bf7b9fba3924 36 #define Cyan 0x07FF /* 0, 255, 255 */
frank26080115 0:bf7b9fba3924 37 #define Red 0xF800 /* 255, 0, 0 */
frank26080115 0:bf7b9fba3924 38 #define Magenta 0xF81F /* 255, 0, 255 */
frank26080115 0:bf7b9fba3924 39 #define Yellow 0xFFE0 /* 255, 255, 0 */
frank26080115 0:bf7b9fba3924 40 #define White 0xFFFF /* 255, 255, 255 */
frank26080115 0:bf7b9fba3924 41
frank26080115 0:bf7b9fba3924 42
frank26080115 0:bf7b9fba3924 43 extern void GLCD_Init (void);
frank26080115 0:bf7b9fba3924 44 extern void GLCD_WindowMax (void);
frank26080115 0:bf7b9fba3924 45 extern void GLCD_PutPixel (unsigned int x, unsigned int y);
frank26080115 0:bf7b9fba3924 46 extern void GLCD_SetTextColor (unsigned short color);
frank26080115 0:bf7b9fba3924 47 extern void GLCD_SetBackColor (unsigned short color);
frank26080115 0:bf7b9fba3924 48 extern void GLCD_Clear (unsigned short color);
frank26080115 0:bf7b9fba3924 49 extern void GLCD_DrawChar (unsigned int x, unsigned int y, unsigned short *c);
frank26080115 0:bf7b9fba3924 50 extern void GLCD_DisplayChar (unsigned int ln, unsigned int col, unsigned char c);
frank26080115 0:bf7b9fba3924 51 extern void GLCD_DisplayString (unsigned int ln, unsigned int col, unsigned char *s);
frank26080115 0:bf7b9fba3924 52 extern void GLCD_ClearLn (unsigned int ln);
frank26080115 0:bf7b9fba3924 53 extern void GLCD_Bargraph (unsigned int x, unsigned int y, unsigned int w, unsigned int h, unsigned int val);
frank26080115 0:bf7b9fba3924 54 extern void GLCD_Bitmap (unsigned int x, unsigned int y, unsigned int w, unsigned int h, unsigned char *bitmap);
frank26080115 0:bf7b9fba3924 55 extern void GLCD_Bmp (unsigned int x, unsigned int y, unsigned int w, unsigned int h, unsigned char *bmp);
frank26080115 0:bf7b9fba3924 56
frank26080115 0:bf7b9fba3924 57 #endif /* _GLCD_H */