I’m having strange behavior with my config. I have a hilt with a V3.9 proffieboard wired for blade-detect and blade-id, with an OLED display and bluetooth module. I’m driving the bluetooth using the 3.3V pin (not SD power) and LED1. I’m using SimpleBladePtr to power the bluetooth, with StylePtr to turn it on.
The odd part: the bluetooth module works ONLY when it is the last blade defined in the blade array.
I’ve had odd behavior with SimpleBladePtr before when using it as a dummy blade to fill the blade array, but I found a work around so I stopped testing it–but now that the issue has popped up again, I thought I’d ask.
Here is my config:
#ifdef CONFIG_TOP#include “proffieboard_v3_config.h”#define NUM_BLADES 8#d - Pastebin.com
This is the working config-- but here is the blade definition that didn’t work:
> { NO_BLADE,
> WS281XBladePtr<16, blade2Pin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3, bladePowerPin4> >(), //emitter independent
> WS281XBladePtr<7, blade3Pin, Color8::GRB, PowerPINS<bladePowerPin5, bladePowerPin1> >(), //SIDE LIGHTS
> WS281XBladePtr<2, blade4Pin, Color8::GRB, PowerPINS<bladePowerPin6> >(), //POMMEL ring
> SimpleBladePtr<CreeXPE2WhiteTemplate<550>, NoLED, NoLED, NoLED, bladePowerPin1, -1, -1, -1>(), //bluetooth module
> SubBlade(0, 143, WS281XBladePtr<147, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3, bladePowerPin4> >()), //main blade, irrelevant with NO BLADE
> SubBlade(144, 144, NULL), //null blade
> SubBlade(145, 145, NULL),
> SubBlade(146, 146, NULL),
> CONFIGARRAY(no_blade_presets) },
The only difference is the order. Is there a problem I’m not seeing? Or does ProffieOS require that the SimpleBladePtr be the last blade type in the array?
Oh, one other oddity. when using the non-working config with the BT blade definition in the missle of the array, if I switched to the Power preset, where all the styles are &style_charging, it would start working, but not correctly/completely.
thanks,
JS