AceTime  0.5.1
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
logging.cpp
1 #include <Arduino.h>
2 #include "compat.h"
3 #include "logging.h"
4 
5 namespace ace_time {
6 namespace logging {
7 
8 void vprintf(const char *fmt, va_list args) {
9  char buf[192];
10  vsnprintf(buf, 192, fmt, args);
11  SERIAL_PORT_MONITOR.print(buf);
12 }
13 
15 void print(const char* fmt, ...) {
16  va_list args;
17  va_start(args, fmt);
18  vprintf(fmt, args);
19  va_end(args);
20 }
21 
26 void println(const char *fmt, ... ) {
27  va_list args;
28  va_start(args, fmt);
29  vprintf(fmt, args);
30  va_end(args);
31  SERIAL_PORT_MONITOR.println();
32 }
33 
35 inline void println() {
36  SERIAL_PORT_MONITOR.println();
37 }
38 
39 }
40 }
Macros and definitions that provide a consistency layer among the various Arduino boards for compatib...