Hello,
I’m very excited about the new ProfieBoard v3.
I’m having a little trouble writing a line of code, though, as I’m an absolute layman…
If I want to connect a neopixel Accent to Free 1, how do I write it in the code line about this Blade’s configuration?
WS281XBladePtr<1, blade5Pin, Color8::GRB, PowerPINS<bladePowerPin6> >(),
Here I’ve written “blade5Pin”, for example, as if Data 1, 2, 3 and 4 were immediately followed by Free 1, 2 and 3, but I’m pretty sure that’s not how this line of code should be written.
Thanks in advance for your help
That is exactly the right way to do it.
You can see it here:
spiLedSelect = -1,
spiLedDataOut =-1,
spiLedClock = -1,
// Neopixel pins
bladePin = 0, // blade control, either WS2811 or PWM PA7+PA6
bladeIdentifyPin = 1, // blade identify input / FoC
blade2Pin = 2, // PA9 + PB4
blade3Pin = 4, // PA10 + PB5
blade4Pin = 6, // PA4
blade5Pin = 7, // Free1 PB3
blade6Pin = 8, // Free2 PB10
blade7Pin = 9, // Free3 PB11 + PC2
blade8Pin = 16, // also uart PC0
blade9Pin = 17, // also uart PC1
// Blade power control
bladePowerPin1 = 20, // blade power control PA1
bladePowerPin2 = 21, // blade power control PB6
bladePowerPin3 = 22, // blade power control PC7
bladePowerPin4 = 23, // blade power control PB1
Maybe there should be better names for these pins, but those are the names available right now.