EditMode and Advanced Features

Hi All,
I finally got the custom blade working. Super excited!!! Now want to get advanced features working. I tried enabling EditMode and Twist operations, but with no success. Try entering the edit mode by holding Power and Aux buttons while off, but it doesn’t enter the edit mode. The SD card is in there.

My config is below. I’m doing something wrong, but not sure what. Would appreciate some help here. Running v7.12.

Thanks!

#ifdef CONFIG_TOP
#include "proffieboard_v2_config.h"
#define NUM_BLADES 1
#define NUM_BUTTONS 2
#define VOLUME 200
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 1.0
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD


/* BEGIN DISPLAY */
#define ENABLE_SSD1306
/* END DISPLAY */

/* BEGIN BLUETOOTH */
#define ENABLE_SERIAL
#define BLE_PASSWORD "test"
#define BLE_NAME "My Saber"
#define BLE_SHORTNAME "Saber"
/* END BLUETOOTH */


/* BEGIN EDIT-MODE */
#define FETT263_EDIT_MODE_MENU
#define ENABLE_ALL_EDIT_OPTIONS
/* END EDIT-MODE */

#define FETT263_MULTI_PHASE
#define FETT263_TWIST_OFF
#define FETT263_TWIST_ON

#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");
Button AuxButton(BUTTON_AUX, auxPin, "aux");
#endif

You need the fett263 prop to use Edit Mode. See here for how to activate it:

You also need your font paths to include ;common, and a font pack in the common directory on your SD card.

2 Likes

More information on my prop and the required Set Up Instructions here:

2 Likes

@profezzorn, @Fett263, Thanks for the help.

The include did the trick, now the twist operation works.

I also downloaded the contents from https://fredrik.hubbe.net/lightsaber/sound/ProffieOS_Voicepack_English_B.zip and extracted them to both /common/ and /;common/, but I’m still getting “Error in font directory” error when trying to enter the Edit Mode. This directory has lots of files, including the “medit.wav”.

Could you please share the “Edit Mode setup and requirements” link? Thanks

The font path is a list of directory names, separated by ;.
So you want to put your font pack in /common/, and then each of your presets should have a font path like "TeensySF;common". This will make ProffieOS search both /TeensySF/ and /common/ for files, which is how it finds the voice pack files.

So, your first preset would look like this:

   { "TeensySF;common", "tracks/venus.wav",
    StyleNormalPtr<CYAN, WHITE, 300, 800>(), "cyan"},
1 Like

Got it, thanks! Unfortunately the board got fried on its own while charging, so the EditMode would have to wait… :frowning: