 uint16_t char_x_offset[NUM_F_CHAR + 1]; // x offset for start/end of each character on display
 
 // index of selected digit in frequency display
-int sel_digit = -1;
+int freq_digit_select = -1;
 
 uint32_t msraw = 0x80000000;
 #define MIN_REPEAT_PERIOD   100

#define FREQ_BG             ILI9341_WHITE
#define FREQ_SEL_BG         ILI9341_GREEN
#define BOTTOM_BG           ILI9341_WHITE

// touchscreen stuff
int ts_rotation = 0;
int ts_width = SCREEN_WIDTH;
int ts_height = SCREEN_HEIGHT;

// ONLINE button definitions
#define BUTTON_RADIUS       5

void keypad_show(int offset)
{
  // highlight the frequency digit we are changing
  freq_select(offset);

  // draw keypad basic outline
  tft.fillRoundRect(KEYPAD_X, KEYPAD_Y, KEYPAD_W, KEYPAD_H, BUTTON_RADIUS, ILI9341_BLACK);
