ST32f429I STemWin Example
单片机源程序如下:
- /*********************************************************************
- * SEGGER MICROCONTROLLER SYSTEME GmbH *
- * Solutions for real time microcontroller applications *
- **********************************************************************
- * *
- * (c) 1996 - 2015 SEGGER Microcontroller Systeme GmbH *
- * *
- **********************************************************************
- ***** emWin - Graphical user interface for embedded applications *****
- emWin 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 re-
- distributed in any way. We appreciate your understanding and fairness.
- ----------------------------------------------------------------------
- File : BASIC_HelloWorld.c
- Purpose : Simple demo drawing "Hello world"
- ----------------------------------------------------------------------
- */
- #include "GUI.h"
- /*********************************************************************
- *
- * Public code
- *
- **********************************************************************
- */
- /*********************************************************************
- *
- * MainTask
- */
- void MainTask(void) {
- GUI_Clear();
- GUI_SetFont(&GUI_Font20_1);
- GUI_DispStringAt("Hello world!", (LCD_GetXSize()-100)/2, (LCD_GetYSize()-20)/2);
- while(1);
- }
- /*************************** End of file ****************************/
复制代码
所有资料51hei提供下载:
STemWin_HelloWorld.rar
(74.01 KB, 下载次数: 13)
|