diff options
| author | Selene ToyKeeper | 2023-11-03 06:39:50 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-11-03 06:39:50 -0600 |
| commit | 8d022eba3b741bd2a1253df09c01d75e340b492a (patch) | |
| tree | 84eb8c728de7fcdf1843fd8b6cfbf89d9233d176 /hw/hank/noctigon-dm11-sbt90/anduril.h | |
| parent | got things to compile again, renamed #includes (diff) | |
| download | anduril-8d022eba3b741bd2a1253df09c01d75e340b492a.tar.gz anduril-8d022eba3b741bd2a1253df09c01d75e340b492a.tar.bz2 anduril-8d022eba3b741bd2a1253df09c01d75e340b492a.zip | |
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)
Diffstat (limited to 'hw/hank/noctigon-dm11-sbt90/anduril.h')
| -rw-r--r-- | hw/hank/noctigon-dm11-sbt90/anduril.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/hw/hank/noctigon-dm11-sbt90/anduril.h b/hw/hank/noctigon-dm11-sbt90/anduril.h new file mode 100644 index 0000000..802d839 --- /dev/null +++ b/hw/hank/noctigon-dm11-sbt90/anduril.h @@ -0,0 +1,46 @@ +// Noctigon DM11-SBT90.2 config options for Anduril +// Copyright (C) 2021-2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once + +#include "hank/noctigon-kr4/cfg.h" +#undef MODEL_NUMBER +#define MODEL_NUMBER "0274" +// ATTINY: 1634 + +// this light has three aux LED channels: R, G, B +#define USE_AUX_RGB_LEDS +// ... and a single LED in the button +#define USE_BUTTON_LED +// don't use aux LEDs while main LED is on +#ifdef USE_INDICATOR_LED_WHILE_RAMPING +#undef USE_INDICATOR_LED_WHILE_RAMPING +#endif + +// power channels: +// - linear: 5A? +// - FET: DD + +#undef DEFAULT_LEVEL +#define DEFAULT_LEVEL 70 + +#undef RAMP_SMOOTH_FLOOR +#define RAMP_SMOOTH_FLOOR 10 // low levels may be unreliable +// 10, 30, 50, [70], 90, 110, 130 +#undef RAMP_DISCRETE_FLOOR +#define RAMP_DISCRETE_FLOOR 10 + +// safe limit ~75% power +#undef SIMPLE_UI_CEIL +#define SIMPLE_UI_CEIL RAMP_DISCRETE_CEIL + +// stop panicking at ~70% power or ~600 lm +#undef THERM_FASTER_LEVEL +#define THERM_FASTER_LEVEL 130 + +#undef BLINK_BRIGHTNESS +#define BLINK_BRIGHTNESS 50 + +#undef CANDLE_AMPLITUDE +#define CANDLE_AMPLITUDE 30 + |
