aboutsummaryrefslogtreecommitdiff
path: root/hw/hank/noctigon-dm11/sbt90
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-03 09:07:37 -0600
committerSelene ToyKeeper2023-11-03 09:07:37 -0600
commitcf0ed5c4bd07e191088977722010e9eec94a7c05 (patch)
tree4c2e4156a74cf3a6f1bad1f1d4b5087bb74a9f32 /hw/hank/noctigon-dm11/sbt90
parentfixed compile scripts and added a "./make" wrapper for convenience (diff)
downloadanduril-cf0ed5c4bd07e191088977722010e9eec94a7c05.tar.gz
anduril-cf0ed5c4bd07e191088977722010e9eec94a7c05.tar.bz2
anduril-cf0ed5c4bd07e191088977722010e9eec94a7c05.zip
moved variant builds under their parent, like "d4-219" -> "d4/219"
Diffstat (limited to 'hw/hank/noctigon-dm11/sbt90')
-rw-r--r--hw/hank/noctigon-dm11/sbt90/anduril.h46
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..8c0d1de
--- /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/anduril.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
+