?? guidemo_hardwareinfo.c
字號:
/*********************************************************************************************************** uC/GUI* Universal graphic software for embedded applications** (c) Copyright 2002, Micrium Inc., Weston, FL* (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH** 礐/GUI is protected by international copyright laws. Knowledge of the* source code may not be used to write a similar product. This file may* only be used in accordance with a license and should not be redistributed* in any way. We appreciate your understanding and fairness.*----------------------------------------------------------------------File : GUIDEMO_HardwareInfo.cPurpose : Displays hardware info----------------------------------------------------------------------*/#include "GUI.H"#include "GUIDEMO.H"//#include "LCD_ConfDefaults.h" /* valid LCD configuration *//*********************************************************************** Static functions************************************************************************/#if (LCD_CONTROLLER == 1375) | (LCD_CONTROLLER == 13705) | (LCD_CONTROLLER == 1386) | (LCD_CONTROLLER == 13806)static void _Show(const char* s0, const char* s1) { int XSize = LCD_GetXSize(); GUI_SetColor(GUI_WHITE); GUI_SetFont(&GUI_FontComic18B_ASCII); GUI_DispString("\n"); GUI_DispString(s0); GUIDEMO_Delay(500); GUI_GotoX(120); GUI_SetColor(GUI_GREEN); if (LCD_GetXSize() < 320) { GUI_DispString("\n"); GUI_GotoX(XSize / 4); } GUI_DispString(s1); GUIDEMO_Delay(1000);}#endif/*********************************************************************** GUIDEMO_HardwareInfo************************************************************************/void GUIDEMO_HardwareInfo(void) { #if (LCD_CONTROLLER == 1375) | (LCD_CONTROLLER == 13705) | (LCD_CONTROLLER == 1386) | (LCD_CONTROLLER == 13806) GUIDEMO_ShowIntro("Hardware info", "" ); GUI_Clear(); GUI_SetFont(&GUI_FontComic24B_ASCII); GUI_SetColor(GUI_WHITE); #if (LCD_CONTROLLER == 1375) | (LCD_CONTROLLER == 13705) GUI_DispStringAt("S3C2410 LCD CON\n", 10, 65); _Show("Max. colors", "64K (16 bit per color)"); _Show("Display types", "TFT LCD"); _Show("LUT", "256 index colors"); #elif (LCD_CONTROLLER == 1386) | (LCD_CONTROLLER == 13806) GUI_DispStringAt("S3C2410 LCD CON\n", 10, 65); _Show("Max. colors", "64K (16 bit per color)"); _Show("Display types", "TFT LCD"); _Show("LUT", "256 index colors"); #endif GUIDEMO_Delay(1500); #endif}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -