arduino / arduino/ArduinoCore-API

[Feature Request] timer interrupt callback function

Open
#182 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
306
Forks
150
PR merge metrics
No merged PRs in 30d

Description

It would be nice if there was a possibility to implement a way to add some own code in the timer interrupt routine. That could be accomplished like it is done in "WInterrupts".

Possible applications:
sampling rotary encoders
sampling tachometer signals
acceleration/deceleration
fading

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by examining the existing WInterrupts approach and the timer interrupt API in ArduinoCore-API. Determine how a user callback could be exposed for the listed applications while preserving the hardware-independent API, then define tests or examples that show the callback can be registered and invoked safely.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, embedded-iot
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.