initial commit
This commit is contained in:
20
PN532_debug.h
Normal file
20
PN532_debug.h
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user