Exemplo n.º 1
0
void menu_mix(void) {
    lcd_set_blink(LMENU, LB_SPC);
    menu_list(mix_funcs, sizeof(mix_funcs) / sizeof(void *), MCF_NONE);
    lcd_set_blink(LMENU, LB_OFF);
    config_model_save();
    apply_model_config();
}
Exemplo n.º 2
0
Arquivo: menu.c Projeto: Micha500/gt3b
// set number of model channels, reset model to default values
static void menu_channels_reset(void) {
    menu_tmp_flag = 0;
    lcd_set_blink(LMENU, LB_SPC);
    menu_list(chanres_funcs, sizeof(chanres_funcs) / sizeof(void *), MCF_NONE);
    lcd_set_blink(LMENU, LB_OFF);
    config_model_save();
    apply_model_config();
}
Exemplo n.º 3
0
int main(int argc, const char *argv[])
{
    int  stop = 0;
    int  choice = 0;
    stu head ;
    head = NULL;
    while( stop == 0)
    {
        choice = menu_list();
        switch( choice )
        {
            case  1  : head = add_stu(head);break;
            case  2  : head = del_stu(head);break;
            case  3  : disp_stu(head);break;
            case  4  : store_stu(head);break;
            case  5  : head = read_stu();break;
            case  9  : stop = 1;break;
            default  : break;
        }
    }
    return 0;
}