I’ve created a set of cornhole boards w/ epoxied in ws2812’s and have been using WLED to control. I want to add a IR break sensor in the place of a button to call for a specific effect for a timed duration before going back to the default effect (i.e. bag in hole -> cool effect for 5 seconds -> back to original effect). I’m looking through the combined macros and API requests to determine if this is possible. I’m very new at this so any help would be greatly appreciated!
From what I can tell, I can use the following:
-
activate effect/color/brightness 1 via boot macro 1
-
use the short press to activate macro 2 to set the effect/color/brightness 2 and to activate countdown mode
-
use the countdown-over macro to toggle back to the original effect on macro 1
Now, I believe 1. and 3. are pretty straight forward, but I do have a question about number 2.
Question - am I correct in assuming that I can activate the countdown timer in this way by utilizing the NM= parameter? If I am correct in this, when have my countdown goal set to 5 seconds, the series of macros will run each time the break sensor is triggered thus making my boards light up in spectacular fashion for 5 seconds on each hole shot.
Thanks again!