Skip to content

Instantly share code, notes, and snippets.

@dkgrieshammer
Created September 18, 2019 11:34
Show Gist options
  • Save dkgrieshammer/fe21568d19f11ddbb7a2b76ac879938c to your computer and use it in GitHub Desktop.
Save dkgrieshammer/fe21568d19f11ddbb7a2b76ac879938c to your computer and use it in GitHub Desktop.
Really Nice Debugging Solution
// Nice Debugging Solution by GrooveFlotilla
//#define DEBUG
#ifdef DEBUG
#define DEBUG_PRINT(x) Serial.print (x)
#define DEBUG_PRINTDEC(x) Serial.print (x, DEC)
#define DEBUG_PRINTLN(x) Serial.println (x)
#else
#define DEBUG_PRINT(x)
#define DEBUG_PRINTDEC(x)
#define DEBUG_PRINTLN(x)
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment