katie-snow / Ultimarc-linux

Library and command line utilities
GNU General Public License v2.0
96 stars 22 forks source link

Ultimate ipac led json #93

Open mattjonesc opened 1 year ago

mattjonesc commented 1 year ago

Hi, more of a question than an issue: Are there any other parameters that I can pass to the ipacultimate_led.json to control the Leds using umtool? I was able to get this working using the sample script but would like to configure all buttons and specify the rgb color values.

Thanks!

katie-snow commented 1 year ago

Do you want to configure actions and leds? The ipacultimate_pins.json has the format for configuring both at the same time.

You will have to expand the "intensity" array with entries for each pin number.

mattjonesc commented 1 year ago

Thank you katie. I’m just trying to configure the colors for each led… for example, button1 connected to led row 1-3 on the board I want to make blue, is there a parameter that I can configure to make R,G,B values = 0,0,16?

mattjonesc commented 1 year ago

Hi Katie,

Apologies for my ignorance. I was able to figure this out. The led parameter corresponds to the led pin and the intensity is the individual RGB value for each pin. One thing that I got stuck on was that the led parameter is zero-indexed while the physical board itself (what is printed on it) is not. Therefore, to set my button connected to the first led row on the board (labeled 1 - 3), I need to specify the led intensities for 0, 1, 2.

As a follow on question, can you explain what the "LED states random" and "fade rate" parameters control and what values can be passed to each?

Thank you again!