-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathCameraShield.h
61 lines (48 loc) · 1.21 KB
/
CameraShield.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
/*
Project: 1Sheeld Library
File: CameraShield.h
Version: 1.0
Compiler: Arduino avr-gcc 4.3.2
Author: Integreight
Date: 2014.5
*/
#ifndef CameraShield_h
#define CameraShield_h
#include "ShieldParent.h"
//Output Functions ID's
#define CAMERA_RESET 0x00
#define CAMERA_REAR_CAPTURE 0x01
#define CAMERA_SET_FLASH 0x02
#define CAMERA_FRONT_CAPTURE 0x03
#define CAMERA_SET_QUALITY 0x04
#define CAMERA_RECORD_VIDEO 0x05
#define CAMERA_ZOOM 0x06
//Setting Flash (Literals)
#define OFF 0x00
#define ON 0x01
#define AUTO 0x02
#define TORCH 0x03
//Literals used by users
#define LOW_QUALITY 0x01
#define MID_QUALITY 0x02
#define HIGH_QUALITY 0x03
#define BACK_CAMERA 0x00
#define FRONT_CAMERA 0x01
class CameraShieldClass : public ShieldParent
{
public:
//Constructor
CameraShieldClass():ShieldParent(CAMERA_ID){};
//Setters
void resetParameters();
void frontCapture();
void rearCapture ();
void setFlash(byte );
void setQuality(byte);
void record(unsigned long,byte);
void zoom(byte,bool=false);
private:
};
//Extern Object
extern CameraShieldClass Camera;
#endif