mirror of
https://github.com/Vale54321/schafkopf-bot.git
synced 2025-12-15 11:19:33 +01:00
21 lines
471 B
C
21 lines
471 B
C
#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
|