aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasha Mostofi <yasha.mostofi@gmail.com>2020-06-18 02:06:11 -0500
committerGitHub <noreply@github.com>2020-06-18 00:06:11 -0700
commitaae1814319c4992471d074ed18b8b7b4842b0a66 (patch)
treee8917446a34b5112ba25401d272e97193177a501
parent78fdd406227f55f8bb2a1891e7fdbcb4b3daf13b (diff)
downloadqmk_firmware-aae1814319c4992471d074ed18b8b7b4842b0a66.tar.gz
qmk_firmware-aae1814319c4992471d074ed18b8b7b4842b0a66.zip
[Keyboard] Add Via support for Let's Split v2 (#9448)
* initial let's split with rgb * Revert default * Add Via keymap * Remove my keymap * Remove trailing slashes
-rw-r--r--keyboards/lets_split/keymaps/via/config.h40
-rw-r--r--keyboards/lets_split/keymaps/via/keymap.c77
-rw-r--r--keyboards/lets_split/keymaps/via/rules.mk4
-rw-r--r--keyboards/lets_split/rev2/config.h6
4 files changed, 124 insertions, 3 deletions
diff --git a/keyboards/lets_split/keymaps/via/config.h b/keyboards/lets_split/keymaps/via/config.h
new file mode 100644
index 000000000..df24c53cd
--- /dev/null
+++ b/keyboards/lets_split/keymaps/via/config.h
@@ -0,0 +1,40 @@
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#pragma once
22
23 // place overrides here
24#define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
25 SONG(COLEMAK_SOUND), \
26 SONG(DVORAK_SOUND) \
27 }
28
29/* Use I2C or Serial, not both */
30#define USE_SERIAL
31// #define USE_I2C
32
33/* Select hand configuration */
34#define MASTER_LEFT
35// #define MASTER_RIGHT
36// #define EE_HANDS
37
38#undef RGBLED_NUM
39#define RGBLIGHT_ANIMATIONS
40#define RGBLED_NUM 10
diff --git a/keyboards/lets_split/keymaps/via/keymap.c b/keyboards/lets_split/keymaps/via/keymap.c
new file mode 100644
index 000000000..1509a2e6a
--- /dev/null
+++ b/keyboards/lets_split/keymaps/via/keymap.c
@@ -0,0 +1,77 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4/* Qwerty
5 * ,-----------------------------------------------------------------------------------.
6 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
7 * |------+------+------+------+------+-------------+------+------+------+------+------|
8 * | Esc | A | S | D | F | G | H | J | K | L | ; | " |
9 * |------+------+------+------+------+------|------+------+------+------+------+------|
10 * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
11 * |------+------+------+------+------+------+------+------+------+------+------+------|
12 * |Reset | Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
13 * `-----------------------------------------------------------------------------------'
14 */
15[0] = LAYOUT_ortho_4x12(
16 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
17 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
18 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT ,
19 RESET, KC_LCTL, KC_LALT, KC_LGUI, MO(1), KC_SPC, KC_SPC, MO(2), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
20),
21
22
23/* Lower
24 * ,-----------------------------------------------------------------------------------.
25 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del |
26 * |---`---+------+------+------+------+-------------+------+------+------+------+------|
27 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
28 * |------+------+------+------+------+------|------+------+------+------+------+------|
29 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | |
30 * |------+------+------+------+------+------+------+------+------+------+------+------|
31 * | | | | | | | MO(3)| Next | Vol- | Vol+ | Play |
32 * `-----------------------------------------------------------------------------------'
33 */
34[1] = LAYOUT_ortho_4x12(
35 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
36 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
37 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),_______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, MO(3), KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
39),
40
41/* Raise
42 * ,-----------------------------------------------------------------------------------.
43 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del |
44 * |------+------+------+------+------+-------------+------+------+------+------+------|
45 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
46 * |------+------+------+------+------+------|------+------+------+------+------+------|
47 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | | |
48 * |------+------+------+------+------+------+------+------+------+------+------+------|
49 * | | | | | | | | Next | Vol- | Vol+ | Play |
50 * `-----------------------------------------------------------------------------------'
51 */
52[2] = LAYOUT_ortho_4x12(
53 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
54 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
55 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______,
56 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
57),
58
59/* Adjust (Lower + Raise)
60 * ,-----------------------------------------------------------------------------------.
61 * | | Reset| | | | | | | | | | Del |
62 * |------+------+------+------+------+-------------+------+------+------+------+------|
63 * | | |rgb_md|Aud on|Audoff|AGnorm|AGswap| | | | | |
64 * |------+------+------+------+------+------|------+------+------+------+------+------|
65 * | | | | | | | | | | | | |
66 * |------+------+------+------+------+------+------+------+------+------+------+------|
67 * | | | | | | | | | | | |
68 * `-----------------------------------------------------------------------------------'
69 */
70[3] = LAYOUT_ortho_4x12(
71 _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL,
72 _______, _______, RGB_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______,
73 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
74 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
75)
76
77};
diff --git a/keyboards/lets_split/keymaps/via/rules.mk b/keyboards/lets_split/keymaps/via/rules.mk
new file mode 100644
index 000000000..48e7e7f25
--- /dev/null
+++ b/keyboards/lets_split/keymaps/via/rules.mk
@@ -0,0 +1,4 @@
1RGBLIGHT_ENABLE = yes # LED strips
2VIA_ENABLE = yes
3LTO_ENABLE = yes
4MOUSEKEY_ENABLE = no
diff --git a/keyboards/lets_split/rev2/config.h b/keyboards/lets_split/rev2/config.h
index 0977d7c67..d5b5b57d0 100644
--- a/keyboards/lets_split/rev2/config.h
+++ b/keyboards/lets_split/rev2/config.h
@@ -19,9 +19,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
19#pragma once 19#pragma once
20 20
21/* USB Device descriptor parameter */ 21/* USB Device descriptor parameter */
22#define VENDOR_ID 0xFEED 22#define VENDOR_ID 0x6F77
23#define PRODUCT_ID 0x3060 23#define PRODUCT_ID 0x0002
24#define DEVICE_VER 0x0001 24#define DEVICE_VER 0x0002
25#define MANUFACTURER Wootpatoot 25#define MANUFACTURER Wootpatoot
26#define PRODUCT Lets Split v2 26#define PRODUCT Lets Split v2
27#define DESCRIPTION A split keyboard for the cheap makers 27#define DESCRIPTION A split keyboard for the cheap makers