sstaub / Ticker

Ticker library for Arduino
MIT License
192 stars 37 forks source link

Add remaining method #24

Closed jamesmyatt closed 4 years ago

jamesmyatt commented 4 years ago

Necessary if you want to know how long until the next time the callback is executed.

sstaub commented 4 years ago

I have to refuse this PR:

  1. the goal of the library is to keep it simple as possible, some of your functionalities exits in former version and were deleted
  2. The interval time is known before you use the constructor and can handled by a variable or constant.
  3. Like in your own code it can calculated manually using the elapsed time
  4. Wrong use of the this-> operator, it is not necessary when using the class variables.
jamesmyatt commented 4 years ago

I honestly don't know how to respond to this, but I think it's clear that this library will not do what I want, so I'll focus my energy on alternatives.

sstaub commented 4 years ago

Feel free to use your own version.