~gabe/flashlight-firmware/anduril2

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/anduril/cfg-sofirn-sp36.h

merged recent fsm branch updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Sofirn SP36 (small Q8) config options for Anduril
 
2
 
 
3
// voltage readings were a little high with the Q8 value
 
4
#define VOLTAGE_FUDGE_FACTOR 5  // add 0.25V, not 0.35V
 
5
 
 
6
#define FSM_BLF_Q8_DRIVER
 
7
#include "cfg-blf-q8.h"
 
8
 
 
9
// the high button LED mode on this light uses too much power
 
10
// off mode: low (1)
 
11
// lockout: blinking (3)
 
12
#define INDICATOR_LED_DEFAULT_MODE ((3<<2) + 1)
 
13
 
 
14
// don't blink during the ramp; the button LED brightness is sufficient
 
15
// to indicate which power channel(s) are being used
 
16
#ifdef BLINK_AT_CHANNEL_BOUNDARIES
 
17
#undef BLINK_AT_CHANNEL_BOUNDARIES
 
18
#endif
 
19
#ifdef BLINK_AT_RAMP_CEILING
 
20
#undef BLINK_AT_RAMP_CEILING
 
21
#endif
 
22
 
 
23
// stop panicking at ~60% power or ~3000 lm
 
24
#ifdef THERM_FASTER_LEVEL
 
25
#undef THERM_FASTER_LEVEL
 
26
#endif
 
27
#define THERM_FASTER_LEVEL 130
 
28
 
 
29
// be extra-careful at high levels
 
30
// (or not... this host seems to heat up pretty slowly)
 
31
//#ifndef THERM_HARD_TURBO_DROP
 
32
//#define THERM_HARD_TURBO_DROP
 
33
//#endif
 
34