We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b4cec5 commit 1a638a0Copy full SHA for 1a638a0
examples/Arduino_Debug_Levels/Arduino_Debug_Levels.ino
@@ -0,0 +1,23 @@
1
+#define DEBUG_LEVEL DEBUG_LEVEL_INFO
2
+#include <Arduino_DebugUtils.h>
3
+
4
+void setup() {
5
+ Serial.begin(9600);
6
+ Debug.timestampOn();
7
+ Debug.debugLabelOn();
8
+ Debug.setDebugLevel(DBG_ALL);
9
+}
10
11
+int i = 0;
12
13
+void loop() {
14
+ DEBUG_ERROR("i = %d", i);
15
+ DEBUG_WARNING("i = %d", i);
16
+ DEBUG_INFO("i = %d", i);
17
+ DEBUG_DEBUG("i = %d", i);
18
+ DEBUG_VERBOSE("i = %d", i);
19
20
+ Serial.println();
21
+ i++;
22
+ delay(1000);
23
0 commit comments