-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathviscalib.h
31 lines (27 loc) · 953 Bytes
/
viscalib.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
#ifndef VISCALIB_H
#define VISCALIB_H
#include <Arduino.h>
class ViscaLib {
public:
ViscaLib(Stream& serialPort);
void IF_Clear();
void PAN_TILT_UP(byte speed);
void PAN_TILT_DOWN(byte speed);
void PAN_TILT_LEFT(byte speed);
void PAN_TILT_RIGHT(byte speed);
void PAN_TILT_UP_LEFT(byte panSpeed, byte tiltSpeed);
void PAN_TILT_UP_RIGHT(byte panSpeed, byte tiltSpeed);
void PAN_TILT_DOWN_LEFT(byte panSpeed, byte tiltSpeed);
void PAN_TILT_DOWN_RIGHT(byte panSpeed, byte tiltSpeed);
void PAN_TILT_STOP(byte panSpeed, byte tiltSpeed);
void PAN_TILT_HOME();
void PAN_TILT_RESET();
void PAN_TILT_RAMP_CURVE(byte rampCurve);
void PAN_TILT_SLOW_MODE(bool enable);
void PAN_TILT_ABSOLUTE_POSITION(byte speed, int panPosition, int tiltPosition);
void PAN_TILT_RELATIVE_POSITION(byte speed, int panPosition, int tiltPosition);
private:
Stream& _serial;
void sendList(byte list[], size_t listsize);
};
#endif // VISCALIB_H