You can now have INFO output, but not DEBUG output. Added support for commands via Serial.
This commit is contained in:
@ -20,6 +20,8 @@
|
||||
#define RX 3
|
||||
#define TX 1
|
||||
|
||||
#define SHOW_DEBUG
|
||||
|
||||
|
||||
#define PIN_SD_CS D4
|
||||
#define PIN_VS1053_XCS D8
|
||||
@ -40,3 +42,14 @@
|
||||
#define VOLUME_STEP 0x08
|
||||
|
||||
#define RFID_SCAN_INTERVAL 100
|
||||
|
||||
|
||||
// Other definitions
|
||||
#define INFO(x, ...) Serial.printf(x, ##__VA_ARGS__)
|
||||
#define ERROR(x, ...) Serial.printf(x, ##__VA_ARGS__)
|
||||
|
||||
#ifdef SHOW_DEBUG
|
||||
#define DEBUG(x, ...) Serial.printf(x, ##__VA_ARGS__)
|
||||
#else
|
||||
#define DEBUG(x, ...) while(0) {}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user