文件名称:ADD-LED-NUM
介绍说明--下载内容来自于网络,使用问题请自行百度
接上个源码 delay()延时函数消耗的时间太长了,其它任务根本没有机会执行,我们该怎么改善?本节教大家利用累计主循环次数的方法来解决这个问题。这一节要教会大家两个知识点:
第一点:利用累计主循环次数的方法实现时间延时
第二点:switch核心语句之初体验。 所有的实战项目都是基于switch语句实现多任务并行处理。
实现功能:让一个LED闪烁。-Connected to a source delay () function consumes delay too long, there is no opportunity to perform other tasks, how can we improve? This section will teach you the use of the cumulative number of cycles of the main ways to solve this problem. In this section you two knowledge points to the church:
First point: the use of the cumulative number of methods to achieve the main loop time delay
The second point: switch statement at the beginning of the core experience. All projects are based on the actual switch statement to achieve parallel processing of multiple tasks.
Function: make an LED blink.
第一点:利用累计主循环次数的方法实现时间延时
第二点:switch核心语句之初体验。 所有的实战项目都是基于switch语句实现多任务并行处理。
实现功能:让一个LED闪烁。-Connected to a source delay () function consumes delay too long, there is no opportunity to perform other tasks, how can we improve? This section will teach you the use of the cumulative number of cycles of the main ways to solve this problem. In this section you two knowledge points to the church:
First point: the use of the cumulative number of methods to achieve the main loop time delay
The second point: switch statement at the beginning of the core experience. All projects are based on the actual switch statement to achieve parallel processing of multiple tasks.
Function: make an LED blink.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第03节:累计主循环次数使LED灯闪烁.c
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
