Subversion Repositories svn.mios32

Rev

Rev 2531 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2531 Rev 2532
Line 1... Line 1...
1
// $Id: app.c 2531 2017-10-11 22:55:38Z tk $
1
// $Id: app.c 2532 2017-10-12 21:50:45Z tk $
2
/*
2
/*
3
 * MIDIbox SEQ V4
3
 * MIDIbox SEQ V4
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 420... Line 420...
420
// pin_value is 1 when button released, and 0 when button pressed
420
// pin_value is 1 when button released, and 0 when button pressed
421
/////////////////////////////////////////////////////////////////////////////
421
/////////////////////////////////////////////////////////////////////////////
422
void APP_SEQ_BLM8X8_NotifyToggle(u8 blm, u32 pin, u32 pin_value)
422
void APP_SEQ_BLM8X8_NotifyToggle(u8 blm, u32 pin, u32 pin_value)
423
{
423
{
424
  if( app_din_testmode ) {
424
  if( app_din_testmode ) {
425
    DEBUG_MSG("[DIN_TESTMODE] BLM8x8%c Pin M%d D%d %s\n", 'A'+blm, (pin>>3)+1, pin&7, pin_value ? "depressed" : "pressed");
425
    DEBUG_MSG("[DIN_TESTMODE] BLM8x8 Pin M%d%c D%d %s\n", (pin>>3)+1, 'A'+blm, pin&7, pin_value ? "depressed" : "pressed");
426
  }
426
  }
427
427
428
#ifndef MBSEQV4L
428
#ifndef MBSEQV4L
429
  SEQ_LCD_LOGO_ScreenSaver_Disable();
429
  SEQ_LCD_LOGO_ScreenSaver_Disable();
430
#endif
430
#endif
Line 438... Line 438...
438
    pin = (pin & 0xf8) | (7-(pin & 7));
438
    pin = (pin & 0xf8) | (7-(pin & 7));
439
      }
439
      }
440
    }
440
    }
441
    SEQ_UI_Button_Handler(pin, pin_value);
441
    SEQ_UI_Button_Handler(pin, pin_value);
442
  } else {
442
  } else {
443
    SEQ_UI_Button_Handler(pin + 184, pin_value);
443
    SEQ_UI_Button_Handler(blm*64 + pin + 256, pin_value);
444
  }
444
  }
445
}
445
}
446
446
447
447
448
/////////////////////////////////////////////////////////////////////////////
448
/////////////////////////////////////////////////////////////////////////////