I’m doing a new bike under-light build with some 12v strips. Part of the concept is the driver board will automatically cut power to the LEDs when the bike stops, by way of a p-channel MOSFET on the 12v line feeding the strips.
Do I also need to switch off the data line? I vaguely remember tales of fried microcontrollers due to LEDs attempting to pull power through the data line.
From adafruit best practices:
"
Avoid connecting NeoPixels to a live circuit. If you simply must, always connect ground first, then +5V, then data. Disconnect in the reverse order.
If powering the pixels with a separate supply, apply power to the pixels before applying power to the microcontroller.
"
So sounds like you will want to disconnect data, then cut 12v power when stopping. And apply 12v power and then connect data when lighting back up.