 uint32_t volatile msraw = 0x80000000;
 #define MIN_REPEAT_PERIOD   2
 bool volatile PenDown = false;
+
+//VFOState vfo_state = VFO_Standby;
+VFOState vfo_state = VFO_Online;
 
 
 //-----------------------------------------------

  switch (ts_rotation)
  {
    case 0:     // 'normal' portrait
    case 2:     // invert portrait
      ts_width = tft.width();
      ts_height = tft.height();
      break;
    case 1:     // 'normal' landscape
    case 3:     // invert landscape
      ts_width = tft.height();
      ts_height = tft.width();
      break;
  }
}

//-----------------------------------------------

#define CHAR_HEIGHT         32
#define MHZ_OFFSET_X        (FREQ_OFFSET_X + NUM_F_CHAR*CHAR_WIDTH + 10)

//#define FONT_FREQ           (&ArialBold24pt7b)
#define FONT_BUTTON         (&FreeSansBold12pt7b)
#define FONT_FREQ           (&FreeSansBold24pt7b)

#define ILI9341_LIGHTGREY   0xC618      /* 192, 192, 192 */
#define ILI9341_DARKGREY    0x7BEF      /* 128, 128, 128 */

