FMMT666 / launchpad.py

Novation Launchpad (and Midi Fighter) control suite for Python
Other
355 stars 63 forks source link

The top row of buttons won't light up. #71

Open berryempire opened 3 years ago

berryempire commented 3 years ago

Hello, I noticed that the top row of buttons on the Launchpad Mini simply won't light up. (I mean the round buttons marked with numbers 1, 2, 3, 4, 5, 6, 7, 8). The A, B, C, D, E, F, G, H column works fine.

Thanks!

FMMT666 commented 3 years ago

Do you mean the Mk1 Mini, the red/green one? This could be caused by a lot of things.

Could you please share some code? Does it work with LedCtrlAutomap( number, red, green )?

Also, there indeed was something wrong with the top row buttons, I changed sth in 1/2021. Need to investigate though.

berryempire commented 3 years ago

Hello, It's an older launchpad mini with red/green (or red+green) lights. I managed to light the top row up, it seems like the top row uses numbers 200 - 208 for some reason. Following code will light up the entire launchpad red (except the top row that'll be orange)

for red in range(2):
    for pos in range(136):
        if pos > 127:
            lp.LedCtrlRaw(200+(pos-128), red + 1, 0 )
        else:
            lp.LedCtrlRaw( pos, red + 1, 0 )
        time.wait( 15 )

LedCtrlAutomap() will make the entire top row orange (it's always orange). But that's it. Seems like it can't light up other buttons.

Thanks!

FMMT666 commented 3 years ago

Ok, thanks, will check this. Stay tuned ...

tomveich commented 3 years ago

Thanks!

FMMT666 commented 3 years ago

I don't see any problems here, everything is working fine. The top row LEDs can be controlled like all the others.

Is it possible that you have an old version installed? Sound exactly like the problems that were solved by pull request #64.

tomveich commented 3 years ago

I'm not sure how I installed launchpad.py but I think it's the latest version. Anyways, how can I update it to the latest version? (Ubuntu) Thanks!