~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/anduril/cfg-emisar-d4s.h

  • Committer: Selene Scriven
  • Date: 2019-08-11 21:16:23 UTC
  • mfrom: (188.1.250 fsm)
  • Revision ID: bzr@toykeeper.net-20190811211623-i2i2rcud9kbx3hdw
merged fsm to trunk...  lots of updates:
+ attiny1634 support
+ Emisar D4v2 support
+ Mateminco MF01S / MT18 support
+ Fireflies E01 and E07v2 support
+ RGB aux LED support
+ added factory reset function
+ added manual / automatic memory toggle
+ added 2-level brightness during lockout
+ added Fireflies UI
+ made momentary mode also support strobe-group modes
* thermal regulation rewritten, behaves mostly better now
* strobe modes auto-reverse their ramp now
* muggle mode fixes
* UI diagram and manual updated
* button timing adjusted, and compile-time options added for it
* general refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#undef MIN_THERM_STEPDOWN  // this should be lower, because 3x7135 instead of 1x7135
37
37
#endif
38
38
#define MIN_THERM_STEPDOWN 60  // lowest value it'll step down to
39
 
#define THERM_FASTER_LEVEL (RAMP_SIZE*9/10)  // throttle back faster when high
 
39
#define THERM_FASTER_LEVEL (RAMP_SIZE-20)  // don't throttle back faster when high
40
40
 
41
41
// no need to be extra-careful on this light
42
42
#ifdef THERM_HARD_TURBO_DROP
43
43
#undef THERM_HARD_TURBO_DROP
44
44
#endif
 
45
 
 
46
#define THERMAL_WARNING_SECONDS 3
 
47
#define THERMAL_UPDATE_SPEED 2
 
48
#define THERM_PREDICTION_STRENGTH 4