Subversion Repositories svn.mios

Rev

Rev 1197 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1197 Rev 1199
Line 1... Line 1...
1
// $Id: main.c 1197 2015-07-25 22:20:28Z tk $
1
// $Id: main.c 1199 2015-10-24 20:05:35Z tk $
2
/*
2
/*
3
 * MBHP_SCALAR firmware
3
 * MBHP_SCALAR firmware
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 416... Line 416...
416
  unsigned char original_pin = pin;
416
  unsigned char original_pin = pin;
417
#if BLM_AIN_PIN_MAP
417
#if BLM_AIN_PIN_MAP
418
#warning "AIN Pin Map has been activated"
418
#warning "AIN Pin Map has been activated"
419
  pin = ain_pin_map[pin & 7];
419
  pin = ain_pin_map[pin & 7];
420
#endif
420
#endif
-
 
421
  if( MIOS_AIN_Pin7bitGet(original_pin) && pin < BLM_AIN_NUM_PINS ) {
421
  MIOS_MIDI_TxBufferPut(0xb0 + (pin & 0x0f));
422
    MIOS_MIDI_TxBufferPut(0xb0 + (pin & 0x0f));
422
  MIOS_MIDI_TxBufferPut(0x01);
423
    MIOS_MIDI_TxBufferPut(0x01);
423
  MIOS_MIDI_TxBufferPut(MIOS_AIN_Pin7bitGet(original_pin));
424
    MIOS_MIDI_TxBufferPut(MIOS_AIN_Pin7bitGet(original_pin));
-
 
425
  }
424
}
426
}
425
427
426
428
427
429
428
/////////////////////////////////////////////////////////////////////////////
430
/////////////////////////////////////////////////////////////////////////////