You can now have INFO output, but not DEBUG output. Added support for commands via Serial.

This commit is contained in:
2019-08-09 06:27:33 +02:00
parent 8feb1ec760
commit ebd9a9f24f
6 changed files with 217 additions and 95 deletions

View File

@ -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