Skip to content

Blade Configuration

Boyko Kazakov edited this page Oct 26, 2018 · 15 revisions

Proffie OS allows the use of multiple blades configurations.

All blades are defined in object array of type BladeConfig. Blade selection works with resistor measure on the ID pin of the board. If no more then one blade configurations are defined in the array, it will be selected regardless the resistance on the pin.

Example: The following code defines two blade configurations. If you connect 2,6k Resistor between ID and GND pin, saber board will be configured to use neopixel setup with style configuration in the presets array. Similarly the second configuration switches to Tri-Cree setup. To learn how to configure presets array check out the Style Configuration page.

BladeConfig blades[] = {
  {   2600, WS2811BladePtr<144, WS2811_ACTUALLY_800kHz | WS2811_GRB>(), CONFIGARRAY(presets) },
  { 13000, SimpleBladePtr<CreeXPL, CreeXPL, CreeXPL, NoLED>(), CONFIGARRAY(white_presets) },
};

Sub-Blade

When using addressable led strip, single strip can be separated into a couple of sub blades with their own style configuration and behaviour. This is really usefull, when you want to use only one data pin, for all the addressable leds in your setup.

Clone this wiki locally