~toykeeper/flashlight-firmware/trunk

188.22.168 by Selene ToyKeeper
added Emisar D1v2 models (old FET+7135, new linear+FET, new linear-only)
1
// Emisar D1v2 (7135+FET) config options for Anduril
188.33.14 by Selene ToyKeeper
switched the rest of FSM + Anduril to use SPDX license headers
2
// Copyright (C) 2020-2023 Selene ToyKeeper
3
// SPDX-License-Identifier: GPL-3.0-or-later
4
#pragma once
5
188.22.168 by Selene ToyKeeper
added Emisar D1v2 models (old FET+7135, new linear+FET, new linear-only)
6
// ATTINY: 1634
7
// same as Emisar D4v2, mostly
188.33.14 by Selene ToyKeeper
switched the rest of FSM + Anduril to use SPDX license headers
8
// (was only made for a short time, not many people have one)
188.22.168 by Selene ToyKeeper
added Emisar D1v2 models (old FET+7135, new linear+FET, new linear-only)
9
#include "cfg-emisar-d4v2.h"
10
#undef MODEL_NUMBER
11
#define MODEL_NUMBER "0123"
12
188.22.169 by Selene ToyKeeper
allow supporting single-color and RGB side button in the same build
13
// some models use a simple button LED, others use RGB...
14
// ... so include support for both
15
#define USE_BUTTON_LED
188.22.168 by Selene ToyKeeper
added Emisar D1v2 models (old FET+7135, new linear+FET, new linear-only)
16
// the aux LEDs are in the button, so use them while main LEDs are on
17
// (early short run had no button LEDs at all, later run uses linear+FET instead,
18
//  so it's unlikely that anyone needs this, but it doesn't hurt anything)
188.22.169 by Selene ToyKeeper
allow supporting single-color and RGB side button in the same build
19
#define USE_AUX_RGB_LEDS
188.33.135 by Selene ToyKeeper
fixed emisar-d1v2 builds (only needed a simple one-liner)
20
#define USE_AUX_RGB_LEDS_WHILE_ON  25
188.22.168 by Selene ToyKeeper
added Emisar D1v2 models (old FET+7135, new linear+FET, new linear-only)
21
#define USE_INDICATOR_LED_WHILE_RAMPING
22
23
// safe limit ~50% power
24
#undef SIMPLE_UI_CEIL
25
#define SIMPLE_UI_CEIL 120
26
27
// stop panicking at ~75% power or ~1000 lm (D1 has a decent power-to-thermal-mass ratio)
28
#ifdef THERM_FASTER_LEVEL
29
#undef THERM_FASTER_LEVEL
30
#endif
31
#define THERM_FASTER_LEVEL (RAMP_SIZE*9/10)  // throttle back faster when high
188.22.169 by Selene ToyKeeper
allow supporting single-color and RGB side button in the same build
32