-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSmartIntertechno.h
More file actions
42 lines (39 loc) · 1.04 KB
/
CSmartIntertechno.h
File metadata and controls
42 lines (39 loc) · 1.04 KB
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
/*
CSmartIntertechno.h - Library for controlling Intertechno Devices.
Created by Christian Steck on 10.11.2016
Released into the public domain.
*/
#ifndef CSmartIntertechno_h
#define CSmartIntertechno_h
#include "Arduino.h"
#include "CSmartIntertechno.h"
class CSmartIntertechno{
public:
CSmartIntertechno(int pin);
void turnOn(int id, int unit, int repeat=6);
void turnOff(int id, int unit, int repeat=6);
void dim(int id, int unit, float value, int repeat=6);
private:
int _pin;
int speedInt = 95;
int start = 25;
int _short = 2;
int _long = 12;
int endInt = 100;
String decToBin(int number);
void sendStart();
void sendPulse0();
void sendPulse1();
void sendPulseHigh();
void sendPulseLow();
void sendPulseOn();
void sendPulseDim();
void sendPulseOff();
void sendPulseAll();
void sendPulseSingle();
void sendUniqueId(int id);
void sendUnitCode(int code);
void sendDim(int code);
void sendEnd();
};
#endif