I want to write a little library;
the unlibrarized functionality does:
checking in every loop-cycle some inputs,
doing some calculations with it
and finally setting a boolean to either true or false.
How do I periodically check the inputs inside the library?
I know that I could add a function-call to the library in the loop()-function. But I would prefer to just check the boolean in the loop.
Is there a way, to instantiate a class and start an periodically function by doing so? And if, how does this constant checking affect/coexist with my 'normal' loop()-function?