1.新建appwizard项目
![](https://img-blog.csdnimg.cn/img_convert/2ae6f5bcae5b81499a29c7b2f6c5460e.png)
![](https://img-blog.csdnimg.cn/img_convert/23a63f56088d8c99dc502d1ab5b7fde7.png)
![](https://img-blog.csdnimg.cn/img_convert/5dc516e65ffaea5f7908120fd00ea303.png)
2.AppWizard 设计器导出代码,点击 File→Export&Save
3.移植代码到keil
![](https://img-blog.csdnimg.cn/img_convert/3b53c5d2641b0140718db1a257fb6a0f.png)
其中,Soure 和Resource 中的C文件,添加到项目代码
Simulation和Soure 和Resource 中的h文件,添加到编译器的include path。
修改Source\Generated下的APPWConf文件,如下图
![](https://img-blog.csdnimg.cn/img_convert/1814819265597c86d5ff60d362328662.png)
![](https://img-blog.csdnimg.cn/img_convert/522b931663e3a881091345a48ae4aa86.png)
4.编译执行
![](https://img-blog.csdnimg.cn/img_convert/14cd396a4bc39d33c2e718a89aab312e.png)
![](https://img-blog.csdnimg.cn/img_convert/2bbd489e7a883acf083f5f02ca2d9a94.png)
![](https://img-blog.csdnimg.cn/img_convert/645750a734b35db3dc7426a5e92e1723.png)
除了颜色略有差别,其它一切正常,尤其是渐变会,LCD屏幕显示的非常丑
5 .控制硬件LED
appWizard代码为qt所写,使用了qt信号与槽的概念,我们只需要改一下slots文件即可
![](https://img-blog.csdnimg.cn/img_convert/ea4a5500daa7f94fed9f6ba967b3e3d7.png)
![](https://img-blog.csdnimg.cn/img_convert/063b351c1e54356e106d434ddf057c62.png)
![](https://img-blog.csdnimg.cn/img_convert/1df0e2812418e849d08531405bf0da61.png)
ps: 搜了一下关于硬件控制的全网居然能没有找到,appwizard官方文档里也没有写清楚,全靠自我摸索大半天,老铁可以点个赞吧。点赞超过1000上传源码😄
另外,文件头上面写了,哪个能改,哪个不让改。
![](https://img-blog.csdnimg.cn/img_convert/c94efe5df348e9624e671ba66132c741.png)
最后,真有ucos3不信看左边(freerots /ucos等rtos编程,对于Linux驱动工程师来说,SO EASY了,这个是别人移植好的,别人是卖板子的)