bosone Posted May 14, 2006 Report Posted May 14, 2006 i was thinking about adding some led to my midibox controller (since i bought about 100 leds at 2€ at a flea market!)my midibox setup has become the following:i have now 7 pushbutton assigned to CC, in toggle modei'dl like to add a led below each button, so that when i press the button (CCval=127) the led lights, and turn off when i depress the button (CCval=0)i see in the main.asm this code: ; This DOUT map allows you to customize the MB64E application to different hardwares ; The MB64E dump structure allows the use of up to 64 LEDs, they are grouped to 8 LEDs per shift register ; Define the used shift registers for the LEDs here ; the shift registers are counted from one - means: 1 for the first, 2 for the second, etc... ; mark unused LED groups with 0 ;; NOTE: by default, the first four DOUT shift registers are used for the encoders #define DEFAULT_DOUT_SR_PIN_01_08 5 #define DEFAULT_DOUT_SR_PIN_09_16 6 #define DEFAULT_DOUT_SR_PIN_17_24 7 #define DEFAULT_DOUT_SR_PIN_25_32 8 #define DEFAULT_DOUT_SR_PIN_33_40 9 #define DEFAULT_DOUT_SR_PIN_41_48 10 #define DEFAULT_DOUT_SR_PIN_49_56 11 #define DEFAULT_DOUT_SR_PIN_57_64 12 i have 4 shift registers and only one ledring for all my 16 encoders, so i have 2 shift register left. i assume i have to set #define DEFAULT_DOUT_SR_PIN_01_08 3 then i read this: ; above these buttons LEDs should be mounted to visualize the selected parameter ; (e.g. to visualize the bank which corresponds with the buttons below) ; Define the two shift registers which are assigned to this function here: ; 0 disables the GP LEDs (not recommented!) #define DEFAULT_GP_DOUT_SR0 5 ; first GP DOUT shift register assigned to SR#5 #define DEFAULT_GP_DOUT_SR1 6 ; second GP DOUT shift register assigned to SR#6 i guess these settings are only for the general purpose button function, which i dont' need (i don't want to visualize the bank or so on... only the state of a particular CC assigned to a button)my question, now, regards where i find and assign the LED <-> button relation, so that to a particular botton will correspond a definite LED. To complicate the things, the 7 buttons to which i'm referring to are a bit messed up... they are the button numbers 2,3,4,17,18,19,22... so they don't refer to a single shift DIN register...if it's too complicate i think i will give up! ;-)thanks anyway! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.