From 8d022eba3b741bd2a1253df09c01d75e340b492a Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Fri, 3 Nov 2023 06:39:50 -0600 Subject: renamed cfg.h -> anduril.h so each UI can have its own cfg (part 1) (still need to update file contents afterward, but doing it in a separate commit so git can detect renames easier) --- hw/sofirn/sp36-t1616/anduril.h | 37 +++++++++++++++++++++++++++++++++++++ hw/sofirn/sp36-t1616/cfg.h | 37 ------------------------------------- 2 files changed, 37 insertions(+), 37 deletions(-) create mode 100644 hw/sofirn/sp36-t1616/anduril.h delete mode 100644 hw/sofirn/sp36-t1616/cfg.h (limited to 'hw/sofirn/sp36-t1616') diff --git a/hw/sofirn/sp36-t1616/anduril.h b/hw/sofirn/sp36-t1616/anduril.h new file mode 100644 index 0000000..d3e5459 --- /dev/null +++ b/hw/sofirn/sp36-t1616/anduril.h @@ -0,0 +1,37 @@ +// Sofirn SP36 (small Q8) config options for Anduril using the Attiny1616 +// Copyright (C) 2021-2023 (FIXME) +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once + +// same as the BLF Q8, mostly +#include "sofirn/blf-q8-t1616/cfg.h" +#undef MODEL_NUMBER +#define MODEL_NUMBER "0614" +// ATTINY: 1616 + +// voltage readings were a little high with the Q8 value +#undef VOLTAGE_FUDGE_FACTOR +#define VOLTAGE_FUDGE_FACTOR 5 // add 0.25V, not 0.35V + +// the high button LED mode on this light uses too much power +// off mode: low (1) +// lockout: blinking (3) +#ifdef INDICATOR_LED_DEFAULT_MODE +#undef INDICATOR_LED_DEFAULT_MODE +#define INDICATOR_LED_DEFAULT_MODE ((3<<2) + 1) +#endif + +// don't blink during the ramp; the button LED brightness is sufficient +// to indicate which power channel(s) are being used +#ifdef BLINK_AT_RAMP_MIDDLE +#undef BLINK_AT_RAMP_MIDDLE +#endif +#ifdef BLINK_AT_RAMP_CEIL +#undef BLINK_AT_RAMP_CEIL +#endif + +// stop panicking at ~60% power or ~3000 lm +#ifdef THERM_FASTER_LEVEL +#undef THERM_FASTER_LEVEL +#endif +#define THERM_FASTER_LEVEL 130 diff --git a/hw/sofirn/sp36-t1616/cfg.h b/hw/sofirn/sp36-t1616/cfg.h deleted file mode 100644 index d3e5459..0000000 --- a/hw/sofirn/sp36-t1616/cfg.h +++ /dev/null @@ -1,37 +0,0 @@ -// Sofirn SP36 (small Q8) config options for Anduril using the Attiny1616 -// Copyright (C) 2021-2023 (FIXME) -// SPDX-License-Identifier: GPL-3.0-or-later -#pragma once - -// same as the BLF Q8, mostly -#include "sofirn/blf-q8-t1616/cfg.h" -#undef MODEL_NUMBER -#define MODEL_NUMBER "0614" -// ATTINY: 1616 - -// voltage readings were a little high with the Q8 value -#undef VOLTAGE_FUDGE_FACTOR -#define VOLTAGE_FUDGE_FACTOR 5 // add 0.25V, not 0.35V - -// the high button LED mode on this light uses too much power -// off mode: low (1) -// lockout: blinking (3) -#ifdef INDICATOR_LED_DEFAULT_MODE -#undef INDICATOR_LED_DEFAULT_MODE -#define INDICATOR_LED_DEFAULT_MODE ((3<<2) + 1) -#endif - -// don't blink during the ramp; the button LED brightness is sufficient -// to indicate which power channel(s) are being used -#ifdef BLINK_AT_RAMP_MIDDLE -#undef BLINK_AT_RAMP_MIDDLE -#endif -#ifdef BLINK_AT_RAMP_CEIL -#undef BLINK_AT_RAMP_CEIL -#endif - -// stop panicking at ~60% power or ~3000 lm -#ifdef THERM_FASTER_LEVEL -#undef THERM_FASTER_LEVEL -#endif -#define THERM_FASTER_LEVEL 130 -- cgit v1.2.3