eptheca Posted September 3, 2012 Report Share Posted September 3, 2012 (edited) I have built a MB64 to control a synth. I have a problem with the LED's This is what I am trying to achieve: The top 8 buttons are onOnly buttons, and the LED for each button light up when it is pressed, when another of the 8 buttons is pressed, the LED for that buttons lights up, and the other LED turns off. The 3 bottom left buttons are toggle buttons, the LED for that button lights up when it is pressed, and turns off when it is pressed again The 4 bottom right buttons are onOnly buttons, and the LED for each button light up when it is pressed, when another of these 4 buttons is pressed, the LED for that buttons lights up, and the other LED turns off. What happens now is that the 3 groups of buttons/LED's affect each other You can see the problem in this video YouTube Video I would really appreciate some help with this Edited April 5, 2014 by eptheca Quote Link to comment Share on other sites More sharing options...
TK. Posted September 3, 2012 Report Share Posted September 3, 2012 Hi, The top 8 buttons are onOnly buttons, and the LED for each button light up when it is pressed, when another of the 8 buttons is pressed, the LED for that buttons lights up, and the other LED turns off. I'm already surprised that you were able to achieve this - there are no "control groups", the so called "radio button" function isn't supported by the MB64 firmware. It just doesn't support your usecase. You would have to program this into an own (e.g. C based) MIOS application. This isn't so difficult, there are various postings about this topic in the programming section. Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
eptheca Posted September 4, 2012 Author Report Share Posted September 4, 2012 Hi Thorsten, I changed this code in the mb64_buttons.inc file: ;; (button value stored in TMP1) MB64_BUTTON_OnOnly ;; when on: send button value defined in dump ;; when off: send nothing BRA_IFSET TMP1, 0, ACCESS, MB64_BUTTON_NotifyChangeEnd ;; turn off SR1 8 LEDs SET_BSR MB64_BUTTON_VALUES_SR0+0 setf MB64_BUTTON_VALUES_SR0+0 SET_BSR MB64_BUTTON_VALUES_SR0+1 setf MB64_BUTTON_VALUES_SR0+1 ;; save status of button rcall MB64_BUTTON_Hlp_SaveStat rgoto MB64_BUTTON_Send I found a post on the forum that suggested this Since I have no clue about programming, I don't understand what it does really, I just edited the code in the file. If I have to program a new MIOS application in C, I think I will have to let it go It looks like Lemonhorse's MB AY/YM V2 has button/LED handling like I am after, but I guess that is a separate MIOS application as well Thanks for the direction Best regards Halvor Quote Link to comment Share on other sites More sharing options...
eptheca Posted April 4, 2014 Author Report Share Posted April 4, 2014 "Time (and TK) heals all wounds" Just upgraded my YM- synth controller to MBNG on a STM32F4, where TK has integrated Radio Buttons, so now it works properly Quote Link to comment Share on other sites More sharing options...
TK. Posted April 6, 2014 Report Share Posted April 6, 2014 Great! :thumbsup: Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
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.