Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5785332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果能在loop()里面随时关闭所有schdeule task就好了。
其中你提到Sch.DeleteTask(任务ID) 删除任务没太看懂,将addtask任务ID的数据形式是int还是char?
5785332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
任务 ID 为 uint8_t 类型。
5785332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以设置任务的启动时间吗?比如说按一个按钮1s后启动led闪烁的任务,
5785332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@9zhou 一种方法是按按钮之后添加任务,参考 http://blanboom.org/arduino-task-scheduler-library.html