switching encoder/ledrings assignments with a button

so - my idea is:

i have an encoder and underneath 3 illuminated buttons. what i would want to do is that when i press one button it lits up, the encoder sends for example cc1 and also the ledring around it receives cc1. when i press another button it lits up, the first button goes of and now the encoder sends cc2 and the ledring receives cc2.

is that possible actually ?

Totally.

any idea how to achieve that ? some hints maybe … i mean should i try to rewrite the mb64e code or start something from scratch ?

actually i would prefer start from scratch in c but i couldn’t find an example for driving ledrings in c on the forum.

Well I guess it depends on what you want. If it’s just what you said there, then I’d write from scratch.

my c programming skills are totally bad but i guess i’ll figure out how to do this switching but i could really need a hand with the ledrings.

is there any application in c with ledrings up so i could look how it is made ?

No LEDRings example sorry I stand corrected :wink:

How’s your ASM? If it’s good you might be better off modding the MB64

MIDIbox MM is a C based application, and it supports LED rings: http://svnmios.midibox.org/trunk/apps/controllers/midibox_mm/src/mm_vpot.c

Best Regards, Thorsten.

Addendum: with MB64E you can achieve this by assigning buttons to the group switching functions as documented here:

http://svnmios.midibox.org/trunk/apps/controllers/midibox64e/doc/midibox64e_sfb_table.txt

128 parameters are available per bank, which means: if you are using 16 rotary encoders, they are splitted over 8 groups.

LEDs: one DOUT has to be mapped to value “9”:

#    9     Selected Group (1 of 8 )

so that 1 of 8 LEDs is lit depending on the selected group.

see also the midibox64e.ini file of the mk_syx package

Best Regards, Thorsten.