No Blade Functionality

Actually, I may have an idea of what’s going on: savefiles!

You probably want to have separate save files for the no-blade case and the in-blade case, to do that you update your blades[] array to:

BladeConfig blades[] = {
 { 0, WS281XBladePtr<115, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
CONFIGARRAY(blade) },
 
 { NO_BLADE, WS281XBladePtr<115, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
CONFIGARRAY(no_blade), "noblade" },
};

Now when there is no blade, it will read/write to “noblade/*”, when there is a blade, it will read/write to the top level directory.

1 Like