[M] Move files

This commit is contained in:
2023-11-25 12:35:21 -05:00
parent cb02e07623
commit 3262956c95
40 changed files with 1 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef __DEBUG_H__
#define __DEBUG_H__
//#define DEBUG
#include "Arduino.h"
#ifdef ARDUINO_SAMD_VARIANT_COMPLIANCE
#define SERIAL SerialUSB
#else
#define SERIAL Serial
#endif
#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