From 89ea4e6f8ac15d3cb12d5562df9681c9d650b5f8 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 22 Sep 2024 16:46:40 -0600 Subject: cherry-picked hank-lume-x1 code from https://github.com/loneoceans/anduril/commit/d83ebb75dab8c462b7efa841bccc00a136ff15a2 The [PR](https://github.com/ToyKeeper/anduril/pull/37) has a lot of other stuff in it, so I'm just picking out the parts needed for this particular light, and leaving the rest for later. Will need further edits before merging into trunk. --- hw/hank/lume-x1/anduril.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 hw/hank/lume-x1/anduril.h (limited to 'hw/hank/lume-x1/anduril.h') diff --git a/hw/hank/lume-x1/anduril.h b/hw/hank/lume-x1/anduril.h new file mode 100644 index 0000000..509b442 --- /dev/null +++ b/hw/hank/lume-x1/anduril.h @@ -0,0 +1,33 @@ +// Hank Emisar/Noctigon Lume-X1 config options for Anduril +// Copyright (C) 2018-2024 Selene ToyKeeper, Loneoceans +// SPDX-License-Identifier: GPL-3.0-or-later + +#pragma once + +// For flashlights using the Loneoceans Lume-X1-40W boost driver (AVR32DD20) +// - Same firmware for 6V, 9V, or 12V configs + +// same as loneoceans lume-x1-avr32dd20 but with Hank-specific defaults +#include "loneoceans/lume-x1-avr32dd20/anduril.h" +#include "hank/anduril.h" + +#undef DEFAULT_THERM_CEIL +#define DEFAULT_THERM_CEIL 50 + +// disable beacontower mode +#ifdef USE_BEACONTOWER_MODE +#undef USE_BEACONTOWER_MODE +#endif + +// set smooth ramping by default +#ifdef RAMP_STYLE +#undef RAMP_STYLE +#endif + +// reset to anduril default number of steps +#ifdef RAMP_DISCRETE_STEPS +#undef RAMP_DISCRETE_STEPS +#endif +#ifdef SIMPLE_UI_STEPS +#undef SIMPLE_UI_STEPS +#endif -- cgit v1.2.3