Skip to content

Commit 64c07dd

Browse files
committed
Update Sequencer.h
1 parent 4923fec commit 64c07dd

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Sequencer.h

+8-3
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,35 @@
22
Sequence.h - library for creating timed sequences of code.
33
Created by Austin W. Rowe, October 30, 2013.
44
Released into the public domain.
5-
Version 1.2
5+
Version 1.3
66
*/
77

88
#ifndef Sequencer_h
99
#define Sequencer_h
1010
#include "Arduino.h"
11+
1112

1213
class Sequence {
1314
public:
1415
Sequence();
1516
void setTime(int Time);
16-
void start(int Steps);
17+
void start(int Steps, int Iterations); //Set iterations to 0 to loop indefinitely
1718
void pause();
1819
void unpause();
1920
void gotoStep(int StepNum);
2021
int getStep();
22+
void reset();
23+
bool getComplete();
24+
int getIteration();
2125
int Step;
22-
2326
private:
2427
long TimeLast;
2528
long TimePaused;
2629
unsigned long TimeCurrent;
2730
int _Time;
2831
bool paused;
32+
int Iteration;
33+
bool Complete;
2934
};
3035

3136
#endif

0 commit comments

Comments
 (0)