-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathI2Cactuators.h
37 lines (27 loc) · 850 Bytes
/
I2Cactuators.h
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
#ifndef I2C_ACTUATORS_H
#define I2C_ACTUATORS_H
#include "global_includes.h"
#include "I2Cmanager.h"
class keyActuators {
std::vector<portExpander* > ports ; // stores expander objects (up to 2)
std::vector<std::array<int,2>> expanders; // stores the first and last expander for each manual
public:
// test settings
int staccatoRepetitions = 2 ;
int staccatoDuration = 10; // ms
int delayDuration = 10; // ms
int legatoDuration = 20;
keyActuators();
void setState(int manual, int key, int state);
void test(std::string mode);
};
class stopActuators {
std::vector<int> divisions = DIVISIONS;
public:
stopActuators();
void setState(int division, int stop, int state);
void test();
};
extern keyActuators * KeyActuators;
extern stopActuators * StopActuators;
#endif