ivanseidel / ivanseidel/ArduinoThread

Using micros() in setInterval()

未关闭
#48 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
C++
星标
974
派生
197
PR 合并指标
30 天内没有已合并 PR

描述

Hi,

There's a way to set the Thread interval in microseconds?

I tried to edit the "Thread.cpp" file, changing all the millis() to micros(), but it didn't work very well.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先阅读 Thread.cpp,并跟踪 setInterval() 如何使用 millis()。检查将这些调用替换为 micros() 时 Arduino 的计时限制,然后确定受支持的间隔语义,并通过 Arduino 示例或计时测试进行验证。如果支持,则完成标准是拥有一种有文档记录且可靠的方式,以微秒为单位调度线程间隔。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
embedded-iot
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。