You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your TeensyTimerTool, this is a super library.
I was reading your callback examples and discovered the part where you are encapsulating and use this library in an another class, Blinker.h as an example. Is that possible to specify in a such use the kind of timer you want to use for each blinker? (TCK, TCK_RTC, and so...).
Thanks a lot,
Christophe
The text was updated successfully, but these errors were encountered:
To call the constructor of a variable that is a member of a class, pass the constructor parameters in the member initialization list. For example, if you want to use the GPT1 module, it would look like this
classBlinker
{
public:Blinker(unsigned _pin, unsigned _period) // add blink period to the constructor
: timer(GPT1) //<<====
{
pin = _pin;
period = _period;
}`
...
protected:
PeriodicTimer timer;
...
}
Hi Luna,
Thanks for your TeensyTimerTool, this is a super library.
I was reading your callback examples and discovered the part where you are encapsulating and use this library in an another class, Blinker.h as an example. Is that possible to specify in a such use the kind of timer you want to use for each blinker? (TCK, TCK_RTC, and so...).
Thanks a lot,
Christophe
The text was updated successfully, but these errors were encountered: