forked from andaluri/multiCameraIrControl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
multiCameraIrControl.h~
107 lines (97 loc) · 2.77 KB
/
multiCameraIrControl.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*******************************************
*
* Name.......: cameraIrControl Library
* Description: A powerful Library to control easy various cameras via IR. Please check the project page and leave a comment.
* Author.....: Sebastian Setz
* Version....: 1.9
* Date.......: 2013-02-12
* Project....: http://sebastian.setz.name/arduino/my-libraries/multiCameraIrControl
* Contact....: http://Sebastian.Setz.name
* License....: This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to
* Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
* Keywords...: arduino, library, camera, ir, control, canon, nikon, olympus, minolta, sony, pentax, interval, timelapse
* History....: 2010-12-08 V1.0 - release
* 2010-12-09 V1.1
* 2010-12-16 V1.2
* 2011-01-01 V1.3
* 2011-01-04 V1.4 - making Sony function work, thank you Walter.
* 2011-01-25 V1.5 - making Olympus work, thank you Steve Stav.
* 2011-12-05 V1.6 - adding Olympus zoom, thank you again Steve! Refresh keywords.txt; Arduino 1.0 compatible
* 2011-12-07 V1.7 - repairing Canon function - thanks to Viktor
* 2013-02-11 V1.8 - adding toggleFocus for Pentax - thanks to Marcel Normann
* adding toggleVideo for Sony - thanks to InfinitR
* V1.9 - adding CanonWLDC100 support - thanks to ImaRH
*
********************************************/
#ifndef multiCameraIrControl_h
#define multiCameraIrControl_h
#if ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
class Nikon{
public:
Nikon(int pin);
void shutterNow();
private:
int _pin;
int _freq;
};
class Canon{
public:
Canon(int pin);
void shutterNow();
void shutterDelayed();
private:
int _pin;
int _freq;
};
class CanonWLDC100{
public:
CanonWLDC100(int pin);
void shutterNow();
private:
int _pin;
int _freq;
};
class Pentax{
public:
Pentax(int pin);
void shutterNow();
void toggleFocus();
private:
int _pin;
int _freq;
};
class Olympus{
public:
Olympus(int pin);
void shutterNow();
void zoomin(unsigned int pct);
void zoomout(unsigned int pct);
private:
int _pin;
int _freq;
};
class Minolta{
public:
Minolta(int pin);
void shutterNow();
void shutterDelayed();
private:
int _pin;
int _freq;
};
class Sony{
public:
Sony(int pin);
void shutterNow();
void shutterDelayed();
void toggleVideo();
private:
int _pin;
int _freq;
};
#endif