@@ -5,22 +5,22 @@ This class provides functionality useful for debugging sketches via `printf`-sty
55
66# How-To-Use Basic
77ArduinoDebugUtils has 6 different debug levels (described descending from highest to lowest priority):
8- * ` DEBUG_LVL_NONE ` - no debug output is shown
9- * ` DEBUG_LVL_ERROR ` - critical errors
10- * ` DEBUG_LVL_WARNING ` - non-critical errors
11- * ` DEBUG_LVL_INFO ` - information
12- * ` DEBUG_LVL_DEBUG ` - more information
13- * ` DEBUG_LVL_VERBOSE ` - most information
8+ * ` DBG_NONE ` - no debug output is shown
9+ * ` DBG_ERROR ` - critical errors
10+ * ` DBG_WARNING ` - non-critical errors
11+ * ` DBG_INFO ` - information
12+ * ` DBG_DEBUG ` - more information
13+ * ` DBG_VERBOSE ` - most information
1414
15- The desired debug level can be set via ` setDebugLevel(DEBUG_LVL_WARNING ) ` .
15+ The desired debug level can be set via ` setDebugLevel(DBG_WARNING ) ` .
1616
17- Debug messages are written via ` debugPrint ` which supports ` printf ` -style formatted output.
17+ Debug messages are written via ` print ` which supports ` printf ` -style formatted output.
1818
1919Example:
2020``` C++
2121int i = 1 ;
2222float pi = 3.1459 ;
23- Debug.print(DEBUG_LVL_VERBOSE , " i = %d, pi = %f, i, pi);
23+ Debug.print(DBG_VERBOSE , " i = %d, pi = %f, i, pi);
2424```
2525
2626If desired timestamps can be prefixed to the debug message. Timestamp output can be enabled and disabled via `timestampOn` and `timestampOff`.
0 commit comments