-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomponent.h
More file actions
26 lines (21 loc) · 706 Bytes
/
component.h
File metadata and controls
26 lines (21 loc) · 706 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
#ifndef COMPONENT_H
#define COMPONENT_H
#include <Arduino.h>
class Component {
private:
unsigned long lastMillis;
protected:
unsigned char pinNum;
unsigned int delayVal;
public:
Component();
Component(unsigned char );
Component(unsigned char, unsigned int );
void init(unsigned char );
unsigned char writeVal(unsigned char );
unsigned long setMillis();
bool cycleCheck();
unsigned int setDelayVal(unsigned int dVal) {return delayVal = dVal;};
unsigned int getDelayVal() {return delayVal;}
};
#endif