aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-03-28 09:16:47 -0400
committerGitHub <noreply@github.com>2017-03-28 09:16:47 -0400
commit6e688ad5c20251d1109f72914fdcde912284bea1 (patch)
treef67953c5ef8d4aff0ba93b3d6e9ed94b1e04f2e0
parent99b7b50130770d6da9298f79d9b00cd9ec3eaff2 (diff)
parent63e47a642536ca7af22ef353cf7d19677f48b013 (diff)
downloadqmk_firmware-6e688ad5c20251d1109f72914fdcde912284bea1.tar.gz
qmk_firmware-6e688ad5c20251d1109f72914fdcde912284bea1.zip
Merge pull request #1172 from nooges/hexwire-fixes
Let's Split hexwire keymap fixes
-rw-r--r--keyboards/lets_split/keymaps/hexwire/Makefile4
-rw-r--r--keyboards/lets_split/keymaps/hexwire/compact_keymap.h23
-rw-r--r--keyboards/lets_split/keymaps/hexwire/config.h35
-rw-r--r--keyboards/lets_split/keymaps/hexwire/keymap.c2
-rw-r--r--keyboards/lets_split/rev1/config.h7
5 files changed, 45 insertions, 26 deletions
diff --git a/keyboards/lets_split/keymaps/hexwire/Makefile b/keyboards/lets_split/keymaps/hexwire/Makefile
index 1e3cebb14..1e5761278 100644
--- a/keyboards/lets_split/keymaps/hexwire/Makefile
+++ b/keyboards/lets_split/keymaps/hexwire/Makefile
@@ -1 +1,5 @@
1RGBLIGHT_ENABLE = yes 1RGBLIGHT_ENABLE = yes
2
3ifndef QUANTUM_DIR
4 include ../../../../Makefile
5endif
diff --git a/keyboards/lets_split/keymaps/hexwire/compact_keymap.h b/keyboards/lets_split/keymaps/hexwire/compact_keymap.h
deleted file mode 100644
index d9d063fbf..000000000
--- a/keyboards/lets_split/keymaps/hexwire/compact_keymap.h
+++ /dev/null
@@ -1,23 +0,0 @@
1#ifndef COMPACT_KEYMAP_H
2#define COMPACT_KEYMAP_H
3
4#define COMPACT_KEYMAP( \
5 k00, k01, k02, k03, k04, k05, k45, k44, k43, k42, k41, k40, \
6 k10, k11, k12, k13, k14, k15, k55, k54, k53, k52, k51, k50, \
7 k20, k21, k22, k23, k24, k25, k65, k64, k63, k62, k61, k60, \
8 k30, k31, k32, k33, k34, k35, k75, k74, k73, k72, k71, k70 \
9 ) \
10 { \
11 { KC_##k00, KC_##k01, KC_##k02, KC_##k03, KC_##k04, KC_##k05 }, \
12 { KC_##k10, KC_##k11, KC_##k12, KC_##k13, KC_##k14, KC_##k15 }, \
13 { KC_##k20, KC_##k21, KC_##k22, KC_##k23, KC_##k24, KC_##k25 }, \
14 { KC_##k30, KC_##k31, KC_##k32, KC_##k33, KC_##k34, KC_##k35 }, \
15 { KC_##k40, KC_##k41, KC_##k42, KC_##k43, KC_##k44, KC_##k45 }, \
16 { KC_##k50, KC_##k51, KC_##k52, KC_##k53, KC_##k54, KC_##k55 }, \
17 { KC_##k60, KC_##k61, KC_##k62, KC_##k63, KC_##k64, KC_##k65 }, \
18 { KC_##k70, KC_##k71, KC_##k72, KC_##k73, KC_##k74, KC_##k75 } \
19 }
20
21#define KC_ KC_TRNS
22
23#endif \ No newline at end of file
diff --git a/keyboards/lets_split/keymaps/hexwire/config.h b/keyboards/lets_split/keymaps/hexwire/config.h
index 983f8e352..9c8c6d7f4 100644
--- a/keyboards/lets_split/keymaps/hexwire/config.h
+++ b/keyboards/lets_split/keymaps/hexwire/config.h
@@ -18,10 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18 18
19#define USE_SERIAL 19#define USE_SERIAL
20 20
21#define EE_HANDS 21#define TAPPING_TERM 150
22 22
23#undef RGBLED_NUM 23#undef RGBLED_NUM
24#define RGB_DI_PIN B0
25#define RGBLIGHT_ANIMATIONS 24#define RGBLIGHT_ANIMATIONS
26#define RGBLED_NUM 8 25#define RGBLED_NUM 8
27#define RGBLIGHT_HUE_STEP 8 26#define RGBLIGHT_HUE_STEP 8
@@ -30,9 +29,41 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
30 29
31#ifdef SUBPROJECT_rev1 30#ifdef SUBPROJECT_rev1
32 #include "../../rev1/config.h" 31 #include "../../rev1/config.h"
32 #define COMPACT_KEYMAP( \
33 k00, k01, k02, k03, k04, k05, k40, k41, k42, k43, k44, k45, \
34 k10, k11, k12, k13, k14, k15, k50, k51, k52, k53, k54, k55, \
35 k20, k21, k22, k23, k24, k25, k60, k61, k62, k63, k64, k65, \
36 k30, k31, k32, k33, k34, k35, k70, k71, k72, k73, k74, k75 \
37 ) \
38 { \
39 { KC_##k00, KC_##k01, KC_##k02, KC_##k03, KC_##k04, KC_##k05 }, \
40 { KC_##k10, KC_##k11, KC_##k12, KC_##k13, KC_##k14, KC_##k15 }, \
41 { KC_##k20, KC_##k21, KC_##k22, KC_##k23, KC_##k24, KC_##k25 }, \
42 { KC_##k30, KC_##k31, KC_##k32, KC_##k33, KC_##k34, KC_##k35 }, \
43 { KC_##k40, KC_##k41, KC_##k42, KC_##k43, KC_##k44, KC_##k45 }, \
44 { KC_##k50, KC_##k51, KC_##k52, KC_##k53, KC_##k54, KC_##k55 }, \
45 { KC_##k60, KC_##k61, KC_##k62, KC_##k63, KC_##k64, KC_##k65 }, \
46 { KC_##k70, KC_##k71, KC_##k72, KC_##k73, KC_##k74, KC_##k75 } \
47 }
33#endif 48#endif
34#ifdef SUBPROJECT_rev2 49#ifdef SUBPROJECT_rev2
35 #include "../../rev2/config.h" 50 #include "../../rev2/config.h"
51 #define COMPACT_KEYMAP( \
52 k00, k01, k02, k03, k04, k05, k45, k44, k43, k42, k41, k40, \
53 k10, k11, k12, k13, k14, k15, k55, k54, k53, k52, k51, k50, \
54 k20, k21, k22, k23, k24, k25, k65, k64, k63, k62, k61, k60, \
55 k30, k31, k32, k33, k34, k35, k75, k74, k73, k72, k71, k70 \
56 ) \
57 { \
58 { KC_##k00, KC_##k01, KC_##k02, KC_##k03, KC_##k04, KC_##k05 }, \
59 { KC_##k10, KC_##k11, KC_##k12, KC_##k13, KC_##k14, KC_##k15 }, \
60 { KC_##k20, KC_##k21, KC_##k22, KC_##k23, KC_##k24, KC_##k25 }, \
61 { KC_##k30, KC_##k31, KC_##k32, KC_##k33, KC_##k34, KC_##k35 }, \
62 { KC_##k40, KC_##k41, KC_##k42, KC_##k43, KC_##k44, KC_##k45 }, \
63 { KC_##k50, KC_##k51, KC_##k52, KC_##k53, KC_##k54, KC_##k55 }, \
64 { KC_##k60, KC_##k61, KC_##k62, KC_##k63, KC_##k64, KC_##k65 }, \
65 { KC_##k70, KC_##k71, KC_##k72, KC_##k73, KC_##k74, KC_##k75 } \
66 }
36#endif 67#endif
37#ifdef SUBPROJECT_rev2fliphalf 68#ifdef SUBPROJECT_rev2fliphalf
38 #include "../../rev2fliphalf/config.h" 69 #include "../../rev2fliphalf/config.h"
diff --git a/keyboards/lets_split/keymaps/hexwire/keymap.c b/keyboards/lets_split/keymaps/hexwire/keymap.c
index 796a1fcab..f8370490d 100644
--- a/keyboards/lets_split/keymaps/hexwire/keymap.c
+++ b/keyboards/lets_split/keymaps/hexwire/keymap.c
@@ -1,7 +1,6 @@
1#include "lets_split.h" 1#include "lets_split.h"
2#include "action_layer.h" 2#include "action_layer.h"
3#include "eeconfig.h" 3#include "eeconfig.h"
4#include "compact_keymap.h"
5 4
6extern keymap_config_t keymap_config; 5extern keymap_config_t keymap_config;
7 6
@@ -25,6 +24,7 @@ enum custom_keycodes {
25 ADJUST, 24 ADJUST,
26}; 25};
27 26
27#define KC_ KC_TRNS
28#define _______ KC_TRNS 28#define _______ KC_TRNS
29 29
30#define KC_CAPW LGUI(LSFT(KC_3)) // Capture whole screen 30#define KC_CAPW LGUI(LSFT(KC_3)) // Capture whole screen
diff --git a/keyboards/lets_split/rev1/config.h b/keyboards/lets_split/rev1/config.h
index 2f5bde953..5fb87cf5d 100644
--- a/keyboards/lets_split/rev1/config.h
+++ b/keyboards/lets_split/rev1/config.h
@@ -63,6 +63,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
63 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ 63 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
64) 64)
65 65
66/* ws2812 RGB LED */
67#define RGB_DI_PIN D3
68#define RGBLIGHT_TIMER
69#define RGBLED_NUM 16 // Number of LEDs
70#define ws2812_PORTREG PORTD
71#define ws2812_DDRREG DDRD
72
66/* 73/*
67 * Feature disable options 74 * Feature disable options
68 * These options are also useful to firmware size reduction. 75 * These options are also useful to firmware size reduction.