diff --git a/src/TypeDef.h b/src/TypeDef.h index d29f4b0b..d278fa8d 100644 --- a/src/TypeDef.h +++ b/src/TypeDef.h @@ -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)