messages.h
Go to the documentation of this file.
#pragma once
#if ESSENTIAL_MESSAGES
#define PRINT(x) Serial.print(x);
#define PRINTLN(x) Serial.println(x);
#else
#define PRINT(x)
#define PRINTLN(x)
#endif
#if DEBUGGING_MESSAGES
#define DEBUG(x) Serial.print(x);
#define DEBUGLN(x) Serial.println(x);
#define DEBUG2(x, y) Serial.print(x, y);
#define DEBUGLN2(x, y) Serial.println(x, y);
#define START(x) Serial.print(x); uint32_t start = millis();
#define STOP() Serial.print(" OK ["); Serial.print((millis() - start) / 1000.0); Serial.println("s]");
#else
#define DEBUG(x)
#define DEBUGLN(x)
#define DEBUG2(x, y)
#define DEBUGLN2(x, y)
#define START(x)
#define STOP()
#endif