-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
Hello,
i want to change the timer intervall on the fly
i generate the intervall time with an formula
int myVar = 0;
double ticks = 60000000.0 / (myVar * 96.0);
void clock1()
{
// do stuff here
}
void setup()
{
Timer2.attachInterrupt(clock1);
}
void loop ()
{
if ( something == 1)
{
Timer2.start(ticks);
}
if ( somethingElse)
{
myVar = 120;
}
}
}
how can i update the changed value on the fly? do i have to stop and start the Timer again ?
Metadata
Metadata
Assignees
Labels
No labels