Sub Blade Reverse...?

I’m doing an install that’s going to be tricky to access the board once it’s built, so I want to get the config right first time. The thing is I’ve never had to use SubBladeReverse before (needed in this case as there’s an accent strip that needs to be wired front-to-back).

Can someone who has used it just cast an eye over my blade array please. It compiles fine - I just want to be sure that it will do what it says on the tin.

Thanks.
:slight_smile:

BladeConfig blades[] = {
  { 0,
//  Main Blade:
 	WS281XBladePtr<132, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>>(),
//  Crystal Chamber:
 	WS281XBladePtr<1, bladePin, Color8::GRB, PowerPINS<bladePowerPin1>>(),
//  Accent Strips, Short, Front:
 	SubBladeReverse (0, 3, WS281XBladePtr<4, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3>>()),
//  Accent Strips, Long, Rear:	
 	WS281XBladePtr<9, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin4>>(),
//  Motor:  
    SimpleBladePtr<Motor, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>(),
CONFIGARRAY(presets) },

Looks good to me.
The syntax for SubBladeReverse is exactly the same as SubBlade, and it just lights up the LEDs in opposite order.

1 Like

Perfect. Thanks as always Prof.
I just wasn’t sure if SubBlade always required a second line ending in NULL to work correctly. (I realise that’s showing my coding ignorance, hence I thought it best to double check.). :smiley:
Thanks again. :slight_smile: :+1: