-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathOutputs.h
33 lines (27 loc) · 1.12 KB
/
Outputs.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
#ifndef OUTPUTS_H
#define OUTPUTS_H
#include <Arduino.h>
#include "HID-Project.h"
#include <Adafruit_PWMServoDriver.h>
#include <Wire.h>
#include "Config.h"
class Outputs {
public:
Outputs();
void init();
void updateOutput(unsigned char outputId, unsigned char outputValue);
void sendOutputState();
void checkResetOutputs();
void turnOff();
private:
void updateOutputInternal(unsigned char outputId, unsigned char outputValue);
bool DEBUG = false;
unsigned char numberOutputs = 15;
unsigned char outputList[15] = {5,6,10,9,8,7,12,18,19,20,21,22,14,15,16};
unsigned char outputValues[63] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
long int timeTurnedOn[63] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
void updateOutputActual(unsigned char outputId, int outputValueStart, int outputValueFinish);
unsigned char resetOutputNumber = 0;
unsigned char virtualOutputOn[10] = {0,0,0,0,0,0,0,0,0,0};
};
#endif