Hey there!
I’m just getting started with proffieboard, trying to make a simple Westar-35 prop, trigger only, no mode switch.
I’ve downloaded the proffieOS files, and I found a blaster_config.h
file that looked to be doing most of what I want.
For lighting, I have a 22LED neopixel ring, connected to LED2 and LED3.
I find the config stuff to be fairly opaque, is there a guide on config creation somewhere?
At any rate, the specific problem I’m having is that:
- The neo pixel ring isn’t lighting. With the simple config generated by fredrik.hubbe.net, the lights would turn on, but would stay on, as that config was designed for a saber.
- I think I have a soundfont for Bo-Katan, but I’m also not hearing anything when I pull the trigger.
Any help would be greatly appreciated.
Thanks!
See below for the code:
#ifdef CONFIG_TOP
#include "proffieboard_v2_config.h"
#define NUM_BLADES 2
#define NUM_BUTTONS 1
#define VOLUME 2000
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 1.0
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#define ENABLE_BLASTER_AUTO
#define BLASTER_SHOTS_UNTIL_EMPTY 30
#define BLASTER_JAM_PERCENTAGE 3
#endif
#ifdef CONFIG_PROP
#include "../props/blaster.h"
#endif
#ifdef CONFIG_PRESETS
Preset presets[] = {
// Default basic blast color with red audio flicker on blast
{ "BoKatan", "tracks/boot1.wav",
StylePtr<Lockup<BlastFadeout<BlastFadeout<Black,AudioFlicker<Black,Red>,250,EFFECT_FIRE>,AudioFlicker<Black,Blue>,1500,EFFECT_STUN>,AudioFlicker<Black,Red>>>(),
StylePtr<Lockup<BlastFadeout<BlastFadeout<Black,AudioFlicker<Black,Red>,250,EFFECT_FIRE>,AudioFlicker<Black,Blue>,1500,EFFECT_STUN>,AudioFlicker<Black,Red>>>() }
};
BladeConfig blades[] = {
{ 0, WS2811BladePtr<125, WS2811_ACTUALLY_800kHz | WS2811_GRB>(),
WS2811BladePtr<14, WS2811_ACTUALLY_800kHz | WS2811_GRB, 7, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
CONFIGARRAY(presets) },
};
#endif
#ifdef CONFIG_BUTTONS
Button FireButton(BUTTON_POWER, powerButtonPin, "fire");
#endif
This is the config that lights up my neopixels as if they were a saber:
#ifdef CONFIG_TOP
#include "proffieboard_v2_config.h"
#define NUM_BLADES 1
#define NUM_BUTTONS 1
#define VOLUME 1000
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 1.0
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#endif
#ifdef CONFIG_PRESETS
Preset presets[] = {
{ "BoKatan", "tracks/boot1.wav",
StyleNormalPtr<RED, WHITE, 300, 800>(), "cyan"}
};
BladeConfig blades[] = {
{ 0, WS281XBladePtr<22, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) },
};
#endif
#ifdef CONFIG_BUTTONS
Button FireButton(BUTTON_POWER, powerButtonPin, "fire");
#endif