- Main Page
- Classes
- Files
- Examples

- File List
- File Members

messages.h
Go to the documentation of this file.
1
6 #pragma once
7
8 #if ESSENTIAL_MESSAGES
9 #define PRINT(x) Serial.print(x);
11
13 #define PRINTLN(x) Serial.println(x);
14 #else
15
17 #define PRINT(x)
18
20 #define PRINTLN(x)
21 #endif
22
23 #if DEBUGGING_MESSAGES
24 #define DEBUG(x) Serial.print(x);
26
28 #define DEBUGLN(x) Serial.println(x);
29
31 #define DEBUG2(x, y) Serial.print(x, y);
32
34 #define DEBUGLN2(x, y) Serial.println(x, y);
35
37 #define START(x) Serial.print(x); uint32_t start = millis();
38
40 #define STOP() Serial.print(" OK ["); Serial.print((millis() - start) / 1000.0); Serial.println("s]");
41 #else
42
44 #define DEBUG(x)
45
47 #define DEBUGLN(x)
48
50 #define DEBUG2(x, y)
51
53 #define DEBUGLN2(x, y)
54
56 #define START(x)
57
59 #define STOP()
60 #endif