summaryrefslogtreecommitdiff
path: root/keyboards/idobao/id67/post_rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/idobao/id67/post_rules.mk')
-rw-r--r--keyboards/idobao/id67/post_rules.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/keyboards/idobao/id67/post_rules.mk b/keyboards/idobao/id67/post_rules.mk
new file mode 100644
index 0000000000..5eecdef4ce
--- /dev/null
+++ b/keyboards/idobao/id67/post_rules.mk
@@ -0,0 +1,14 @@
+# Some ID67 variants (v1 base build & "Bestype") have a solid back plate,
+# this enables switching off thoes LEDs
+# Usage: `make idobao/id67:default UNDERGLOW=off`
+
+ifeq ($(findstring off,$(UNDERGLOW)), off)
+ $(info ** UNDERGLOW OFF)
+ OPT_DEFS += -DID67_DISABLE_UNDERGLOW
+else ifeq ($(findstring no,$(UNDERGLOW)), no)
+ $(info ** NO UNDERGLOW)
+ OPT_DEFS += -DID67_DISABLE_UNDERGLOW
+else ifeq ($(findstring 0,$(UNDERGLOW)), 0)
+ $(info ** Nil UNDERGLOW)
+ OPT_DEFS += -DID67_DISABLE_UNDERGLOW
+endif