PN532 Driver library This library provides an abstract API to drive the pn532 nfc chip, with I2C/HSU/SPI interface. Its based on the Seeed Studio's Arduino version.

Dependents:   PN532_ReadUid Nfctest2

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PN532_debug.h Source File

PN532_debug.h

00001 #ifndef __DEBUG_H__
00002 #define __DEBUG_H__
00003 
00004 #define DEBUG
00005 
00006 #include <stdlib.h>
00007 #include "Arduino.h"
00008 
00009 #ifdef DEBUG
00010 #define DMSG(args...)       printf (args)
00011 #define DMSG_STR(str)       printf (str)
00012 #define DMSG_HEX(num)       printf (" %02X", num)
00013 #define DMSG_INT(num)       printf (" %d ", num)
00014 #else
00015 #define DMSG(args...)
00016 #define DMSG_STR(str)
00017 #define DMSG_HEX(num)
00018 #define DMSG_INT(num)
00019 #endif
00020 
00021 #endif