File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 2
2
Sequence.h - library for creating timed sequences of code.
3
3
Created by Austin W. Rowe, October 30, 2013.
4
4
Released into the public domain.
5
- Version 1.2
5
+ Version 1.3
6
6
*/
7
7
8
8
#ifndef Sequencer_h
9
9
#define Sequencer_h
10
10
#include " Arduino.h"
11
+
11
12
12
13
class Sequence {
13
14
public:
14
15
Sequence ();
15
16
void setTime (int Time);
16
- void start (int Steps);
17
+ void start (int Steps, int Iterations); // Set iterations to 0 to loop indefinitely
17
18
void pause ();
18
19
void unpause ();
19
20
void gotoStep (int StepNum);
20
21
int getStep ();
22
+ void reset ();
23
+ bool getComplete ();
24
+ int getIteration ();
21
25
int Step;
22
-
23
26
private:
24
27
long TimeLast;
25
28
long TimePaused;
26
29
unsigned long TimeCurrent;
27
30
int _Time;
28
31
bool paused;
32
+ int Iteration;
33
+ bool Complete;
29
34
};
30
35
31
36
#endif
You can’t perform that action at this time.
0 commit comments