?? main.c
字號:
/*
;************************************************************************************************************
;* 北京精儀達盛科技有限公司
;* 研 發(fā) 部
;*
;* http://www.unistrong.com
;*
;*--------------------------------------------- 文件信息 ----------------------------------------------------
;*
;* 文件名稱 : MAIN.c
;* 文件功能 : 所有應(yīng)用程序的頭文件均加在此文件中
;* 補充說明 :
;*-------------------------------------------- 最新版本信息 -------------------------------------------------
;* 修改作者 : ARM7開發(fā)小組
;* 修改日期 : 2004/04/25
;* 版本聲明 : V1.0.1
;*-------------------------------------------- 歷史版本信息 -------------------------------------------------
;* 文件作者 : ARM7開發(fā)小組
;* 創(chuàng)建日期 : 2004/04/20
;* 版本聲明 : v1.0.0
;*-----------------------------------------------------------------------------------------------------------
;*-----------------------------------------------------------------------------------------------------------
;************************************************************************************************************
;*/
#include "..\inc\config.h"
extern GUI_FONT GUI_Font8x16;
extern GUI_FONT CHINESE_FONT12;
extern GUI_FONT CHINESE_FONT16;
/*
*************************************************************************************************************
- 函數(shù)名稱 : Main(void)
- 函數(shù)說明 : 系統(tǒng)的主程序入口
- 輸入?yún)?shù) : 無
- 輸出參數(shù) : 無
*************************************************************************************************************
*/
void Main(void)
{
Target_Init();
GUI_Init();
Set_Color(GUI_GREEN);
Fill_Rect(0,0,319,239);
Delay(1000);
Set_Color(GUI_WHITE);
Delay(1000);
Fill_Rect(0,0,319,239);
Set_Color(GUI_BLACK);
Delay(1000);
Fill_Rect(0,0,319,239);
Delay(1000);
Set_Color(GUI_YELLOW);
Fill_Rect(0,0,319,239);
Delay(1000);
Set_Color(GUI_BLUE);
Fill_Rect(0,0,319,239);
Delay(1000);
Set_Color(GUI_RED);
Draw_Circle(100,100,50);
Delay(1000);
Draw_Point (100, 200); //繪制點API
Delay(1000);
Draw_HLine (100, 3, 319); //繪制水平線API
Delay(1000);
Draw_VLine (0, 150, 239); //繪制豎直線API
Delay(1000);
Draw_Line (0,0,319,239);
Delay(1000);
Draw_Line (319,0,0,239);
Delay(1000);
Fill_Circle (80, 180, 40);
Delay(1000);
Fill_Rect (280, 200, 300, 220); //填充區(qū)域API
Delay(1000);
Set_Font (&GUI_Font8x16); //設(shè)定字體類型API
Set_Color(GUI_WHITE);
Set_BkColor (GUI_BLUE); //設(shè)定背景顏色API
Fill_Rect(0,0,319,3);
Fill_Rect(0,0,3,239);
Fill_Rect(316,0,319,239);
Fill_Rect(0,236,319,239);
Disp_String ("this is a demo",130,70);
Set_Font (&CHINESE_FONT12);
Disp_String (CN_start"這是一個例程"CN_end,130,90);
Set_Font (&CHINESE_FONT16);
Disp_String (CN_start"這是一個例程"CN_end,130,110);
while(1);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -