alf45tar / PedalinoMini

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

RGB order modification #349

Closed bobvc133 closed 2 years ago

bobvc133 commented 2 years ago

I have changed the RGB order to GRB in the WebConfigAsync.h file, the actual LED display color is correct, but the order of the options page still displays RGB, how can I change the default display GRB?

alf45tar commented 2 years ago

Not sure what you changed in WebConfigAsync.h. EEPROM is changed. Did you reset it to factory default?

bobvc133 commented 2 years ago

Not sure what you changed in WebConfigAsync.h. EEPROM is changed. Did you reset it to factory default?

Sorry, my mistake, it should be that I changed the RGB order to GRB in Pedalino.h, what I mean is that although I changed the RGB order, the color display is no problem, but why the default order of the options page still shows RGB, how to change it for GRB

bobvc133 commented 2 years ago

Not sure what you changed in WebConfigAsync.h. EEPROM is changed. Did you reset it to factory default?

The purpose of modifying these default settings is to hope that these basic items will not be set when restoring to factory settings

alf45tar commented 2 years ago

The answer is in the comment

#define LED_RGB_ORDER RGB // do not change it, RGB order is managed by program because FastLED library does not support changing RGB order at runtime

LED_RGB_ORDER has no effect on user interface. It is used to initialise the led strip for FastLED library at compile time.

bobvc133 commented 2 years ago

The answer is in the comment

#define LED_RGB_ORDER RGB // do not change it, RGB order is managed by program because FastLED library does not support changing RGB order at runtime

LED_RGB_ORDER has no effect on user interface. It is used to initialise the led strip for FastLED library at compile time.

All other default settings have been modified according to my hardware conditions. Now no matter how I restore the factory settings, I don’t need to set parameters such as wifi, pedals, resistance ladders, etc., but only need to set the action events, because if there is no backup configuration file, I It is necessary to reset the relevant parameters. Sometimes it is inevitable to miss some items. The only problem now is that the RGB order needs to be set. I just want to change the GRB to the default order.

alf45tar commented 2 years ago

Change the following line in Pedalino.h

EOrder rgbOrder = RGB;

bobvc133 commented 2 years ago

EOrder rgbOrder = RGB

ok, perfect