WLED icon indicating copy to clipboard operation
WLED copied to clipboard

Macro Mayhem!

Open brentbrooks70 opened this issue 7 years ago • 2 comments

@Aircoookie (or anybody) I have another strange issue, this time with Macros... If I define a macro such as: T=1&A=4&FX=65&FP=30&SX=0 nothing after the A gets set. In other words, the above macro would turn on the light, set the brightness to 4 and that is it. If I move it towards the end of the macro as in T=1&FX=65&FP=30&SX=0&A=4 everything gets set except the A (brightness). Now, if I set MACRO 1 to T=1&FX=65&FP=30&SX=0&M=2 and set MACRO 2 to A=4 it works! Am I missing something? Doing something wrong? I would hate to have to use 2 macro positions for each setting. :( Sorry to bombard you with so many questions tonight.

This is a binary (WLED_0.8.6_ESP8266.bin) flashed LoLin NodeMCU V.3 ESP8266MOD AIThinker Same board I was using for issue 190 earlier this evening. Thanks again!!!

All Hail @Aircoookie!!! Long Live WLED!!!
Okay, its obviously late and I am getting stupid, time for bed.

brentbrooks70 avatar Nov 08 '19 06:11 brentbrooks70

Hi! Thank you! I'm very happy you like WLED so much! If you are using A=, it will always turn the LEDs on (or off in case of A=0), so using T=1 in that case is not required. In fact, the T will override the A, causing the brightness to be set to whatever it was before the LEDs were turned off. I don't have a clue why the other commands haven't worked in the first macro you tried but i believe it may be related to the segment configuration you have reported in #190. :)

Aircoookie avatar Nov 09 '19 13:11 Aircoookie

Excellent, @Aircoookie you are 100% correct, combining T & A causes conflict FX=65&FP=30&SX=0&A=4 or A=4&FX=65&FP=30&SX=0 both produce expected results. Thanks once more!!

brentbrooks70 avatar Nov 09 '19 18:11 brentbrooks70