ivanseidel / DueTimer

⏳ Timer Library fully implemented for Arduino DUE
MIT License
212 stars 89 forks source link

Choose how many timers are instantiated isn't possible #39

Closed q2dg closed 9 years ago

q2dg commented 9 years ago

I mean...do you think is good idea to instantiate all 9 timers automatically as a result of using this library? Maybe it would be more optimal to let the developer instantiate the timers he wants...

ivanseidel commented 9 years ago

Hi @q2dg , I followed the general pattern (usually, all are instantiated), I think they made in such way to facilitate the life of newbies. Sure it would be generally more "efficient" to not instantiate, but a few bytes on memory won't hurt anyone...

In any case, if you think it's a must, change the code to allow a definition like "INSTANTIATE_TIMERS=false" and make some preprocessing directives to skip that.

Thanks