找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1866|回复: 2
打印 上一主题 下一主题
收起左侧

STemWin_HelloWorld源码

[复制链接]
跳转到指定楼层
楼主
ID:385225 发表于 2018-8-11 10:56 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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)



分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

沙发
ID:158881 发表于 2019-7-23 15:18 | 只看该作者
工程代码不全,编译通不过
回复

使用道具 举报

板凳
ID:543845 发表于 2022-11-15 10:30 | 只看该作者
工程代码不全,编译通不过
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表