~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/anduril/config-default.h

  • Committer: Selene ToyKeeper
  • Date: 2023-10-03 22:24:09 UTC
  • mto: (188.22.175 anduril2)
  • mto: This revision was merged to the branch mainline in revision 250.
  • Revision ID: bzr@toykeeper.net-20231003222409-gipzaxu3voru92d3
raised default temperature limit to 50C on attiny1616 and newer MCUs,
slightly simplified gradual_tick()

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
// overheat protection
22
22
#define USE_THERMAL_REGULATION
 
23
#if (ATTINY==85) || (ATTINY==1634)
 
24
// sloppy temperature sensor needs bigger error margin
23
25
#define DEFAULT_THERM_CEIL 45  // try not to get hotter than this (in C)
 
26
#else
 
27
// more accurate temperature sensor can regulate higher safely
 
28
#define DEFAULT_THERM_CEIL 50  // try not to get hotter than this (in C)
 
29
#endif
24
30
// Comment out to disable automatic calibration on factory reset
25
31
//   - If so, be sure to set THERM_CAL_OFFSET to the correct calibration offset
26
32
//   - Calibration can still be overridden in temperature check mode