// config.h for ProffieOS // Make sure this is included in your ProffieOS installation #ifndef CONFIG_H #define CONFIG_H #include "proffieboard_v3_config.h" #include "props/spinning_lightsaber.h" // Include our custom prop // Number of blades #define NUM_BLADES 6 // Using 6 LED pins (2 for LED strips, 3 for motors, 1 for servo) // Number of buttons #define NUM_BUTTONS 1 // Define button configuration #define BUTTON_POWER 0 // Define blade configurations for ProffieOS BladeConfig blades[] = { // LED1 strip as first blade - simple on/off (no PWM) { bladePin, CONFIGARRAY(simple_blade) }, // LED2 strip as second blade - simple on/off (no PWM) { blade2Pin, CONFIGARRAY(simple_blade) }, // LED3-5 for motors (using PWM capability of blade pins) { blade3Pin, CONFIGARRAY(simple_pwm_blade) }, { blade4Pin, CONFIGARRAY(simple_pwm_blade) }, { blade5Pin, CONFIGARRAY(simple_pwm_blade) }, // LED6 for servo { blade6Pin, CONFIGARRAY(simple_pwm_blade) }, }; // Define preset configurations Preset presets[] = { // Use our custom SpinningLightsaberProp for all presets { "SpinActivated", "tracks/track1.wav", &style_charging, "Spinning Activation Mode"}, }; // Use our custom prop #define PROP_CLASS SpinningLightsaberProp #define PROP_TYPE ProffieOSPropHandle // ProffieOS will use this configuration to initialize everything PROP_TYPE prop; #define MOTION_TIMEOUT 60 * 15 * 1000 // 15 minutes before motion timeout #define IDLE_OFF_TIME 60 * 10 * 1000 // 10 minutes idle before powering down #endif // CONFIG_H