Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

One shot operating mode #20

Closed
absalom-muc opened this issue Mar 12, 2022 · 2 comments
Closed

One shot operating mode #20

absalom-muc opened this issue Mar 12, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@absalom-muc
Copy link

absalom-muc commented Mar 12, 2022

I use your lib for periodic interrupts - works like a charm, thank you for that!

Addtionally I would like to use it in an one shot operating mode. So the interrupt should be triggered only once. It could be also solved by providing a duration as described here, but when my understanding is correct, the duration is not implemented so far.

Edit: Maybe there could be a way to detach an interrupt, e.g. by providing a reference by ITimer.attachInterruptInterval

@khoih-prog
Copy link
Owner

Hi @absalom-muc

The new ESP8266TimerInterrupt releases v1.6.0 has just been published. Your contribution is noted in Contributions and Thanks

You can try ISR_16_Timers_Array_OneShot example to see how to use one-shot ISR-based timer

Best Regards,


Releases v1.6.0

  1. Add example ISR_16_Timers_Array_OneShot to demo how to use one-shot ISR-based timer
  2. Add example multiFileProject to demo for multiple-file project
  3. Optimize code by using passing by reference instead of by value

@khoih-prog khoih-prog added the enhancement New feature or request label Mar 13, 2022
@absalom-muc
Copy link
Author

Thank you very much @khoih-prog! I appreciate your quick feedback.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants