标题: STemWin_HelloWorld源码 [打印本页]

作者: ihpark    时间: 2018-8-11 10:56
标题: STemWin_HelloWorld源码
ST32f429I STemWin Example

单片机源程序如下:
  1. /*********************************************************************
  2. *                SEGGER MICROCONTROLLER SYSTEME GmbH                 *
  3. *        Solutions for real time microcontroller applications        *
  4. **********************************************************************
  5. *                                                                    *
  6. *        (c) 1996 - 2015  SEGGER Microcontroller Systeme GmbH        *
  7. *                                                                    *
  8. **********************************************************************

  9. ***** emWin - Graphical user interface for embedded applications *****
  10. emWin is protected by international copyright laws.   Knowledge of the
  11. source code may not be used to write a similar product.  This file may
  12. only be used in accordance with a license and should not be re-
  13. distributed in any way. We appreciate your understanding and fairness.
  14. ----------------------------------------------------------------------
  15. File        : BASIC_HelloWorld.c
  16. Purpose     : Simple demo drawing "Hello world"
  17. ----------------------------------------------------------------------
  18. */

  19. #include "GUI.h"

  20. /*********************************************************************
  21. *
  22. *       Public code
  23. *
  24. **********************************************************************
  25. */
  26. /*********************************************************************
  27. *
  28. *       MainTask
  29. */
  30. void MainTask(void) {
  31.   GUI_Clear();
  32.   GUI_SetFont(&GUI_Font20_1);
  33.   GUI_DispStringAt("Hello world!", (LCD_GetXSize()-100)/2, (LCD_GetYSize()-20)/2);
  34.   while(1);
  35. }

  36. /*************************** End of file ****************************/
复制代码

所有资料51hei提供下载:
STemWin_HelloWorld.rar (74.01 KB, 下载次数: 13)




作者: coyoteie    时间: 2019-7-23 15:18
工程代码不全,编译通不过
作者: Michael_xie    时间: 2022-11-15 10:30
工程代码不全,编译通不过




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1