Jump to content

Recommended Posts

Posted

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?

Posted

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

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...