- Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathModo.cpp
More file actions
Latest commit
23 lines (20 loc) · 335 Bytes
/
Copy pathModo.cpp
File metadata and controls
23 lines (20 loc) · 335 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include<Modo.h>
#include"HardwareSerial.h"
Modo::Modo() {
hasSetup=0;
}
Modo::Modo(ISR mode) {
modeFunction=mode;
hasSetup=0;
}
Modo::Modo(ISR mode, ISR setup) {
modeFunction=mode;
setupFunction=setup;
hasSetup=1;
}
voidModo::configurar(){
if(hasSetup) setupFunction();
}
voidModo::executar(){
modeFunction();
}