#define VOLTAGE_MON // Comment out to disable - ramp down and eventual shutoff when battery is low
//#define VOLTAGE_MON // Comment out to disable - ramp down and eventual shutoff when battery is low
#define MODES 0,3,14,39,125,255 // Must be low to high, and must start with 0
#define CHARGER_MON // Comment out to disable - is charging cable connected
#define ALT_MODES 0,3,14,39,125,255 // Must be low to high, and must start with 0, the defines the level for the secondary output. Comment out if no secondary output
#define MODES 0,3,32,125,255 // Must be low to high, and must start with 0
#define MODE_PWM 0,PHASE,FAST,FAST,FAST,PHASE // Define one per mode above. 0 tells the light to go to sleep
//#define ALT_MODES 0,3,32,125,255 // Must be low to high, and must start with 0, the defines the level for the secondary output. Comment out if no secondary output
#define TURBO // Comment out to disable - full output with a step down after n number of seconds
#define MODE_PWM 0,PHASE,FAST,FAST,FAST // Define one per mode above. 0 tells the light to go to sleep
//#define TURBO // Comment out to disable - full output with a step down after n number of seconds
// If turbo is enabled, it will be where 255 is listed in the modes above
// If turbo is enabled, it will be where 255 is listed in the modes above
#define TURBO_TIMEOUT 5625 // How many WTD ticks before before dropping down (.016 sec each)
//#define TURBO_TIMEOUT 5625 // How many WTD ticks before before dropping down (.016 sec each)
// 90 = 5625
// 90 = 5625
// 120 = 7500
// 120 = 7500
#define ADC_LOW 130 // When do we start ramping
#define BATT_LOW 145 // When do we start ramping
#define ADC_CRIT 120 // When do we shut the light off
#define BATT_CRIT 135 // When do we shut the light off
#define ADC_DELAY 188 // Delay in ticks between low-bat rampdowns (188 ~= 3s)
#define CHARGER_HIGH 120 // When we should lower the output
#define CHARGER_LOW 100 // When we should raise the output
#define BATT_ADC_DELAY 188 // Delay in ticks between low-bat rampdowns (188 ~= 3s)
#define CHARGER_ADC_DELAY 15 // Delay in ticks before checking for charging cable (188 ~= 3s)
//#define MOM_ENTER_DUR 128 // .16ms each. Comment out to disable this feature
//#define MOM_ENTER_DUR 128 // 16ms each. Comment out to disable this feature
#define MOM_EXIT_DUR 128 // .16ms each
//#define MOM_EXIT_DUR 128 // 16ms each
#define MOM_MODE_IDX 4 // The index of the mode to use in MODES above if momementary feature enabled, starting at index of 0
//#define MOM_MODE_IDX 4 // The index of the mode to use in MODES above, starting at index of 0