So i am trying to use the config posted by megtooth sith to make a proffie blaster.
I am struggling to get the config to verify for a proffieboard v2
Config below:
#ifdef CONFIG_TOP
#include “proffieboard_v2_config.h”
#define NUM_BLADES 2
#define NUM_BUTTONS 2
#define VOLUME 2000
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 1.0
#define ENABLE_AUDIO
#define ENABLE_WS2811
#define ENABLE_SD
#define DELAYED_OFF
#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
{ “blstr1”, “tracks/fates.wav”,
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
},
{“bank1”,“tracks/tracks/credits.wav”,
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
},
{“bank2”,“tracks/tracks/swars.wav”,
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
},
{“bank3”,“tracks/tracks/fates.wav”,
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
},
{“bank4”,“tracks/tracks/march.wav”,
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
},
{“bank5”,“tracks/tracks/credits.wav”,
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
},
{“bank6”,“tracks/tracks/swars.wav”,
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
StylePtr<BlastFadeout<Black,AudioFlicker<Black,Red>,375>>(),
},
};
template
struct CreeXPE2DRedTemplate {
static constexpr float MaxAmps = 1.0;
static constexpr float MaxVolts = 2.5;
static constexpr float P2Amps = 0.35;
static constexpr float P2Volts = 2.1;
static constexpr float R = milliohms / 1000.0;
static const int Red = 255;
static const int Green = 0;
static const int Blue = 0;
};
template
struct CreeXPE2DRed2Template {
static constexpr float MaxAmps = 1.0;
static constexpr float MaxVolts = 2.5;
static constexpr float P2Amps = 0.35;
static constexpr float P2Volts = 2.1;
static constexpr float R = milliohms / 1000.0;
static const int Red = 0;
static const int Green = 255;
static const int Blue = 0;
};
template
struct CreeXPE2RBlueTemplate {
static constexpr float MaxAmps = 1.0;
static constexpr float MaxVolts = 3.4;
static constexpr float P2Amps = 0.35;
static constexpr float P2Volts = 3.1;
static constexpr float R = milliohms / 1000.0;
static const int Red = 0;
static const int Green = 0;
static const int Blue = 255;
};
BladeConfig blades[] = {
{ 0, SimpleBladePtr<CreeXPE2DRedTemplate<1200>, CreeXPE2DRed2Template<1200>,CreeXPE2BlueTemplate<300>, NoLED>(),
WS2811BladePtr<2, WS2811_800kHz | WS2811_GRB, blade2Pin, PowerPINS>(),
CONFIGARRAY(presets) },
};
#endif
#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, “pow”);
Button AuxButton(BUTTON_AUX, auxPin, “aux”);
#endif
I think maybe im on the wrong track because the error is talking bout teensyduino. I dont know?
error below:
In file included from E:\Lightsaber\ProffieOS\ProffieOS.ino:43:0:
E:\Lightsaber\ProffieOS\config\megtoothblaster.h:2:10: error: #include expects “FILENAME” or
#include �proffieboard_v2_config.h�
^
In file included from E:\Lightsaber\ProffieOS\blades\ws2811_blade.h:37:0,
from E:\Lightsaber\ProffieOS\ProffieOS.ino:552:
E:\Lightsaber\ProffieOS\blades\monopodws.h:41:2: error: #error “Teensyduino version 1.21 or later is required to compile this library.”
#error “Teensyduino version 1.21 or later is required to compile this library.”
^
In file included from E:\Lightsaber\ProffieOS\ProffieOS.ino:586:0:
E:\Lightsaber\ProffieOS\config\megtoothblaster.h:19:10: error: #include expects “FILENAME” or
#include ��/props/blaster.h�
^
exit status 1
Error compiling for board Proffieboard V2.
Also I am using the latest OS. I dont know if that makesa difference.