Does anyone have advice about choosing CLK/DATA pins for APA102 LEDs with a Particle Photon? I’ve seen some projects use A3 for the clock and A5 for the data (e.g. many of the evilgeniuslabs projects), and have also seen D4 used for the clock and D2 used for the data (e.g. SmartMatrix APA102 Shield for Photon.) It seems like both pairs are potentially hardware SPI pins.
When I measured with a scope on my board it looks like D4/D2 is about ~25% faster for a string of 144 LEDs than A3/A5. So it seems like for efficiency D4/D2 would be best, but perhaps there’s a reason to choose A3/A5. I don’t know how the library is driving the pins, but it seems like there must be some difference given the performance. Does one scheme end up loading the CPU less due to DMA being involved?
Any advice is appreciated. It’s not a big deal to change later, but it would be nice to understand why there’s a difference.