⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 face3.c

📁 2410GUI项目菜单设计
💻 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        : BASIC_Hello1.c
Purpose     : Simple demo drawing "Hello world"
----------------------------------------------------------------------
*/

#include "GUI.H"
#include <stddef.h>
#include "WM.H"
#include "PROGBAR.h"
extern GUI_FLASH const GUI_FONT GUI_FontHZ_LiSu_64;
extern GUI_FLASH const GUI_FONT GUI_FontHZ_FZShuTi_19;

/*******************************************************************
*
*                 MainTask
*
********************************************************************
*/




void   InterFace_2(void) {
    GUI_SetFont(&GUI_FontHZ_LiSu_64);
    GUI_DispStringAt("醉江月欢迎您",120,10);
    GUI_DrawVLine(639,0,480);
    GUI_DrawHLine(479,0,640);
    GUI_DrawHLine(1,0,640);
    GUI_DrawVLine(1,0,480);
    GUI_DrawHLine(79,0,640);
	   //	GUI_SetFont(&GUI_FontHZ_FZShuTi_16);
		//GUI_SetColor(GUI_GREEN);
		//GUI_DispStringAt("点菜中",540,50);
    //GUI_SetFont(&GUI_Font8_1);
  //	GUI_DispStringAt(". . .",585,62);
    //GUI_SetFont(&GUI_FontHZ_FZShuTi_16);
    //GUI_SetColor(GUI_RED);
    //GUI_DispStringAt("点菜中",540,50);

}


void  ProcessingBar(void)  {
    int m=1;
	PROGBAR_Handle  hProgBar;
	GUI_SetFont(&GUI_FontHZ_FZShuTi_19);
	//GUI_DispCEOL();
	GUI_DispStringAtCEOL("发送中,请稍候",250,280);
	GUI_SetFont(&GUI_Font8_1);
	GUI_DispStringAt(". . .",400,290);
	//GUI_DispCEOL();
    hProgBar=PROGBAR_Create(228,303,200,30,WM_CF_SHOW);
	PROGBAR_SetMinMax(hProgBar,0,100);
	PROGBAR_SetBarColor(hProgBar,0,GUI_GREEN);
    PROGBAR_SetBarColor(hProgBar,1,GUI_RED);
	GUI_Delay(100);
    for(m=0;m<=100;m++)
	{  
		PROGBAR_SetValue(hProgBar,m);
		GUI_Delay(50);
	}
    GUI_Delay(500);
	GUI_SetFont(&GUI_FontHZ_FZShuTi_19);
    GUI_DispStringAtCEOL("发送成功,请就坐!",250,280);
    //GUI_DispCEOL();
	GUI_Delay(1000);

}





void MainTask(void) {
  GUI_Init();
  GUI_SetBkColor(GUI_BLUE);
  GUI_Clear();
  InterFace_2();
  while(1) {
  ProcessingBar(); 
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -