I have WS2812b LED strips connected to a Wemos D1 Mini with data pin on LED_PIN 13 (D7). I have a 20amp 5v supply with common ground between the D1 and my LED strips. Power is being injected every ~7 LEDs. There are 292 LEDs total.
I have a 100nf capacitor on the strip right next to the first LED (I have also tried a few other capacitors, like 100uf and other sizes). I am using a 74AHCT125 level shifter.
I am still getting persistently flashing/flickering on the first LED off the strip, especially if I'm running any "moving lights" type of code. If I just send a "always on" type of signal it still seems to flash, but also isn't the correct color.
Here is my code. Code Sorry it's so messy, I've just been trying a bunch of things.
Is there something else I can try? I feel like it's a hardware issue, but I can't figure it out because I've done all the things I've seen in other posts (like capacitors and power, etc). But maybe it's my poor code?