8000 add a printf method · geeksville/ArduinoCore-API@2295378 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2295378

Browse files
committed
add a printf method
1 parent 45e4e5a commit 2295378

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/Print.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ class Print
6060
// should be overriden by subclasses with buffering
6161
virtual int availableForWrite() { return 0; }
6262

63+
// Some Arduino ports add a printf method (for instance ESP32 and NRF52-Adafruit)
64+
size_t printf(const char *format, ...)
65+
__attribute__((format(printf, 2, 3)));
66+
6367
size_t print(const __FlashStringHelper *);
6468
size_t print(const String &);
6569
size_t print(const char[]);

0 commit comments

Comments
 (0)
0