Go to the documentation of this file.
42 #if defined(TRACE) // Information you need to understand details of a function or if you hunt a bug.
44 # if !defined(DO_NOT_PROPAGATE_DEBUG_LEVELS) // Propagate levels by default i.e. enabling TRACE does enable DEBUG and INFO
50 #if defined(DEBUG) // Information need to understand the operating of your program. E.g. function calls and values of control variables.
52 # if !defined(DO_NOT_PROPAGATE_DEBUG_LEVELS)
57 #if defined(INFO) // Information you want to see in regular operation to see what the program is doing. E.g. "START ../src/LightToTone.cpp Version 1.2 from Dec 31 2019" or "Now playing Muppets melody".
64 #if defined(LOCAL_TRACE)
65 #define TRACE_PRINT(...) Serial.print(__VA_ARGS__)
66 #define TRACE_PRINTLN(...) Serial.println(__VA_ARGS__)
67 #define TRACE_FLUSH() Serial.flush()
69 #define TRACE_PRINT(...) void()
70 #define TRACE_PRINTLN(...) void()
71 #define TRACE_FLUSH() void()
74 #if defined(LOCAL_DEBUG)
75 #define DEBUG_PRINT(...) Serial.print(__VA_ARGS__)
76 #define DEBUG_PRINTLN(...) Serial.println(__VA_ARGS__)
77 #define DEBUG_FLUSH() Serial.flush()
79 #define DEBUG_PRINT(...) void()
80 #define DEBUG_PRINTLN(...) void()
81 #define DEBUG_FLUSH() void()
85 #if defined(LOCAL_INFO)
86 #define INFO_PRINT(...) Serial.print(__VA_ARGS__)
87 #define INFO_PRINTLN(...) Serial.println(__VA_ARGS__)
88 #define INFO_FLUSH() Serial.flush()
90 #define INFO_PRINT(...) void()
91 #define INFO_PRINTLN(...) void()
92 #define INFO_FLUSH() void()