forked from Integreight/1Sheeld-Arduino-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DataLoggerShield.h
52 lines (39 loc) · 932 Bytes
/
DataLoggerShield.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
/*
Project: 1Sheeld Library
File: DataLogger.h
Version: 1.2
Compiler: Arduino avr-gcc 4.3.2
Author: Integreight
Date: 2014.9
*/
#ifndef DataLogger_h
#define DataLogger_h
#include "ShieldParent.h"
//Ouput Function ID's
#define LOGGER_START_LOG 0x01
#define LOGGER_STOP_LOG 0x02
#define LOGGER_ADD_FLOAT 0x03
#define LOGGER_ADD_STRING 0x04
#define LOGGER_LOG_DATA 0x05
class DataLoggerShield : public ShieldParent
{
public:
DataLoggerShield():ShieldParent(DATA_LOGGER_ID){};
//Starters
void start();
void start(const char *);
void start(String );
//Stopper
void stop();
//Process
void add(const char * , float);
void add(String , float);
void add(const char * ,const char*);
void add(String , String);
//Save data
void log();
private:
};
//Extern Object
extern DataLoggerShield Logger;
#endif