File tree 3 files changed +38
-1
lines changed
3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 2
2
#include < Adafruit_GFX.h>
3
3
#include < Adafruit_SSD1351.h>
4
4
#include < SPI.h>
5
- // #include "TextAnchor.hpp"
5
+ #include " TextAnchor.hpp"
6
6
// #include <ArduinoSTL.h>
7
7
// #include <cstddef>
8
8
// #include <MemoryUsage.h>
Original file line number Diff line number Diff line change @@ -44,6 +44,37 @@ TextAnchor * TextAnchor::print( char *charValue ) {
44
44
return this ;
45
45
}
46
46
47
+ TextAnchor * TextAnchor::print (int intValue){
48
+ _printInt (intValue);
49
+ return this ;
50
+ }
51
+
52
+ TextAnchor * TextAnchor::print (unsigned int intValue){
53
+ _printInt (intValue);
54
+ return this ;
55
+ }
56
+
57
+ TextAnchor * TextAnchor::print (long intValue){
58
+ _printLong (intValue);
59
+ return this ;
60
+ }
61
+
62
+ TextAnchor * TextAnchor::print (unsigned long intValue){
63
+ _printLong (intValue);
64
+ return this ;
65
+ }
66
+
67
+ TextAnchor * TextAnchor::print (float intValue){
68
+ _printFloat (intValue);
69
+ return this ;
70
+ }
71
+
72
+ TextAnchor * TextAnchor::print (unsigned float intValue){
73
+ _printFloat (intValue);
74
+ return this ;
75
+ }
76
+
77
+
47
78
TextAnchor::~TextAnchor (void ) {
48
79
49
80
}
Original file line number Diff line number Diff line change @@ -123,6 +123,12 @@ class TextAnchor {
123
123
124
124
*/
125
125
126
+ TextAnchor * print (int intValue);
127
+ TextAnchor * print (unsigned int intValue);
128
+ TextAnchor * print (long intValue);
129
+ TextAnchor * print (unsigned long intValue);
130
+ // TextAnchor * print(float intValue);
131
+ // TextAnchor * print(unsigned float intValue);
126
132
127
133
// Set/update the print containers display value to a string, then display it
128
134
TextAnchor * print (char *charValue);
You can’t perform that action at this time.
0 commit comments