// How to avoid extremely redundant `#ifdef DEBUG` instructions for every Serial.print?
// https://forum.arduino.cc/t/how-to-avoid-extremely-redundant-ifdef-debug-instructions-for-every-serial-print/1324688/12


#include "Arduino_DebugUtils.h"
// #include <SoftwareSerial.h>

// SoftwareSerial Serial(10, 11); // RX, TX

void setup() {
  Serial.begin(115200);
  Debug.setDebugOutputStream(&Serial);
  Debug.setDebugLevel(DBG_VERBOSE);
  Debug.timestampOn();
}

int i = 0;

void loop() {
  DEBUG_VERBOSE("i = %d", i);
  i++;
  delay(1000);
}