aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hwdef-BLF_GT_Mini.h4
-rw-r--r--spaghetti-monster/anduril/anduril.c4
-rwxr-xr-xspaghetti-monster/anduril/build-all.sh1
-rw-r--r--spaghetti-monster/anduril/cfg-blf-gt-mini.h11
-rw-r--r--tk-attiny.h3
5 files changed, 23 insertions, 0 deletions
diff --git a/hwdef-BLF_GT_Mini.h b/hwdef-BLF_GT_Mini.h
new file mode 100644
index 0000000..504c561
--- /dev/null
+++ b/hwdef-BLF_GT_Mini.h
@@ -0,0 +1,4 @@
+/* BLF/Lumintop GT Mini driver layout
+ */
+// exactly the same as a D1S, but with a lighted button
+#include "hwdef-Emisar_D1S.h"
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c
index bf16da5..d4e541d 100644
--- a/spaghetti-monster/anduril/anduril.c
+++ b/spaghetti-monster/anduril/anduril.c
@@ -26,6 +26,7 @@
//#define FSM_BLF_Q8_DRIVER
//#define FSM_FW3A_DRIVER
//#define FSM_BLF_GT_DRIVER
+//#define FSM_BLF_GT_MINI_DRIVER
#define USE_LVP // FIXME: won't build when this option is turned off
@@ -68,6 +69,9 @@
#if defined(FSM_BLF_GT_DRIVER)
#include "cfg-blf-gt.h"
+#elif defined(FSM_BLF_GT_MINI_DRIVER)
+#include "cfg-blf-gt-mini.h"
+
#elif defined(FSM_BLF_Q8_DRIVER)
#include "cfg-blf-q8.h"
diff --git a/spaghetti-monster/anduril/build-all.sh b/spaghetti-monster/anduril/build-all.sh
index d0c0d5c..85e3cc9 100755
--- a/spaghetti-monster/anduril/build-all.sh
+++ b/spaghetti-monster/anduril/build-all.sh
@@ -2,6 +2,7 @@
for TARGET in \
BLF_GT \
+ BLF_GT_MINI \
BLF_Q8 \
EMISAR_D1 \
EMISAR_D1S \
diff --git a/spaghetti-monster/anduril/cfg-blf-gt-mini.h b/spaghetti-monster/anduril/cfg-blf-gt-mini.h
new file mode 100644
index 0000000..885024a
--- /dev/null
+++ b/spaghetti-monster/anduril/cfg-blf-gt-mini.h
@@ -0,0 +1,11 @@
+// BLF/Lumintop GT Mini config options for Anduril
+// Same as an Emisar D1S, except it has a lighted button
+#include "cfg-emisar-d1s.h"
+
+// the button lights up
+#define USE_INDICATOR_LED
+// the button is visible while main LEDs are on
+#define USE_INDICATOR_LED_WHILE_RAMPING
+// enable blinking indicator LED while off
+#define TICK_DURING_STANDBY
+
diff --git a/tk-attiny.h b/tk-attiny.h
index 1b7722c..f208e9b 100644
--- a/tk-attiny.h
+++ b/tk-attiny.h
@@ -78,6 +78,9 @@
#elif defined(FSM_BLF_GT_DRIVER)
#include "hwdef-BLF_GT.h"
+#elif defined(FSM_BLF_GT_MINI_DRIVER)
+#include "hwdef-BLF_GT_Mini.h"
+
#elif defined(FSM_BLF_Q8_DRIVER)
#include "hwdef-BLF_Q8.h"