forked from Integreight/1Sheeld-Arduino-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OneSheeldPrint.h
48 lines (38 loc) · 912 Bytes
/
OneSheeldPrint.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
/*
Project: 1Sheeld Library
File: OneSheeldPrint.h
Version: 1.2
Compiler: Arduino avr-gcc 4.3.2
Author: Integreight
Date: 2014.9
*/
#ifndef PrintClass_h
#define PrintClass_h
//Defining decimal
#define DEC 10
class PrintClass
{
public:
PrintClass(byte, byte, byte);
//Write
void write(char);
//Printing functions
void print(char);
void print(int,byte = DEC);
void print(unsigned int,byte =DEC);
void print(long,byte = DEC);
void print(unsigned long,byte =DEC);
void print(const char *);
void print(String );
//Unsupported by Intel Galileo board and Arduino Due
#if !defined(ARDUINO_LINUX) && !defined(SAM3X8)
void print(double ,int = 3 );
#endif
private:
//Reserve variables for function ID's
byte print_fn_id;
byte write_fn_id;
//Reserve variable for the shield ID
byte shieldId;
};
#endif