Updated debug macros

pull/1/head
Jan Gromeš 2018-07-23 11:10:48 +02:00
rodzic 39d674f953
commit db9983b3e5
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -12,16 +12,24 @@
#ifdef KITELIB_DEBUG
#define DEBUG_BEGIN(x) Serial.begin (x)
#define DEBUG_PRINT(x) Serial.print (x)
#define DEBUG_PRINT_BIN(x) Serial.print (x, BIN)
#define DEBUG_PRINTLN_BIN(x) Serial.println (x, BIN)
#define DEBUG_PRINT_DEC(x) Serial.print (x, DEC)
#define DEBUG_PRINTLN_DEC(x) Serial.println (x, DEC)
#define DEBUG_PRINT_HEX(x) Serial.print (x, HEX)
#define DEBUG_PRINTLN_HEX(x) Serial.println (x, HEX)
#define DEBUG_PRINTLN(x) Serial.println (x)
#define DEBUG_PRINT_STR(x) Serial.print (F(x))
#define DEBUG_PRINTLN_STR(x) Serial.println (F(x))
#else
#define DEBUG_BEGIN(x)
#define DEBUG_PRINT(x)
#define DEBUG_PRINT_BIN(x)
#define DEBUG_PRINTLN_BIN(x)
#define DEBUG_PRINT_DEC(x)
#define DEBUG_PRINTLN_DEC(x)
#define DEBUG_PRINT_HEX(x)
#define DEBUG_PRINTLN_HEX(x)
#define DEBUG_PRINTLN(x)
#define DEBUG_PRINT_STR(x)
#define DEBUG_PRINTLN_STR(x)