Sid: led for active submenu (osc, env, fil, etc.)

Is it possible get the value of the active submenu and then have a corresponding led light up?

I think I can use the “CS_MENU” label for this, but I wrote a (much too) complicated function which grinded my mbsid to a halt. After a restart it kept on updating the patches or something and I had to reload MIOS and a older backup of my software…  So that didn’t work very well.  :stuck_out_tongue:

Any code guru’s?

Look,

the leds of the right menu buttons need to light up with the corresponding menu.  8)

The buttons and menu navigation already work.
QuadraSid_130705_1.jpg

Hi,

you could control the additional LEDs in cs_menu_leds.inc, example:

CS_MENU_LED_Update

clrf	MIOS_PARAMETER1 ; clear LED by default
movf	CS_MENU, W
xorlw	CS_MENU_OSC
skpnz
setf	MIOS_PARAMETER1 ; set LED if CS_MENU == CS_MENU_OSC
movlw	8*(7-1) + 0 ; SR7, pin #0
call	MIOS_DOUT_PinSet

[/code]









Best Regards, Thorsten.

Thank you, Thorsten.  :-* :wink:

It’s working like a charm!

Great! :slight_smile:

Best Regards, Thorsten.