eptheca

[SOLVED]MB64 LED's problem

5 posts in this topic

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 by eptheca

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

"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

 

med_gallery_7274_109_630463.jpg

Share this post


Link to post
Share on other sites

Great!  :thumbsup:

 

Best Regards, Thorsten.

Share this post


Link to post
Share on other sites

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