forked from FabioBatSilva/ArduinoFake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPrintFake.cpp
127 lines (102 loc) · 2.66 KB
/
PrintFake.cpp
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#include "ArduinoFake.h"
#include "PrintFake.h"
size_t Print::write(const uint8_t *buffer, size_t size)
{
return ArduinoFakeInstance(Print, this)->write(buffer, size);
}
size_t Print::print(const __FlashStringHelper *ifsh)
{
return ArduinoFakeInstance(Print, this)->print(ifsh);
}
size_t Print::print(const String &s)
{
return ArduinoFakeInstance(Print, this)->print(s);
}
size_t Print::print(const char str[])
{
return ArduinoFakeInstance(Print, this)->print(str);
}
size_t Print::write(uint8_t u)
{
return ArduinoFakeInstance(Print, this)->write(u);
}
size_t Print::print(char c)
{
return ArduinoFakeInstance(Print, this)->print(c);
}
size_t Print::print(unsigned char b, int base)
{
return ArduinoFakeInstance(Print, this)->print(b, base);
}
size_t Print::print(int n, int base)
{
return ArduinoFakeInstance(Print, this)->print(n, base);
}
size_t Print::print(unsigned int n, int base)
{
return ArduinoFakeInstance(Print, this)->print(n, base);
}
size_t Print::print(long n, int base)
{
return ArduinoFakeInstance(Print, this)->print(n, base);
}
size_t Print::print(unsigned long n, int base)
{
return ArduinoFakeInstance(Print, this)->print(n, base);
}
size_t Print::print(double n, int digits)
{
return ArduinoFakeInstance(Print, this)->print(n, digits);
}
size_t Print::print(const Printable& x)
{
return ArduinoFakeInstance(Print, this)->print(x);
}
size_t Print::println(const __FlashStringHelper *ifsh)
{
return ArduinoFakeInstance(Print, this)->println(ifsh);
}
size_t Print::println(void)
{
return ArduinoFakeInstance(Print, this)->println();
}
size_t Print::println(const String &s)
{
return ArduinoFakeInstance(Print, this)->println(s);
}
size_t Print::println(const char c[])
{
return ArduinoFakeInstance(Print, this)->println(c);
}
size_t Print::println(char c)
{
return ArduinoFakeInstance(Print, this)->println(c);
}
size_t Print::println(unsigned char b, int base)
{
return ArduinoFakeInstance(Print, this)->println(b, base);
}
size_t Print::println(int num, int base)
{
return ArduinoFakeInstance(Print, this)->println(num, base);
}
size_t Print::println(unsigned int num, int base)
{
return ArduinoFakeInstance(Print, this)->println(num, base);
}
size_t Print::println(long num, int base)
{
return ArduinoFakeInstance(Print, this)->println(num, base);
}
size_t Print::println(unsigned long num, int base)
{
return ArduinoFakeInstance(Print, this)->println(num, base);
}
size_t Print::println(double num, int digits)
{
return ArduinoFakeInstance(Print, this)->println(num, digits);
}
size_t Print::println(const Printable& x)
{
return ArduinoFakeInstance(Print, this)->println(x);
}