~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

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

  • Committer: Selene Scriven
  • Date: 2020-07-06 20:24:28 UTC
  • mfrom: (188.1.294 fsm)
  • Revision ID: bzr@toykeeper.net-20200706202428-7pyen2ow9q2rtd9p
merged nearly a year of updates from the fsm branch, including the new product map

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Emisar D1v2 config options for Anduril (D1 w/ D4v2 driver)
 
2
// ATTINY: 1634
 
3
// same as Emisar D4v2, mostly
 
4
#include "cfg-emisar-d4v2.h"
 
5
 
 
6
// there are no aux LEDs on a D1
 
7
#undef USE_AUX_RGB_LEDS
 
8
// ... and no button LED
 
9
#undef USE_BUTTON_LED
 
10
// no aux LEDs means no need for sleep ticks
 
11
#undef TICK_DURING_STANDBY
 
12
 
 
13
// stop panicking at ~75% power or ~1000 lm (D1 has a decent power-to-thermal-mass ratio)
 
14
#ifdef THERM_FASTER_LEVEL
 
15
#undef THERM_FASTER_LEVEL
 
16
#endif
 
17
#define THERM_FASTER_LEVEL (RAMP_SIZE*9/10)  // throttle back faster when high