Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
GLCD_MCB1700.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 #define Line0 ( 0*24) 00043 #define Line1 ( 1*24) 00044 #define Line2 ( 2*24) 00045 #define Line3 ( 3*24) 00046 #define Line4 ( 4*24) 00047 #define Line5 ( 5*24) 00048 #define Line6 ( 6*24) 00049 #define Line7 ( 7*24) 00050 #define Line8 ( 8*24) 00051 #define Line9 ( 9*24) 00052 00053 extern void GLCD_Init (void); 00054 extern void GLCD_WindowMax (void); 00055 extern void GLCD_PutPixel (unsigned int x, unsigned int y); 00056 extern void GLCD_SetTextColor (unsigned short color); 00057 extern void GLCD_SetBackColor (unsigned short color); 00058 extern void GLCD_Clear (unsigned short color); 00059 extern void GLCD_DrawChar (unsigned int x, unsigned int y, unsigned short *c); 00060 extern void GLCD_DisplayChar (unsigned int ln, unsigned int col, unsigned char fi, unsigned char c); 00061 extern void GLCD_DisplayString (unsigned int ln, unsigned int col, unsigned char fi, unsigned char *s); 00062 extern void GLCD_ClearLn (unsigned int ln, unsigned char fi); 00063 extern void GLCD_Bargraph (unsigned int x, unsigned int y, unsigned int w, unsigned int h, unsigned int val); 00064 extern void GLCD_Bitmap (unsigned int x, unsigned int y, unsigned int w, unsigned int h, unsigned char *bitmap); 00065 extern void GLCD_Bmp (unsigned int x, unsigned int y, unsigned int w, unsigned int h, unsigned char *bmp); 00066 extern void GLCD_ScrollVertical (unsigned int dy); 00067 00068 #endif /* _GLCD_H */
Generated on Mon Jul 18 2022 02:30:29 by
1.7.2