J'ai commencé à modifier le fichier du midibox64 pour l'adapter à ma futur configuration : Ci-dessous le fichier mios_tables.inc (partie déclaration des 32 boutons) MIOS_MPROC_EVENT_TABLE
;; entry 0x00-0x0f
MT_ENTRY 0xbf, 0x00
MT_ENTRY 0xbf, 0x01
MT_ENTRY 0xbf, 0x02
MT_ENTRY 0xbf, 0x03
MT_ENTRY 0xbf, 0x04
MT_ENTRY 0xbf, 0x05
MT_ENTRY 0xbf, 0x06
MT_ENTRY 0xbf, 0x07
MT_ENTRY 0xbf, 0x08
MT_ENTRY 0xbf, 0x09
MT_ENTRY 0xbf, 0x0a
MT_ENTRY 0xbf, 0x0b
MT_ENTRY 0xbf, 0x0c
MT_ENTRY 0xbf, 0x0d
MT_ENTRY 0xbf, 0x0e
MT_ENTRY 0xbf, 0x0f
;; entry 0x10-0x1f
MT_ENTRY 0xbf, 0x10
MT_ENTRY 0xbf, 0x11
MT_ENTRY 0xbf, 0x12
MT_ENTRY 0xbf, 0x13
MT_ENTRY 0xbf, 0x14
MT_ENTRY 0xbf, 0x15
MT_ENTRY 0xbf, 0x16
MT_ENTRY 0xbf, 0x17
MT_ENTRY 0xbf, 0x18
MT_ENTRY 0xbf, 0x19
MT_ENTRY 0xbf, 0x1a
MT_ENTRY 0xbf, 0x1b
MT_ENTRY 0xbf, 0x1c
MT_ENTRY 0xbf, 0x1d
MT_ENTRY 0xbf, 0x1e
MT_ENTRY 0xbf, 0x1f
Dans le fichier setup_midibox64.asm définition des 32 boutons.
#define DEFAULT_NUMBER_BUTTONS 32 ; number of connected buttons
; mark unused button groups with 0
#define DEFAULT_DIN_SR_PIN_01_08 2
#define DEFAULT_DIN_SR_PIN_09_16 3
#define DEFAULT_DIN_SR_PIN_17_24 1
#define DEFAULT_DIN_SR_PIN_25_32 4
#define DEFAULT_DIN_SR_PIN_33_40 0
#define DEFAULT_DIN_SR_PIN_41_48 0
#define DEFAULT_DIN_SR_PIN_49_56 0
#define DEFAULT_DIN_SR_PIN_57_64 0
; mark unused LED groups with 0
#define DEFAULT_DOUT_SR_PIN_01_08 0
#define DEFAULT_DOUT_SR_PIN_09_16 0
#define DEFAULT_DOUT_SR_PIN_17_24 0
#define DEFAULT_DOUT_SR_PIN_25_32 0
#define DEFAULT_DOUT_SR_PIN_33_40 0
#define DEFAULT_DOUT_SR_PIN_41_48 0
#define DEFAULT_DOUT_SR_PIN_49_56 0
#define DEFAULT_DOUT_SR_PIN_57_64 0
Dans le fichier setup_midibox64.asm définition des 16 potentiomètres.
#define DEFAULT_NUMBER_POTS 16 ; number of connected pots Ha oui, dans le fichier mios_tables.inc faut-il aussi déclarer les 16 potentiomètres ? Maintenant il faut que MPLAB veuille bien me compiler sans erreur le tout... Edit : Payement effectué sur www.mikes-elektronikseite.de, y a plus cas attendre maintenant !