forked from Integreight/1Sheeld-Arduino-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CameraShield.h
53 lines (39 loc) · 961 Bytes
/
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
/*
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_REAR_CAPTURE 0x01
#define CAMERA_SET_FLASH 0x02
#define CAMERA_FRONT_CAPTURE 0x03
#define CAMERA_SET_QUALITY 0x04
//Setting Flash (Literals)
#define OFF 0x00
#define ON 0x01
#define AUTO 0x02
//Literals used by users
#define LOW_QUALITY 0x01
#define MID_QUALITY 0x02
#define HIGH_QUALITY 0x03
class CameraShieldClass : public ShieldParent
{
public:
//Constructor
CameraShieldClass():ShieldParent(CAMERA_ID){};
//Setters
void frontCapture();
void rearCapture ();
void setFlash(byte );
void setQuality(byte);
private:
};
//Extern Object
extern CameraShieldClass Camera;
#endif