Hi all, I have a simple question that I can't find the solution.
I am trying to replace the delay() for something else, but it does not work:
Instead of:
fastled.show()
delay(DELAY_MS)
I try:
if time_now > last_time + DELAY_MS
{fastled.show(); last_time = time_now}
So both codes are executing fastled.show() at the same time, but the later do not show the palettes correct.
Any idea why this is happening?
Hi everyone. I've got four esp32s driving separate LED strips, laid out to look like one display (each strip runs up the corner of a wall and then along the ceilings). I'm using painlessMesh to network them, which also gives me a common clock. Common clock means I can sync a common timebase
on all of the devices, so if I do
fadeToBlackBy(leds, NUM_LEDS, 20);
leds[scale16(beat16(10, gTimebase), NUM_LEDS - 1)] = CRGB::Blue;
on each, I basically have pixel perfect synchronization on each strip