ivanseidel / ivanseidel/ArduinoThread
Using micros() in setInterval()
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 974
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading Thread.cpp and tracing how setInterval() uses millis(). Check the Arduino timing constraints around replacing those calls with micros(), then determine the supported interval semantics and verify them with an Arduino example or timing test. Done means a documented, reliable way to schedule thread intervals in microseconds, if supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100