aboutsummaryrefslogtreecommitdiff
path: root/keyboards/lets_split
diff options
context:
space:
mode:
authorzer09 <zer09@users.noreply.github.com>2018-04-30 04:02:37 +0800
committerDrashna Jaelre <drashna@live.com>2018-04-29 13:02:37 -0700
commit7216fd0f47bb41d0a49432095767aef6ead33da2 (patch)
treea5585c8c4be4ada0fd945685446d0874c43abf68 /keyboards/lets_split
parent3b7b1994cd9e3e61fdee84eff78875135642aa6c (diff)
downloadqmk_firmware-7216fd0f47bb41d0a49432095767aef6ead33da2.tar.gz
qmk_firmware-7216fd0f47bb41d0a49432095767aef6ead33da2.zip
My userspace and lets_split keymap (#2842)
* copied lets_slit to splinter * initial splinter layout * remove unused keymaps * implemented second half of the keyboard * initial definition of tap dance * the tap dance is working now tap dance for right hand 4c 2r hold - shift single tap - n double tap - ñ triple tap - Ñ * clear the keymap.c * put the tap state on to array * the n tilde tap dance should produce right shift if hold * add esc grv tap dance * remove the defined SS_LSFT on tap_dance.h because it was added on the quantum.h * minor cleanup for the keymap * use the X_* on tap dance * added super alt tap dance * use the NO_TAP on tap dance reset * allow track what rows and cols pressed * added the RGUI_ALT * keymap arrangement * use i2c * initial rgb * layer colors * initial rgb pressed key * set the layers led * SUCCESS!!! * cleaning * improve shifted layer * led brightness * initial caps rainbow * rename SET_LED_RGB to SET_LED_RGB_HEX * clean the SET_LED_RGB_HEX and added SET_LED_RGB * clean format * caps lock rainbow * rename key_led to set_key_led * caps lock rainbow enhanced * make varibiables static * change back the loop max value to 360 for the rainbow * add scroll lock to the rainbow led * fix pos calculation of right hand board * add ative keys and make rainbow color can override by key press * remove the TOTAL_MATRIX_POINTS * some improvments for the rgb * call the rgblight_set on the process_record_user * some enhancement for the leds * pass the dim value to set_layer_led and limit the brightness on _VL set the brightness to 2 if the dim value is less than 2 because their is not enought power for the leds. * remove the rgb steps on the config * use the non rev config * remove all the revisions * favor i2c instead of serial and remove all the ref for the serial * clang formatting * allow to save to eeprom the brightness value * add bootloader caterina this will enable soft reset key * initial commit for the userspace * added my own keymap for splinter * first working userspace * move splinter to handwired keyboards * handwired splinter default keymap * move some config to my keymap * cleanup some headers on the keymap * move the EECONFIG_RGB_DIM to the user space * I fix remove the GUI on SPC and ENT * remove the default include on tap_dance.c * add lights.c and refactoring * fix wrong source for led index * seperate the variable on set_layer_led for readabilty. * set the usb max power consumption to 50 * fix led lighting * add new enums for tap dance * use romeve path avr on eeprom.h * fix wrong spelling on TP names * changed the tap dance * allow to set rainbow on some pressed key * add reset key * fix error on matrix.c if ROW2COL is used * add extraflags -flto * See e2352d4 * Got no love from i2c, serial to the rescue * Fix the led will lit up to color red after boot * Trial if the power can handle yellow color at full * Add comment * Use EE_HANDS * add config.h in the use space * KC_N on BL should wrap in SFT_T * See d13567d, put it back but increase 1 level * Fix led soldering mistake * set the tapping_term to 100 * Use TT for the changing the layer * Remove the changing space to enter and vice version on BL and UL * Increate the tapping term * Use tap dance on changing layer * Add assorted layer * propery way to tapdance * Remove DA_EGRV This also fix the wrong placement of the reset and dance lspr should register the KC_LGUI on finished not unregistered. * Remove the media control to the up and down layer * Remove the interrupted state of the tap dance * swapt the space and enter on to th caps * Shorthand * Keymap update * My keymap for lets_split * cleaning
Diffstat (limited to 'keyboards/lets_split')
-rw-r--r--keyboards/lets_split/keymaps/zer09/config.h59
-rw-r--r--keyboards/lets_split/keymaps/zer09/keymap.c38
-rw-r--r--keyboards/lets_split/keymaps/zer09/keymap.h32
-rw-r--r--keyboards/lets_split/keymaps/zer09/rules.mk6
4 files changed, 135 insertions, 0 deletions
diff --git a/keyboards/lets_split/keymaps/zer09/config.h b/keyboards/lets_split/keymaps/zer09/config.h
new file mode 100644
index 000000000..73438d8a9
--- /dev/null
+++ b/keyboards/lets_split/keymaps/zer09/config.h
@@ -0,0 +1,59 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
5Copyright 2015 Jack Humbert
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef CONFIG_USER_H
22#define CONFIG_USER_H
23
24#include "../../config.h"
25
26/* key matrix size */
27/* Rows are doubled-up */
28#undef MATRIX_ROWS
29#undef MATRIX_COLS
30#define MATRIX_ROWS 10
31#define MATRIX_COLS 5
32
33#undef MATRIX_ROW_PINS
34#undef MATRIX_COL_PINS
35#define MATRIX_ROW_PINS { C6, D7, E6, B4, B5 }
36#define MATRIX_COL_PINS { F7, B1, B3, B2, B6 }
37
38#define CATERINA_BOOTLOADER
39#define USB_MAX_POWER_CONSUMPTION 50
40
41/* Use I2C or Serial, not both */
42
43#define USE_SERIAL
44// #define USE_I2C
45
46/* Select hand configuration */
47
48/* #define MASTER_LEFT */
49// #define MASTER_RIGHT
50#define EE_HANDS
51
52/* ws2812 RGB LED */
53#undef RGBLED_NUM
54#define RGB_DI_PIN D3
55#define RGBLIGHT_TIMER
56#define RGBLED_NUM 50
57#define ws2812_PORTREG PORTD
58#define ws2812_DDRREG DDRD
59#endif
diff --git a/keyboards/lets_split/keymaps/zer09/keymap.c b/keyboards/lets_split/keymaps/zer09/keymap.c
new file mode 100644
index 000000000..8d0eaf141
--- /dev/null
+++ b/keyboards/lets_split/keymaps/zer09/keymap.c
@@ -0,0 +1,38 @@
1#include "keymap.h"
2
3extern keymap_config_t keymap_config;
4
5#define _baseLayer LAYOUT( \
6 KC_QUOTE, KC_COMMA, KC_DOT, KC_P, KC_Y, /**/KC_F, KC_G, KC_C, KC_R, KC_L, \
7 CTL_T(KC_A), SFT_T(KC_O), ALT_T(KC_E), KC_U, KC_I, /**/KC_D, KC_H, ALT_T(KC_T), SFT_T(KC_N), CTL_T(KC_S), \
8 KC_SCOLON, KC_Q, KC_J, KC_K, KC_X, /**/KC_B, KC_M, KC_W, KC_V, KC_Z, \
9 TD(DA_UPLY), MO(_VL), KC_TAB, KC_BSPACE, KC_ESC, /**/KC_INS, KC_HOME, KC_PGUP, MO(_VL), TD(DA_UPLY), \
10 TD(DA_DWLY), TD(DA_LCTL), KC_SPC, TD(DA_LSPR), LSFT_T(KC_CAPS),/**/SFT_T(KC_CAPS), TD(DA_RALT), KC_ENT, TD(DA_RCTL), TD(DA_DWLY))
11
12#define _upLayer LAYOUT( \
13 KC_4, KC_5, KC_6, _______, _______,/**/ _______, KC_RBRC, _______, _______, _______, \
14 LCTL_T(KC_1), LSFT_T(KC_2), LALT_T(KC_3), _______, _______,/**/ KC_LBRC, KC_BSLS, _______, _______, _______, \
15 KC_7, KC_8, KC_9, KC_0, KC_GRV, /**/ KC_SLSH, _______, _______, _______, _______, \
16 _______, _______, _______, _______, _______,/**/ KC_DEL, KC_END, KC_PGDN, _______, _______, \
17 _______, _______, _______, _______, _______,/**/ _______, _______, _______, _______, _______)
18
19#define _downLayer LAYOUT( \
20 KC_F4, KC_F5, KC_F6, KC_F12, _______,/**/ _______, KC_RPRN, _______, _______, _______, \
21 LCTL_T(KC_F1), LSFT_T(KC_F2), LALT_T(KC_F3), KC_F11, _______,/**/ KC_LPRN, KC_EQUAL, KC_LEFT, KC_UP, KC_RIGHT, \
22 KC_F7, KC_F8, KC_F9, KC_F10, _______,/**/ KC_MINUS, _______, _______, KC_DOWN, _______, \
23 _______, _______, _______, _______, _______,/**/ KC_PSCR, KC_SLCK, KC_PAUSE, _______, _______, \
24 _______, _______, _______, _______, _______,/**/ _______, _______, _______, _______, _______)
25
26#define _astdLayer LAYOUT( \
27 KC_MPRV, KC_MUTE, _______, _______, _______,/**/KC_PSCR, KC_SLCK, KC_PAUSE, _______, KC_RGUP, \
28 KC_MPLY, KC_VOLD, _______, _______, _______,/**/_______, _______, _______, _______, KC_RGDWN, \
29 KC_MNXT, KC_VOLU, RESET, _______, _______,/**/_______, _______, RESET, _______, _______, \
30 _______, _______, _______, _______, _______,/**/_______, _______, _______, _______, _______, \
31 _______, _______, _______, _______, _______,/**/_______, _______, _______, _______, _______)
32
33const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
34 [_BL] = _baseLayer,
35 [_UL] = _upLayer,
36 [_DL] = _downLayer,
37 [_VL] = _upLayer,
38 [_AL] = _astdLayer};
diff --git a/keyboards/lets_split/keymaps/zer09/keymap.h b/keyboards/lets_split/keymaps/zer09/keymap.h
new file mode 100644
index 000000000..03f8f480a
--- /dev/null
+++ b/keyboards/lets_split/keymaps/zer09/keymap.h
@@ -0,0 +1,32 @@
1#include "lets_split.h"
2#include "action_layer.h"
3#include "eeconfig.h"
4#include "tap_dance.h"
5#include "zer09.h"
6
7#ifdef LAYOUT_ortho_4x12
8#undef LAYOUT_ortho_4x12
9#endif
10
11#ifdef LAYOUT
12#undef LAYOUT
13#define LAYOUT( \
14 L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
15 L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
16 L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
17 L30, L31, L32, L33, L34, R30, R31, R32, R33, R34, \
18 L40, L41, L42, L43, L44, R40, R41, R42, R43, R44 \
19) \
20 { \
21 { L00, L01, L02, L03, L04 }, \
22 { L10, L11, L12, L13, L14 }, \
23 { L20, L21, L22, L23, L24 }, \
24 { L30, L31, L32, L33, L34 }, \
25 { L40, L41, L42, L43, L44 }, \
26 { R00, R01, R02, R03, R04 }, \
27 { R10, R11, R12, R13, R14 }, \
28 { R20, R21, R22, R23, R24 }, \
29 { R30, R31, R32, R33, R34 }, \
30 { R40, R41, R42, R43, R44 } \
31 }
32#endif
diff --git a/keyboards/lets_split/keymaps/zer09/rules.mk b/keyboards/lets_split/keymaps/zer09/rules.mk
new file mode 100644
index 000000000..d8adc7088
--- /dev/null
+++ b/keyboards/lets_split/keymaps/zer09/rules.mk
@@ -0,0 +1,6 @@
1RGBLIGHT_ENABLE = yes
2TAP_DANCE_ENABLE = yes
3
4ifndef QUANTUM_DIR
5 include ../../../../Makefile
6endif