?? main.c
字號(hào):
#include <math.h>
#include <stddef.h>
#include "gui\core\GUI.h"
#include "Target\44b.h"
#include "Target\44blib.h"
/********************************************/
// ARMSYS實(shí)驗(yàn)二十一:在GUI中應(yīng)用漢字庫(kù)
// 描述:利用GUI提供的API函數(shù)繪制漢字
/********************************************/
void Main(void) {
int i=0;
int LCDXSize = LCD_GET_XSIZE();
int LCDYSize = LCD_GET_YSIZE();
rSYSCFG=CACHECFG;// Using 8KB Cache//
Port_Init();
Uart_Init(0,115200);
Led_Display(0xf);
Delay(0);
Beep(0x01);
Uart_Select(0); //Select UART0//
Uart_Printf("\n\n*************************************************************************");
Beep(0x0);
Uart_Printf("\n* 立泰電子 *");
Uart_Printf("\n* -GUI應(yīng)用:漢字顯示- *");
Uart_Printf("\n* Version 1.10 *");
Uart_Printf("\n* Email:rao_dali@263.net *");
Uart_Printf("\n* UART Config--COM:115.2kbps,8Bit,NP,UART0 *");
Uart_Printf("\n*------------------Begin to Start Drawing,OK? (Y/N)---------------------*");
Led_Display(0x0);
GUI_Init();
GUI_SetBkColor(GUI_BLACK);
GUI_Clear();
GUI_SetColor(GUI_RED);
GUI_SetFont(&GUI_FontHZ12);//設(shè)置字體
GUI_DispStringHCenterAt("你好嗎?\nHow are you?\x0", LCDXSize/2, LCDYSize/2);//在屏幕中心顯示文字
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -