mirror of
https://github.com/Vale54321/schafkopf-bot.git
synced 2025-12-16 19:59:33 +01:00
added arduino nfcReader files (#42)
This commit is contained in:
committed by
GitHub
parent
76cb0eaf1a
commit
6259d0bef3
20
Arduino/nfcReader/PN532/PN532_debug.h
Normal file
20
Arduino/nfcReader/PN532/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>>4)&0x0F, HEX); Serial.print(num&0x0F, 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