|
Post by generalfrozen on Mar 14, 2022 14:54:04 GMT -5
Hi for my latest saber configuration I need no buttons on the board. How can I make sure that battle mode is always on so I can control the saber? thank you for the support
|
|
|
Post by profezzorn on Mar 14, 2022 15:31:10 GMT -5
Afaik, the fett263 prop does not have a zero-button configuration. Not sure if any prop besides the basic "saber" prop has a zero-button configuration.
|
|
|
Post by fett263 on Mar 14, 2022 16:05:23 GMT -5
Hi for my latest saber configuration I need no buttons on the board. How can I make sure that battle mode is always on so I can control the saber? thank you for the support My prop doesn't cover 0 buttons so you'd have to customize the prop to be able to use. If it were me I'd have at least 1 button or you're not going to be able to do most features of the saber, even with Battle Mode there will be a lot that you will not be able to do.
|
|
|
Post by nosloppy on Mar 14, 2022 19:29:20 GMT -5
Hi for my latest saber configuration I need no buttons on the board. How can I make sure that battle mode is always on so I can control the saber? thank you for the support Here's a zero button you can try pastebin.com/Z9XkkUXy
|
|
|
Post by generalfrozen on Mar 16, 2022 13:46:58 GMT -5
I included one button aat last, but now the button only switches between styles and doesn't light up the saber, what am I doing wrong? is it code or something else? I'm running the version 6.5 of proffie os plus I can't remember how to activete the battle mode configuration in the code.
|
|
|
Post by generalfrozen on Mar 16, 2022 16:12:44 GMT -5
turns out I wasn't loading the os on the saber correctly, now I updated it to one button config. But now the button does nothing at all althought I ear the starting sound of the saber. what can I do now?
|
|
|
Post by profezzorn on Mar 16, 2022 16:33:06 GMT -5
Post your config file so we can see what you're doing. (And if you have modified ProffieOS or using custom prop files, we need to know that too.) Without that it's hard to help.
|
|
|
Post by generalfrozen on Mar 17, 2022 8:50:31 GMT -5
#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[] = { { "TeensySF", "tracks/venus.wav", StyleNormalPtr<CYAN, WHITE, 300, 800>(), "cyan"}, { "SmthJedi", "tracks/mars.wav", StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >(), "blue"}, { "SmthGrey", "tracks/mercury.wav", StyleFirePtr<RED, YELLOW>(), "fire"}, { "SmthFuzz", "tracks/uranus.wav", StyleNormalPtr<RED, WHITE, 300, 800>(), "red"}, { "RgueCmdr", "tracks/venus.wav", StyleFirePtr<BLUE, CYAN>(), "blue fire"}, { "TthCrstl", "tracks/mars.wav", StylePtr<InOutHelper<EASYBLADE(OnSpark<GREEN>, WHITE), 300, 800> >(), "green"}, { "TeensySF", "tracks/mercury.wav", StyleNormalPtr<WHITE, RED, 300, 800, RED>(), "white"}, { "SmthJedi", "tracks/uranus.wav", StyleNormalPtr<AudioFlicker<YELLOW, WHITE>, BLUE, 300, 800>(), "yellow"}, { "SmthGrey", "tracks/venus.wav", StylePtr<InOutSparkTip<EASYBLADE(MAGENTA, WHITE), 300, 800> >(), "magenta"}, { "SmthFuzz", "tracks/mars.wav", StyleNormalPtr<Gradient<RED, BLUE>, Gradient<CYAN, YELLOW>, 300, 800>(), "gradient"}, { "RgueCmdr", "tracks/mercury.wav", StyleRainbowPtr<300, 800>(), "rainbow"}, { "TthCrstl", "tracks/uranus.wav", StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(), "strobe"}, { "TeensySF", "tracks/venus.wav", &style_pov, "POV"}, { "SmthJedi", "tracks/mars.wav", &style_charging, "Battery\nLevel"} }; BladeConfig blades[] = { { 0, WS281XBladePtr<144, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(), CONFIGARRAY(presets) }, }; #endif
#ifdef CONFIG_BUTTONS Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); #endif
that's the config file, it should be the standard one button config
|
|
|
Post by generalfrozen on Mar 17, 2022 12:20:46 GMT -5
no custom files and I left proffie os untouched
|
|
|
Post by profezzorn on Mar 17, 2022 12:51:10 GMT -5
The config file looks fine. So do you see anything in the serial monitor when you press the button? Did the saber light up before?
|
|
|
Post by generalfrozen on Mar 17, 2022 16:02:41 GMT -5
yes at the beginning, at the time of my first build last year, the saber worked fine with two buttons, now I have built a one button version and it gives me this problem. maybe I'll try to go back to the previous version of proffie os that worked on the saber, it was the 5.9
|
|
|
Post by generalfrozen on Mar 17, 2022 16:13:39 GMT -5
could it be a problem that the blade is not wired up yet, the serial monitor detects no blades:
Sdcard found.. blade= 0 WS2811 Blade with 144 leds. Failed to open: presets.ini Failed to open: presets.tmp Style RAM = 144 Scanning sound font: TeensySF done Activating polyphonic font. Activating SmoothSwing V2 Accent Swings NOT Detected: unit = Welcome to ProffieOS v6.5. Type 'help' for more info. Battery voltage: 1.10 Battery voltage: 1.11 Battery voltage: 1.11 Battery voltage: 1.12
|
|
|
Post by nosloppy on Mar 17, 2022 22:13:27 GMT -5
blade zero is the first blade. Counts start at zero.
|
|
|
Post by profezzorn on Mar 18, 2022 1:05:14 GMT -5
could it be a problem that the blade is not wired up yet, the serial monitor detects no blades: Sdcard found.. blade= 0 This printout is a bit confusing, it doesn't mean that there are zero blades. What it means it that it picked the first entry in the blades array. (which is zero-indexed) Note that "the first entry" might be the only entry, and have several blades in it.
|
|
|
Post by generalfrozen on Mar 18, 2022 12:23:41 GMT -5
I found out that the button is wired as button 2, at the top right corner of the board as shown in the proffie 2.2 page. Could it be the problem of the blade not lighting up? thank you again by the way
|
|
|
Post by profezzorn on Mar 18, 2022 12:34:43 GMT -5
I found out that the button is wired as button 2, at the top right corner of the board as shown in the proffie 2.2 page. Could it be the problem of the blade not lighting up? thank you again by the way Yes. It's easy to change in the config file though, just change powerButtonPin to auxButtonPin
|
|
|
Post by generalfrozen on Mar 18, 2022 13:00:32 GMT -5
what part of the config should I change exactly?
|
|
|
Post by nosloppy on Mar 18, 2022 22:32:21 GMT -5
what part of the config should I change exactly? That is exactly what to change. In the lines that are: Button PowerButton(BUTTON_POWER, powerButtonPin, "pow"); Button AuxButton(BUTTON_AUX, auxPin, "aux");
|
|
|
Post by generalfrozen on Mar 19, 2022 3:40:52 GMT -5
#ifdef CONFIG_BUTTONS Button AuxButton(BUTTON_AUX, auxPin, "aux"); #endif
with this lines the button still only goes through the styles and doesn't activate the saber
|
|
|
Post by generalfrozen on Mar 19, 2022 6:10:05 GMT -5
#ifdef CONFIG_BUTTONS Button AuxButton(BUTTON_POWER, auxPin, "pow"); #endif
this is the line that makes it work thank you all again!
|
|
|
Post by generalfrozen on Mar 24, 2022 13:40:22 GMT -5
Am I still able to use battle mode with one button? what code do I need to add?
|
|
|
Post by fett263 on Mar 24, 2022 14:07:40 GMT -5
|
|
|
Post by generalfrozen on Mar 24, 2022 14:25:58 GMT -5
thank you so much again
|
|