Jump to content

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


 Share

Recommended Posts

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.  :P

Any code guru's?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...