12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #ifndef MultiStepper_h
- #define MultiStepper_h
- #include <stdlib.h>
- #if ARDUINO >= 100
- #include <Arduino.h>
- #else
- #include <WProgram.h>
- #include <wiring.h>
- #endif
- #define MULTISTEPPER_MAX_STEPPERS 10
- class AccelStepper;
- class MultiStepper
- {
- public:
-
- MultiStepper();
-
-
-
-
- boolean addStepper(AccelStepper& stepper);
-
-
-
-
-
-
-
- void moveTo(long absolute[]);
-
-
-
-
- boolean run();
-
-
-
- void runSpeedToPosition();
-
- private:
-
-
- AccelStepper* _steppers[MULTISTEPPER_MAX_STEPPERS];
-
-
- uint8_t _num_steppers;
- };
- #endif
|