diff options
Diffstat (limited to 'users/xtonhasvim')
| -rw-r--r-- | users/xtonhasvim/fancylighting.c | 7 | ||||
| -rw-r--r-- | users/xtonhasvim/fancylighting.h | 9 | ||||
| -rw-r--r-- | users/xtonhasvim/xtonhasvim.h | 6 |
3 files changed, 13 insertions, 9 deletions
diff --git a/users/xtonhasvim/fancylighting.c b/users/xtonhasvim/fancylighting.c index f4af5ec55..dc13df03f 100644 --- a/users/xtonhasvim/fancylighting.c +++ b/users/xtonhasvim/fancylighting.c | |||
| @@ -34,9 +34,14 @@ void matrix_scan_keymap(void) { | |||
| 34 | #define FADE_BACK_TIME 500 | 34 | #define FADE_BACK_TIME 500 |
| 35 | #define BREATH_FIRE_TIME 1000 | 35 | #define BREATH_FIRE_TIME 1000 |
| 36 | #define ANIMATION_STEP_INTERVAL 20 | 36 | #define ANIMATION_STEP_INTERVAL 20 |
| 37 | |||
| 38 | #if RGBLED_NUM >= 2 | ||
| 37 | #define POWER_KEY_OFFSET (RGBLED_NUM / 2) | 39 | #define POWER_KEY_OFFSET (RGBLED_NUM / 2) |
| 38 | #define SPACE_OFFSET_MAX (RGBLED_NUM / 2) | 40 | #define SPACE_OFFSET_MAX (RGBLED_NUM / 2) |
| 39 | 41 | #else | |
| 42 | #define POWER_KEY_OFFSET 1 | ||
| 43 | #define SPACE_OFFSET_MAX 1 | ||
| 44 | #endif | ||
| 40 | 45 | ||
| 41 | uint16_t effect_start_timer = 0; | 46 | uint16_t effect_start_timer = 0; |
| 42 | uint8_t user_rgb_mode = 0; | 47 | uint8_t user_rgb_mode = 0; |
diff --git a/users/xtonhasvim/fancylighting.h b/users/xtonhasvim/fancylighting.h index 982010d3d..02fb58b84 100644 --- a/users/xtonhasvim/fancylighting.h +++ b/users/xtonhasvim/fancylighting.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | p /* Copyright 2015-2017 Christon DeWan | 1 | /* Copyright 2015-2017 Christon DeWan |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
| @@ -20,16 +20,17 @@ p /* Copyright 2015-2017 Christon DeWan | |||
| 20 | 20 | ||
| 21 | #include "xtonhasvim.h" | 21 | #include "xtonhasvim.h" |
| 22 | 22 | ||
| 23 | |||
| 23 | extern uint8_t user_rgb_mode; | 24 | extern uint8_t user_rgb_mode; |
| 24 | extern LED_TYPE shadowed_led[]; | 25 | extern LED_TYPE shadowed_led[]; |
| 25 | 26 | ||
| 26 | void start_firey_return(void); | ||
| 27 | 27 | ||
| 28 | #endif //_fancy_lighting_h | 28 | #endif //RGBLIGHT_ENABLE |
| 29 | void start_firey_return(void); | ||
| 29 | 30 | ||
| 30 | enum xtonhasvim_rgbmodes { | 31 | enum xtonhasvim_rgbmodes { |
| 31 | BREATH_FIRE = 1, | 32 | BREATH_FIRE = 1, |
| 32 | FADE_BACK | 33 | FADE_BACK |
| 33 | }; | 34 | }; |
| 34 | 35 | ||
| 35 | #endif //RGBLIGHT_ENABLE | 36 | #endif //_fancy_lighting_h |
diff --git a/users/xtonhasvim/xtonhasvim.h b/users/xtonhasvim/xtonhasvim.h index 5ff4932a4..2d6670a5e 100644 --- a/users/xtonhasvim/xtonhasvim.h +++ b/users/xtonhasvim/xtonhasvim.h | |||
| @@ -22,11 +22,9 @@ | |||
| 22 | 22 | ||
| 23 | #define X_____X KC_NO | 23 | #define X_____X KC_NO |
| 24 | 24 | ||
| 25 | bool process_record_xtonhasvim(uint16_t keycode, keyrecord_t *record); | ||
| 26 | |||
| 27 | enum xtonhasvim_keycodes { | 25 | enum xtonhasvim_keycodes { |
| 28 | DUMMY = SAFE_RANGE, | 26 | // 20: give keyboard-specific codes some room |
| 29 | FIREY_RETURN, // kick off special effects | 27 | FIREY_RETURN = SAFE_RANGE + 20, // kick off special effects |
| 30 | VIM_START, // bookend for vim states | 28 | VIM_START, // bookend for vim states |
| 31 | VIM_A, | 29 | VIM_A, |
| 32 | VIM_B, | 30 | VIM_B, |
