summary refs log tree commit diff
path: root/users/xtonhasvim/fancylighting.c
diff options
context:
space:
mode:
authorChriston DeWan <cmdpix@mac.com>2018-08-31 11:28:14 -0400
committerDrashna Jaelre <drashna@live.com>2018-08-31 08:28:14 -0700
commit78ef62764bfba2b7cb1fb34e477953c16c7a926d (patch)
treef80ca9cdd3f022ba81471d6b602bdcf14c232f81 /users/xtonhasvim/fancylighting.c
parent4e45119796049f1c2f9e0c99a0ad6f0f932691b5 (diff)
Keymap: I got my intern a KBParadise V60 Type R... (#3813)
* new mode for v60

xtonhasvim. still working on it:

- need to get indicator lights going
- and fun layer properly fleshed out.

* status lighting, proper fun layer

copied fun layout from keycaps to maximize accessibility

* enable power return

* support brightness adjustment for indicators

* refined brightness setting.

is saved in eeprom now

* readme. and fixed tilde

* more modifiers fall through fun layer

* i mean, this kinda works..

* much more reliable way of restoring lights

* responded to feedback
Diffstat (limited to 'users/xtonhasvim/fancylighting.c')
-rw-r--r--users/xtonhasvim/fancylighting.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/users/xtonhasvim/fancylighting.c b/users/xtonhasvim/fancylighting.c
index f4af5ec55d..dc13df03f7 100644
--- a/users/xtonhasvim/fancylighting.c
+++ b/users/xtonhasvim/fancylighting.c
@@ -34,9 +34,14 @@ void matrix_scan_keymap(void) {
 #define FADE_BACK_TIME 500
 #define BREATH_FIRE_TIME 1000
 #define ANIMATION_STEP_INTERVAL 20
+
+#if RGBLED_NUM >= 2
 #define POWER_KEY_OFFSET (RGBLED_NUM / 2)
 #define SPACE_OFFSET_MAX (RGBLED_NUM / 2)
-
+#else
+#define POWER_KEY_OFFSET 1
+#define SPACE_OFFSET_MAX 1
+#endif
 
 uint16_t effect_start_timer = 0;
 uint8_t user_rgb_mode = 0;