   */
 }
 
+
 /*
 M2_LABEL(el_num_label1, NULL, "Variable");
 M2_U8NUM(el_num_1, NULL, 0, 255, &u8num);

M2_ALIGN(el_top_fs, "-1|1W64H64", &el_fs_hlist);


// Left entry: Menu name. Submenus must have a '.' at the beginning
// Right entry: Reference to the target dialog box (In this example all menus call the toplevel element again
m2_menu_entry m2_2lmenu_data[] = 
{
  { "Epreuve", NULL },
  { ". Strategie", &el_rb_grid },
  { ". Initialisation", &el_top_combo },
  { "Tests", NULL },
  { ". Test I2C", &el_top_num_menu },
  { ". Test Pince", &el_top_num_menu_2},
  { ". Test Moteur", &top_el_muse},
  //{ ". File Select", &el_top_fs },
  { "Debug ", NULL },
  { ". Debug Moteur", &el_top_num_menu_debug_01},
  { ". Debug Autre", &el_top_num_menu_debug_02},
  { "Top", &top_el_expandable_menu },
  { NULL, NULL },
};


};
M2_VLIST(el_muse_vlist, "c2", muse_list);
M2_ALIGN(top_el_muse, "-1|1W64H64", &el_muse_vlist);


//____________________________________________________________________________________________________
/*=== combo examples  ===*/

uint8_t select_coord = 0;
uint8_t select_priority = 0;


void fn_ok(m2_el_fnarg_p fnarg) {
  /* accept selection */
  m2_SetRoot(&top_el_expandable_menu);
}


void fn_cancel(m2_el_fnarg_p fnarg) {
  /* discard selection */
  m2_SetRoot(&top_el_expandable_menu);
}


const char *fn_idx_to_color(uint8_t idx)
{
  switch(idx)
  {
    case 0: return "a";
    case 1: return "b";
    case 2: return "c";
  }
  return "";
}


const char *fn_idx_to_priority(uint8_t idx)
{
  switch(idx)
  {
    case 0: return "lowest";
    case 1: return "low";
    case 2: return "medium";
    case 3: return "high";
    case 4: return "highest";
  }
  return "";
}


M2_LABEL(el_label1, NULL, "Init:");
M2_COMBO(el_combo1, NULL, &select_coord, 2, fn_idx_to_color);

M2_LABEL(el_label2, NULL, "Priority: ");
M2_COMBO(el_combo2, "v1", &select_priority, 5, fn_idx_to_priority);

M2_BUTTON(el_cancel, "f4", "cancel", fn_cancel);
M2_BUTTON(el_ok, "f4", "ok", fn_ok);

M2_LIST(list_combo) = { 
    &el_label1, &el_combo1, 
    &el_label2, &el_combo2,  
    &el_cancel, &el_ok 
};
M2_GRIDLIST(el_combo_grid, "c2", list_combo);
M2_ALIGN(el_top_combo, "-1|1W64H64", &el_combo_grid);


//____________________________________________________________________________________________________
