prampec / arduino-softtimer

Task oriented Arduino programming.
118 stars 35 forks source link

Problem - Task taskCycle( 100, Cycle) throws error: Cycle not declared in this scope #11

Closed PhilRounds closed 7 years ago

PhilRounds commented 8 years ago

Environment: SoftTimer v3.1.0, PciManager 2.1.0, Arduino 1.6.7

My code:

include

include

include

include

include

include

include "utility/Adafruit_PWMServodriver.h"

include

.... Task taskCycle( 100, Cycle); // This line throws the error ...

void setup() { ... SoftTimer.add(&taskCycle);
} void Cycle(Task* me) { ... Either my code, or I just comment it all out, it doesn't matter. }

If I run the same program in a different environment, it works Arduino 1.6.1, I can't find the version# for PciManager or for SoftTimer on the pc it runs on, they're both 2014 versions.

Any suggestions?

prampec commented 8 years ago

Please take a look at this issue: https://github.com/prampec/arduino-softtimer/issues/6

Is this what you are looking for?