aboutsummaryrefslogtreecommitdiff
path: root/users/xtonhasvim
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
parent4e45119796049f1c2f9e0c99a0ad6f0f932691b5 (diff)
downloadqmk_firmware-78ef62764bfba2b7cb1fb34e477953c16c7a926d.tar.gz
qmk_firmware-78ef62764bfba2b7cb1fb34e477953c16c7a926d.zip
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')
-rw-r--r--users/xtonhasvim/fancylighting.c7
-rw-r--r--users/xtonhasvim/fancylighting.h9
-rw-r--r--users/xtonhasvim/xtonhasvim.h6
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
41uint16_t effect_start_timer = 0; 46uint16_t effect_start_timer = 0;
42uint8_t user_rgb_mode = 0; 47uint8_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 @@
1p /* 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
23extern uint8_t user_rgb_mode; 24extern uint8_t user_rgb_mode;
24extern LED_TYPE shadowed_led[]; 25extern LED_TYPE shadowed_led[];
25 26
26void start_firey_return(void);
27 27
28#endif //_fancy_lighting_h 28#endif //RGBLIGHT_ENABLE
29void start_firey_return(void);
29 30
30enum xtonhasvim_rgbmodes { 31enum 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
25bool process_record_xtonhasvim(uint16_t keycode, keyrecord_t *record);
26
27enum xtonhasvim_keycodes { 25enum 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,