@@ -24,7 +24,7 @@ Example:
24
24
``` C++
25
25
int i = 1 ;
26
26
float pi = 3.1459 ;
27
- Debug.print(DBG_VERBOSE, " i = %d, pi = %f" , i, pi );
27
+ DEBUG_VERBOSE ( "i = %d, pi = %f", i, pi);
28
28
```
29
29
**Note**: The output of floating point numbers (`%f`) does NOT work on [ArduinoCore-avr](https://github.com/arduino/ArduinoCore-avr).
30
30
@@ -43,7 +43,7 @@ Parameter debug_level in order of lowest to highest priority are : `DBG_NONE`, `
43
43
Return type: void.
44
44
45
45
Example:
46
- ```
46
+ ```C++
47
47
Debug.setDebugLevel(DBG_VERBOSE);
48
48
```
49
49
### Debug.setDebugOutputStream(Stream * stream) :
@@ -52,7 +52,7 @@ By default, Output Stream is Serial. In advanced cases other objects could be ot
52
52
Return type: void.
53
53
54
54
Example:
55
- ```
55
+ ``` C++
56
56
SoftwareSerial mySerial (10, 11); // RX, TX
57
57
Debug.setDebugOutputStream(&mySerial);
58
58
```
@@ -63,9 +63,9 @@ By default, printing timestamp is off, unless turned on using this function call
63
63
Return type: void.
64
64
65
65
Example:
66
- ```
66
+ ```C++
67
67
Debug.timestampOn();
68
- Debug.print( DBG_VERBOSE, "i = %d", i); //Output looks like : [ 21007 ] i = 21
68
+ DBG_VERBOSE( "i = %d", i); //Output looks like : [ 21007 ] i = 21
69
69
```
70
70
71
71
### Debug.timestampOff() :
@@ -74,9 +74,9 @@ Calling this function switches off the timestamp in the `Debug.print()` function
74
74
Return type: void.
75
75
76
76
Example:
77
- ```
77
+ ``` C++
78
78
Debug.timestampOff();
79
- Debug.print(DBG_VERBOSE, "i = %d", i); //Output looks like : i = 21
79
+ DEBUG_VERBOSE ( "i = %d", i); //Output looks like : i = 21
80
80
```
81
81
82
82
### Debug.newlineOn() :
@@ -85,7 +85,7 @@ By default, a newline is sent
85
85
Return type: void.
86
86
87
87
Example:
88
- ```
88
+ ```C++
89
89
Debug.newlineOn();
90
90
```
91
91
@@ -95,7 +95,7 @@ By default a newline is sent. Call this to shut that functionality off.
95
95
Return type: void.
96
96
97
97
Example:
98
- ```
98
+ ``` C++
99
99
Debug.timestampOff();
100
100
```
101
101
@@ -106,8 +106,8 @@ This function prints the message if parameter `debug_level` in the `Debug.print(
106
106
Return type: void.
107
107
108
108
Example:
109
- ```
109
+ ``` C++
110
110
Debug.setDebugLevel(DBG_VERBOSE);
111
111
int i = 0 ;
112
- Debug.print(DBG_VERBOSE, "DBG_VERBOSE i = %d", i);
112
+ DEBUG_VERBOSE ( "DBG_VERBOSE i = %d", i);
113
113
```
0 commit comments