serial_debugging.h
1 #pragma once
2 
3 #include <Arduino.h>
4 
5 
6 #if DEBUGGING_MESSAGES
7 #define DEBUG(x) Serial.print(x);
8 #define DEBUGLN(x) Serial.println(x);
9 #define DEBUG2(x, y) Serial.print(x, y);
10 #define DEBUGLN2(x, y) Serial.println(x, y);
11 #else
12 #define DEBUG(x)
13 #define DEBUGLN(x)
14 #define DEBUG2(x, y)
15 #define DEBUGLN2(x, y)
16 
17 #endif