-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathExampleLibrary.h
More file actions
60 lines (45 loc) · 879 Bytes
/
ExampleLibrary.h
File metadata and controls
60 lines (45 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
|| @author Brett Hagman <bhagman@wiring.org.co>
|| @url http://wiring.org.co/
||
|| @description
|| | Example Wiring Library
|| |
|| | This is a complete example of a Wiring Library
|| #
||
|| @license Please see the accompanying LICENSE file for this project.
||
*/
#ifndef EXAMPLELIBRARY_H
#define EXAMPLELIBRARY_H
#include <Wiring.h>
/*
|| ExampleLibrary version
|| @Version 1.0.0
*/
// Version below is 1 00 00 (integer representation of above)
#define EXAMPLELIBRARY_VERSION 10000
/*
|| Public Constants
*/
static const int FORWARD = 1;
static const int BACKWARD = -1
/*
|| Class
*/
class ExampleLibrary
{
public:
// Constructor
ExampleLibrary(int direction);
// Methods
void doThatThing();
private:
// Methods
void setIncrement(int value);
// Members
int increment;
int total;
};
#endif