//===========================
#define EVERY_MS(x) \
  static uint32_t tmr;\
  bool flag = millis() - tmr >= (x);\
  if (flag) tmr = millis();\
  if (flag)
//===========================
#define FOR_i(from, to) for(int i = (from); i < (to); i++)
#define FOR_j(from, to) for(int j = (from); j < (to); j++)
#define FOR_x(from, to) for(int x = (from); x < (to); x++)
#define FOR_y(from, to) for(int y = (from); y < (to); y++)
//===========================
#define FOR(x, from, to) for (int (x) = (from); (x) < (to); (x)++)
//===========================
#ifdef DEBUG_SERIAL_GT
#define DEBUGLN(x) Serial.println(x)
#define DEBUG(x) Serial.print(x)
#else
#define DEBUGLN(x)
#define DEBUG(x)
#endif
//===========================
