summaryrefslogtreecommitdiff
path: root/keyboards/jian/rev1/post_config.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-06-18 14:39:07 +1000
committerGitHub <noreply@github.com>2023-06-18 14:39:07 +1000
commitb1783db4eacacaf8181cfbce13146db1941486ba (patch)
treed464d835a882fa7b2c205eb0b2d73f7ddf0b7145 /keyboards/jian/rev1/post_config.h
parent7178645be79510eb623098bccbf1724ff9970edc (diff)
Move `RGBLED_NUM` to data driven (#21278)
Diffstat (limited to 'keyboards/jian/rev1/post_config.h')
-rw-r--r--keyboards/jian/rev1/post_config.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/keyboards/jian/rev1/post_config.h b/keyboards/jian/rev1/post_config.h
new file mode 100644
index 0000000000..fade065e19
--- /dev/null
+++ b/keyboards/jian/rev1/post_config.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#ifndef IOS_DEVICE_ENABLE
+# if RGBLED_NUM <= 6
+# define RGBLIGHT_LIMIT_VAL 255
+# else
+# define RGBLIGHT_LIMIT_VAL 130
+# endif
+# define RGBLIGHT_VAL_STEP 8
+#else
+# if RGBLED_NUM <= 6
+# define RGBLIGHT_LIMIT_VAL 90
+# else
+# define RGBLIGHT_LIMIT_VAL 45
+# endif
+# define RGBLIGHT_VAL_STEP 4
+#endif