@@ -24,7 +24,7 @@ Example:
2424``` C++
2525int i = 1 ;
2626float pi = 3.1459 ;
27- Debug.print(DBG_VERBOSE, " i = %d, pi = %f" , i, pi);
27+ DEBUG_VERBOSE ( "i = %d, pi = %f", i, pi);
2828```
2929**Note**: The output of floating point numbers (`%f`) does NOT work on [ArduinoCore-avr](https://github.com/arduino/ArduinoCore-avr).
3030
@@ -43,7 +43,7 @@ Parameter debug_level in order of lowest to highest priority are : `DBG_NONE`, `
4343Return type: void.
4444
4545Example:
46- ```
46+ ```C++
4747Debug.setDebugLevel(DBG_VERBOSE);
4848```
4949### Debug.setDebugOutputStream(Stream * stream) :
@@ -52,7 +52,7 @@ By default, Output Stream is Serial. In advanced cases other objects could be ot
5252Return type: void.
5353
5454Example:
55- ```
55+ ``` C++
5656SoftwareSerial mySerial (10, 11); // RX, TX
5757Debug.setDebugOutputStream(&mySerial);
5858```
@@ -63,9 +63,9 @@ By default, printing timestamp is off, unless turned on using this function call
6363Return type: void.
6464
6565Example:
66- ```
66+ ```C++
6767Debug.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
6969```
7070
7171### Debug.timestampOff() :
@@ -74,9 +74,9 @@ Calling this function switches off the timestamp in the `Debug.print()` function
7474Return type: void.
7575
7676Example:
77- ```
77+ ``` C++
7878Debug.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
8080```
8181
8282### Debug.newlineOn() :
@@ -85,7 +85,7 @@ By default, a newline is sent
8585Return type: void.
8686
8787Example:
88- ```
88+ ```C++
8989Debug.newlineOn();
9090```
9191
@@ -95,7 +95,7 @@ By default a newline is sent. Call this to shut that functionality off.
9595Return type: void.
9696
9797Example:
98- ```
98+ ``` C++
9999Debug.timestampOff();
100100```
101101
@@ -106,8 +106,8 @@ This function prints the message if parameter `debug_level` in the `Debug.print(
106106Return type: void.
107107
108108Example:
109- ```
109+ ``` C++
110110Debug.setDebugLevel(DBG_VERBOSE);
111111int i = 0 ;
112- Debug.print(DBG_VERBOSE, "DBG_VERBOSE i = %d", i);
112+ DEBUG_VERBOSE ( "DBG_VERBOSE i = %d", i);
113113```
0 commit comments