-
Notifications
You must be signed in to change notification settings - Fork 24
/
ChartShield.h
56 lines (43 loc) · 1.02 KB
/
ChartShield.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
/*
Project: 1Sheeld Library
File: ChartShield.h
Version: 1.12.0
Compiler: Arduino avr-gcc 4.3.2
Author: Integreight
Date: 2016.12
*/
#ifndef ChartShield_h
#define ChartShield_h
#include "ShieldParent.h"
//Output Function ID
#define CHART_PLOT 0x01
#define CHART_CLEAR 0x02
#define CHART_AUTO_SCROLL 0x03
#define CHART_SAVE_CSV 0x04
#define CHART_SAVE_SCREENSHOT 0x05
//Input Function ID
//Literals
#define CHART_0 0x00
#define CHART_1 0x01
#define CHART_2 0x02
#define CHART_3 0x03
#define CHART_4 0x04
class ChartShield : public ShieldParent
{
public:
ChartShield();
void clear(byte);
void add(const char *,float,byte =0);
void plot();
void saveCsv(const char *,byte);
void saveScreenshot(byte=0);
void autoScroll(byte);
private:
byte keysCounter;
char * key;
char * namesArray[5];
float floatArray[5];
byte chartIDArray[5];
};
extern ChartShield Chart;
#endif