Blame view

PN532/PN532_debug.h 432 Bytes
1a2e5ee4   henyxia   Big revision
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  #ifndef __DEBUG_H__
  #define __DEBUG_H__
  
  //#define DEBUG
  
  #include "Arduino.h"
  
  #ifdef DEBUG
  #define DMSG(args...)       Serial.print(args)
  #define DMSG_STR(str)       Serial.println(str)
  #define DMSG_HEX(num)       Serial.print(' '); Serial.print(num, HEX)
  #define DMSG_INT(num)       Serial.print(' '); Serial.print(num)
  #else
  #define DMSG(args...)
  #define DMSG_STR(str)
  #define DMSG_HEX(num)
  #define DMSG_INT(num)
  #endif
  
  #endif