alf45tar / PedalinoMini

Wireless and Bluetooth MIDI Foot Controller
GNU General Public License v3.0
501 stars 88 forks source link

Keep leds on all the time #235

Closed juani13973 closed 3 years ago

juani13973 commented 3 years ago

Hi alf45tar, I've been trying to play with the configs but I did not manage to keep a led of the footswitch on (independently of the state of the CC value). In my 18 footswtich pedalinomini I am using several apps running in the iPad. I want to color code the footswtichs to associate them to an app. ex : Red is Bias FX-2, Blue is Quantiloop etc. I want the led always on independently of the value sent. is this possible ?

with this config below, the led is on only when the footswtich is pressed, but I am saying the led should be on and the same color when off

Screenshot 2021-06-10 at 22 33 25

With the config below. It toggles between on and off and the led is only ON when the value 127 is active. Said so, I said I want the led with the same color when off.

Screenshot 2021-06-10 at 22 42 24

Conclusion, is it possible to define the color of the led and leave it always on independently of what I do with the footswitch configuration ?

alf45tar commented 3 years ago

It should be possible. If not there is a bug. I will check and let you know.

TarFilarek commented 3 years ago

Hello,

I've checked it and it works on my controller.

You should go to Options tab and check the Leds Off Brightness. Probably Your slider is on 0 position.

webui-options2

You can use these sliders to distinguish ON and OFF states with the same colour LEDs (eq. dim green when off, bright green when on). You can also put them in the same position, to make LEDs identical in both states.

alf45tar commented 3 years ago

@TarFilarek very good insight

juani13973 commented 3 years ago

Thx TarFilarek and Alf45tar problem solved !!! All working now. Quick one : is it my leds or the colors are inverted ? when I select Green, I get Red, and when I select Red I get Green. That is easy but trying to guess the other 16M colors gets complicated :) Thx again,

alf45tar commented 3 years ago

Replace

https://github.com/alf45tar/PedalinoMini/blob/c833f75fa3c3819ffb2cc6abd95c20f727c9b0eb/src/PedalinoMini.cpp#L302

with

FastLED.addLeds<NEOPIXEL, FASTLEDS_DATA_PIN, GRB>(fastleds, LEDS);