OnAcid Posted July 21, 2005 Report Posted July 21, 2005 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. :PAny code guru's? Quote
OnAcid Posted July 22, 2005 Author Report Posted July 22, 2005 Look, the leds of the right menu buttons need to light up with the corresponding menu. 8)The buttons and menu navigation already work. Quote
TK. Posted July 24, 2005 Report Posted July 24, 2005 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. Quote
OnAcid Posted July 25, 2005 Author Report Posted July 25, 2005 Thank you, Thorsten. :-* ;)It's working like a charm! 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.