-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New LED Color menu + some code optimization #1853
Conversation
And just try your PR, not working for me. M150 commands do not seem to be sent correctly to the motherboard. |
The warning is not a problem (the define on LEDColor overrides the one provided in another .h file). M150 R%d U%d B%d W%d P%d I%d where %d are the 6 components set from the custom menu Try to set I properly. The Red, blue, ON, OFF etc... can be easily fixed. yust not setting the I component to 0 |
Ah we need to set W, P and I in custom menu to use red, green, blue and white button ? Not really intuitive. |
currently pressing on RED, BLUE etc... will always set to 0 P and I. It could be easily fixed. Use the custom menu setting the proper value (also I) and it should work |
Just try, when i set W, P and I my leds light up, but after when I click on red, blue or green button my leds light off instead of changing color and value P and I go back to 0. |
yes that is the bug. an easy fix. but you will need to use the custom menu to set the proper NEO pixel setting. Then P and I will be maintained pressing on RED, BLUE... ON and OFF. I'm going to fix the bug |
@digant73 Let me know as soon as it's done so I can test. |
fixed. Now the P and I components (used by NEOPixel) are maintained once they were set from the custom menu. So switching to standard colors (red, green...) or to ON/OFF will avoid to loose the NEOPixel components |
@digant73 This issue is now fixed but another issue : P and I components are not saved after restarting the printer, it's really annoying if you have to redefine them every time. Maybe it would be better to set P and I components to 255 by default. |
@digant73 : Thanks for your work! 👍
Just tried your lastest PR : Red / Green / Blue buttons don't work "out of the box", I have to set manually P to 255 first. |
@GregSKR Yes when I (index) is set to 0 only the first led is controlled, if you set 1 the second, etc.. depending of number of LED you have. Personally, I don't really see the importance of this "I" parameter, I don't change the color of my LEDs one by one but all at the same time. |
ok so it is enough to use 255 as default value for P and I instead of 0. |
@digant73 Just try your fix and value for P and I are always 0 at startup. Not working, I have the same like first issue, buttons red, green, blue, white shutdown my leds. And for LED Off, not needed to be 255 for P and I, no ? const LED_VECT ledOff = {0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF}; Here, a video of the issue : https://www.youtube.com/watch?v=h85AneYQ2C4 |
should work now. for LED OFF, at least I should be 255 in order it is applied to all LEDs const LED_VECT ledOff = {0x00, 0x00, 0x00, 0x00, 0x00, 0xFF}; |
@digant73 Just try your last fix, all is working as expected now. Thanks. |
@digant73 Thanks, I confirm it's all fine now for NeoPixels, everything works as expected! 👍 |
good. thanks to both for the testing |
This reverts commit 244c5bf.
a88f734
to
b321de9
Compare
NEW FEATURES:
IMPROVEMENTS:
resolves #1687
PR STATE: ready to be merged