diff options
author | climbalima <climbalima@gmail.com> | 2016-11-10 20:03:24 -0500 |
---|---|---|
committer | climbalima <climbalima@gmail.com> | 2016-11-10 20:03:24 -0500 |
commit | b5cecb4cc9df2d541050a9a95f48c1d5fb796ae4 (patch) | |
tree | 5603f3ee5774c11b103214a2d8e339291be1b42b | |
parent | 6e27f6fbde47804035d508eb84690ed7ee9acee7 (diff) | |
download | qmk_firmware-b5cecb4cc9df2d541050a9a95f48c1d5fb796ae4.tar.gz qmk_firmware-b5cecb4cc9df2d541050a9a95f48c1d5fb796ae4.zip |
Added both revisions into one folder
-rw-r--r-- | keyboards/lets_split/Makefile | 2 | ||||
-rw-r--r-- | keyboards/lets_split/config.h | 16 | ||||
-rw-r--r-- | keyboards/lets_split/keymaps/default/keymap.c | 51 | ||||
-rw-r--r-- | keyboards/lets_split/lets_split.c | 27 | ||||
-rw-r--r-- | keyboards/lets_split/lets_split.h | 26 | ||||
-rw-r--r-- | keyboards/lets_split/rev1/config.h | 98 | ||||
-rw-r--r-- | keyboards/lets_split/rev1/rev1.c | 30 | ||||
-rw-r--r-- | keyboards/lets_split/rev1/rev1.h | 25 | ||||
-rw-r--r-- | keyboards/lets_split/rev2/config.h | 98 | ||||
-rw-r--r-- | keyboards/lets_split/rev2/rev2.c | 30 | ||||
-rw-r--r-- | keyboards/lets_split/rev2/rev2.h | 25 |
11 files changed, 327 insertions, 101 deletions
diff --git a/keyboards/lets_split/Makefile b/keyboards/lets_split/Makefile index 982cfc591..396d51555 100644 --- a/keyboards/lets_split/Makefile +++ b/keyboards/lets_split/Makefile | |||
@@ -72,7 +72,7 @@ USE_I2C ?= yes | |||
72 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | 72 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend |
73 | 73 | ||
74 | CUSTOM_MATRIX = yes | 74 | CUSTOM_MATRIX = yes |
75 | 75 | SUBPROJECT_DEFAULT = rev2 | |
76 | ifndef QUANTUM_DIR | 76 | ifndef QUANTUM_DIR |
77 | include ../../Makefile | 77 | include ../../Makefile |
78 | endif \ No newline at end of file | 78 | endif \ No newline at end of file |
diff --git a/keyboards/lets_split/config.h b/keyboards/lets_split/config.h index bf618704c..245529ae0 100644 --- a/keyboards/lets_split/config.h +++ b/keyboards/lets_split/config.h | |||
@@ -28,15 +28,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
28 | #define PRODUCT Lets Split v2 | 28 | #define PRODUCT Lets Split v2 |
29 | #define DESCRIPTION A split keyboard for the cheap makers | 29 | #define DESCRIPTION A split keyboard for the cheap makers |
30 | 30 | ||
31 | /* key matrix size */ | ||
32 | // Rows are doubled-up | ||
33 | #define MATRIX_ROWS 8 | ||
34 | #define MATRIX_COLS 6 | ||
35 | |||
36 | // wiring of each half | ||
37 | #define MATRIX_ROW_PINS { D7, E6, B4, B5 } | ||
38 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } | ||
39 | |||
40 | #define CATERINA_BOOTLOADER | 31 | #define CATERINA_BOOTLOADER |
41 | 32 | ||
42 | // #define USE_I2C | 33 | // #define USE_I2C |
@@ -94,5 +85,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
94 | //#define NO_ACTION_ONESHOT | 85 | //#define NO_ACTION_ONESHOT |
95 | //#define NO_ACTION_MACRO | 86 | //#define NO_ACTION_MACRO |
96 | //#define NO_ACTION_FUNCTION | 87 | //#define NO_ACTION_FUNCTION |
97 | 88 | #ifdef SUBPROJECT_rev1 | |
89 | #include "rev1/config.h" | ||
90 | #endif | ||
91 | #ifdef SUBPROJECT_rev2 | ||
92 | #include "rev2/config.h" | ||
93 | #endif | ||
98 | #endif \ No newline at end of file | 94 | #endif \ No newline at end of file |
diff --git a/keyboards/lets_split/keymaps/default/keymap.c b/keyboards/lets_split/keymaps/default/keymap.c index 8c8466ebd..d94063816 100644 --- a/keyboards/lets_split/keymaps/default/keymap.c +++ b/keyboards/lets_split/keymaps/default/keymap.c | |||
@@ -29,61 +29,24 @@ enum custom_keycodes { | |||
29 | #define XXXXXXX KC_NO | 29 | #define XXXXXXX KC_NO |
30 | 30 | ||
31 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 31 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
32 | 32 | [0] = KEYMAP( \ | |
33 | /* Qwerty | 33 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, \ |
34 | * ,-----------------------------------------------------------------------------------. | ||
35 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
36 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
37 | * | Esc | A | S | D | F | G | H | J | K | L | ; | " | | ||
38 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
39 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | ||
40 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
41 | * |Adjust| Ctrl | Alt | GUI |Lower |Space |Space |Raise | Left | Down | Up |Right | | ||
42 | * `-----------------------------------------------------------------------------------' | ||
43 | */ | ||
44 | [_QWERTY] = KEYMAP( \ | ||
45 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \ | ||
46 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \ | 34 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \ |
47 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \ | 35 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \ |
48 | KC_LCTL, _LOWER, KC_LGUI, KC_LALT, MO(_LOWER), KC_SPC, KC_LSFT, MO(_RAISE), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | 36 | KC_LCTL, _LOWER, KC_LGUI, KC_LALT, MO(_LOWER), KC_SPC, KC_SPC, MO(_RAISE), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ |
49 | ), | 37 | ), |
50 | 38 | [3] = KEYMAP( \ | |
51 | [_LOWER] = KEYMAP( \ | 39 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, \ |
52 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \ | ||
53 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \ | 40 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \ |
54 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),_______, _______, _______, \ | 41 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),_______, _______, _______, \ |
55 | _______, _______, _______, _______, _______, KC_BSPC, KC_BSPC, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | 42 | _______, _______, _______, _______, _______, KC_BSPC, KC_BSPC, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ |
56 | ), | 43 | ), |
57 | 44 | [4] = KEYMAP( \ | |
58 | /* Raise | 45 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, \ |
59 | * ,-----------------------------------------------------------------------------------. | ||
60 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
61 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
62 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
63 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
64 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | |Enter | | ||
65 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
66 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
67 | * `-----------------------------------------------------------------------------------' | ||
68 | */ | ||
69 | [_RAISE] = KEYMAP( \ | ||
70 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ | ||
71 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \ | 46 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \ |
72 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, \ | 47 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, \ |
73 | _______, _______, _______, _______, _______, KC_ENT, KC_ENT, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | 48 | _______, _______, _______, _______, _______, KC_ENT, KC_ENT, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ |
74 | ), | 49 | ), |
75 | |||
76 | /* Adjust (Lower + Raise) | ||
77 | * ,-----------------------------------------------------------------------------------. | ||
78 | * | | Reset| | | | | | | | | | Del | | ||
79 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
80 | * | | | |Aud on|Audoff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
81 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
82 | * | | | | | | | | | | | | | | ||
83 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
84 | * | | | | | | | | | | | | | ||
85 | * `-----------------------------------------------------------------------------------' | ||
86 | */ | ||
87 | }; | 50 | }; |
88 | 51 | ||
89 | #ifdef AUDIO_ENABLE | 52 | #ifdef AUDIO_ENABLE |
diff --git a/keyboards/lets_split/lets_split.c b/keyboards/lets_split/lets_split.c index 574c116a7..fe2d4bc19 100644 --- a/keyboards/lets_split/lets_split.c +++ b/keyboards/lets_split/lets_split.c | |||
@@ -1,30 +1,3 @@ | |||
1 | #include "lets_split.h" | 1 | #include "lets_split.h" |
2 | 2 | ||
3 | #ifdef AUDIO_ENABLE | ||
4 | float tone_startup[][2] = SONG(STARTUP_SOUND); | ||
5 | float tone_goodbye[][2] = SONG(GOODBYE_SOUND); | ||
6 | #endif | ||
7 | 3 | ||
8 | void matrix_init_kb(void) { | ||
9 | |||
10 | #ifdef AUDIO_ENABLE | ||
11 | _delay_ms(20); // gets rid of tick | ||
12 | PLAY_NOTE_ARRAY(tone_startup, false, 0); | ||
13 | #endif | ||
14 | |||
15 | // // green led on | ||
16 | // DDRD |= (1<<5); | ||
17 | // PORTD &= ~(1<<5); | ||
18 | |||
19 | // // orange led on | ||
20 | // DDRB |= (1<<0); | ||
21 | // PORTB &= ~(1<<0); | ||
22 | |||
23 | matrix_init_user(); | ||
24 | }; | ||
25 | |||
26 | void shutdown_user(void) { | ||
27 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | ||
28 | _delay_ms(150); | ||
29 | stop_all_notes(); | ||
30 | } | ||
diff --git a/keyboards/lets_split/lets_split.h b/keyboards/lets_split/lets_split.h index 04844ed63..2cdfb061f 100644 --- a/keyboards/lets_split/lets_split.h +++ b/keyboards/lets_split/lets_split.h | |||
@@ -1,25 +1,13 @@ | |||
1 | #ifndef LETS_SPLIT_H | 1 | #ifndef LETS_SPLIT_H |
2 | #define LETS_SPLIT_H | 2 | #define LETS_SPLIT_H |
3 | 3 | ||
4 | #include "quantum.h" | 4 | #ifdef SUBPROJECT_rev1 |
5 | 5 | #include "rev1.h" | |
6 | void promicro_bootloader_jmp(bool program); | 6 | #endif |
7 | #ifdef SUBPROJECT_rev2 | ||
8 | #include "rev2.h" | ||
9 | #endif | ||
7 | 10 | ||
8 | #define KEYMAP( \ | 11 | #include "quantum.h" |
9 | k00, k01, k02, k03, k04, k05, k45, k44, k43, k42, k41, k40, \ | ||
10 | k10, k11, k12, k13, k14, k15, k55, k54, k53, k52, k51, k50, \ | ||
11 | k20, k21, k22, k23, k24, k25, k65, k64, k63, k62, k61, k60, \ | ||
12 | k30, k31, k32, k33, k34, k35, k75, k74, k73, k72, k71, k70 \ | ||
13 | ) \ | ||
14 | { \ | ||
15 | { k00, k01, k02, k03, k04, k05 }, \ | ||
16 | { k10, k11, k12, k13, k14, k15 }, \ | ||
17 | { k20, k21, k22, k23, k24, k25 }, \ | ||
18 | { k30, k31, k32, k33, k34, k35 }, \ | ||
19 | { k40, k41, k42, k43, k44, k45 }, \ | ||
20 | { k50, k51, k52, k53, k54, k55 }, \ | ||
21 | { k60, k61, k62, k63, k64, k65 }, \ | ||
22 | { k70, k71, k72, k73, k74, k75 } \ | ||
23 | } | ||
24 | 12 | ||
25 | #endif \ No newline at end of file | 13 | #endif \ No newline at end of file |
diff --git a/keyboards/lets_split/rev1/config.h b/keyboards/lets_split/rev1/config.h new file mode 100644 index 000000000..b609ada07 --- /dev/null +++ b/keyboards/lets_split/rev1/config.h | |||
@@ -0,0 +1,98 @@ | |||
1 | /* | ||
2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #ifndef CONFIG_H | ||
19 | #define CONFIG_H | ||
20 | |||
21 | #include "config_common.h" | ||
22 | |||
23 | /* USB Device descriptor parameter */ | ||
24 | #define VENDOR_ID 0xFEED | ||
25 | #define PRODUCT_ID 0x3060 | ||
26 | #define DEVICE_VER 0x0001 | ||
27 | #define MANUFACTURER Wootpatoot | ||
28 | #define PRODUCT Lets Split v1 | ||
29 | #define DESCRIPTION A split keyboard for the cheap makers | ||
30 | |||
31 | /* key matrix size */ | ||
32 | // Rows are doubled-up | ||
33 | #define MATRIX_ROWS 8 | ||
34 | #define MATRIX_COLS 6 | ||
35 | |||
36 | // wiring of each half | ||
37 | #define MATRIX_ROW_PINS { B5, B4, E6, D7 } | ||
38 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3 } | ||
39 | |||
40 | #define CATERINA_BOOTLOADER | ||
41 | |||
42 | // #define USE_I2C | ||
43 | |||
44 | // #define EE_HANDS | ||
45 | |||
46 | #define I2C_MASTER_LEFT | ||
47 | // #define I2C_MASTER_RIGHT | ||
48 | |||
49 | /* COL2ROW or ROW2COL */ | ||
50 | #define DIODE_DIRECTION COL2ROW | ||
51 | |||
52 | /* define if matrix has ghost */ | ||
53 | //#define MATRIX_HAS_GHOST | ||
54 | |||
55 | /* number of backlight levels */ | ||
56 | // #define BACKLIGHT_LEVELS 3 | ||
57 | |||
58 | /* Set 0 if debouncing isn't needed */ | ||
59 | #define DEBOUNCING_DELAY 5 | ||
60 | |||
61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
62 | #define LOCKING_SUPPORT_ENABLE | ||
63 | /* Locking resynchronize hack */ | ||
64 | #define LOCKING_RESYNC_ENABLE | ||
65 | |||
66 | /* key combination for command */ | ||
67 | #define IS_COMMAND() ( \ | ||
68 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
69 | ) | ||
70 | |||
71 | /* ws2812 RGB LED */ | ||
72 | #define ws2812_PORTREG PORTD | ||
73 | #define ws2812_DDRREG DDRD | ||
74 | #define ws2812_pin PD1 | ||
75 | #define RGBLED_NUM 28 // Number of LEDs | ||
76 | #define RGBLIGHT_HUE_STEP 10 | ||
77 | #define RGBLIGHT_SAT_STEP 17 | ||
78 | #define RGBLIGHT_VAL_STEP 17 | ||
79 | |||
80 | /* | ||
81 | * Feature disable options | ||
82 | * These options are also useful to firmware size reduction. | ||
83 | */ | ||
84 | |||
85 | /* disable debug print */ | ||
86 | // #define NO_DEBUG | ||
87 | |||
88 | /* disable print */ | ||
89 | // #define NO_PRINT | ||
90 | |||
91 | /* disable action features */ | ||
92 | //#define NO_ACTION_LAYER | ||
93 | //#define NO_ACTION_TAPPING | ||
94 | //#define NO_ACTION_ONESHOT | ||
95 | //#define NO_ACTION_MACRO | ||
96 | //#define NO_ACTION_FUNCTION | ||
97 | |||
98 | #endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split/rev1/rev1.c b/keyboards/lets_split/rev1/rev1.c new file mode 100644 index 000000000..574c116a7 --- /dev/null +++ b/keyboards/lets_split/rev1/rev1.c | |||
@@ -0,0 +1,30 @@ | |||
1 | #include "lets_split.h" | ||
2 | |||
3 | #ifdef AUDIO_ENABLE | ||
4 | float tone_startup[][2] = SONG(STARTUP_SOUND); | ||
5 | float tone_goodbye[][2] = SONG(GOODBYE_SOUND); | ||
6 | #endif | ||
7 | |||
8 | void matrix_init_kb(void) { | ||
9 | |||
10 | #ifdef AUDIO_ENABLE | ||
11 | _delay_ms(20); // gets rid of tick | ||
12 | PLAY_NOTE_ARRAY(tone_startup, false, 0); | ||
13 | #endif | ||
14 | |||
15 | // // green led on | ||
16 | // DDRD |= (1<<5); | ||
17 | // PORTD &= ~(1<<5); | ||
18 | |||
19 | // // orange led on | ||
20 | // DDRB |= (1<<0); | ||
21 | // PORTB &= ~(1<<0); | ||
22 | |||
23 | matrix_init_user(); | ||
24 | }; | ||
25 | |||
26 | void shutdown_user(void) { | ||
27 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | ||
28 | _delay_ms(150); | ||
29 | stop_all_notes(); | ||
30 | } | ||
diff --git a/keyboards/lets_split/rev1/rev1.h b/keyboards/lets_split/rev1/rev1.h new file mode 100644 index 000000000..04fe0ddeb --- /dev/null +++ b/keyboards/lets_split/rev1/rev1.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #ifndef REV1_H | ||
2 | #define REV1_H | ||
3 | |||
4 | #include "quantum.h" | ||
5 | |||
6 | void promicro_bootloader_jmp(bool program); | ||
7 | |||
8 | #define KEYMAP( \ | ||
9 | k00, k01, k02, k03, k04, k05, k40, k41, k42, k43, k44, k45, \ | ||
10 | k10, k11, k12, k13, k14, k15, k50, k51, k52, k53, k54, k55, \ | ||
11 | k20, k21, k22, k23, k24, k25, k60, k61, k62, k63, k64, k65, \ | ||
12 | k30, k31, k32, k33, k34, k35, k70, k71, k72, k73, k74, k75 \ | ||
13 | ) \ | ||
14 | { \ | ||
15 | { k00, k01, k02, k03, k04, k05 }, \ | ||
16 | { k10, k11, k12, k13, k14, k15 }, \ | ||
17 | { k20, k21, k22, k23, k24, k25 }, \ | ||
18 | { k30, k31, k32, k33, k34, k35 }, \ | ||
19 | { k40, k41, k42, k43, k44, k45 }, \ | ||
20 | { k50, k51, k52, k53, k54, k55 }, \ | ||
21 | { k60, k61, k62, k63, k64, k65 }, \ | ||
22 | { k70, k71, k72, k73, k74, k75 } \ | ||
23 | } | ||
24 | |||
25 | #endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split/rev2/config.h b/keyboards/lets_split/rev2/config.h new file mode 100644 index 000000000..bf618704c --- /dev/null +++ b/keyboards/lets_split/rev2/config.h | |||
@@ -0,0 +1,98 @@ | |||
1 | /* | ||
2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #ifndef CONFIG_H | ||
19 | #define CONFIG_H | ||
20 | |||
21 | #include "config_common.h" | ||
22 | |||
23 | /* USB Device descriptor parameter */ | ||
24 | #define VENDOR_ID 0xFEED | ||
25 | #define PRODUCT_ID 0x3060 | ||
26 | #define DEVICE_VER 0x0001 | ||
27 | #define MANUFACTURER Wootpatoot | ||
28 | #define PRODUCT Lets Split v2 | ||
29 | #define DESCRIPTION A split keyboard for the cheap makers | ||
30 | |||
31 | /* key matrix size */ | ||
32 | // Rows are doubled-up | ||
33 | #define MATRIX_ROWS 8 | ||
34 | #define MATRIX_COLS 6 | ||
35 | |||
36 | // wiring of each half | ||
37 | #define MATRIX_ROW_PINS { D7, E6, B4, B5 } | ||
38 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } | ||
39 | |||
40 | #define CATERINA_BOOTLOADER | ||
41 | |||
42 | // #define USE_I2C | ||
43 | |||
44 | // #define EE_HANDS | ||
45 | |||
46 | #define I2C_MASTER_LEFT | ||
47 | // #define I2C_MASTER_RIGHT | ||
48 | |||
49 | /* COL2ROW or ROW2COL */ | ||
50 | #define DIODE_DIRECTION COL2ROW | ||
51 | |||
52 | /* define if matrix has ghost */ | ||
53 | //#define MATRIX_HAS_GHOST | ||
54 | |||
55 | /* number of backlight levels */ | ||
56 | // #define BACKLIGHT_LEVELS 3 | ||
57 | |||
58 | /* Set 0 if debouncing isn't needed */ | ||
59 | #define DEBOUNCING_DELAY 5 | ||
60 | |||
61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
62 | #define LOCKING_SUPPORT_ENABLE | ||
63 | /* Locking resynchronize hack */ | ||
64 | #define LOCKING_RESYNC_ENABLE | ||
65 | |||
66 | /* key combination for command */ | ||
67 | #define IS_COMMAND() ( \ | ||
68 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
69 | ) | ||
70 | |||
71 | /* ws2812 RGB LED */ | ||
72 | #define ws2812_PORTREG PORTD | ||
73 | #define ws2812_DDRREG DDRD | ||
74 | #define ws2812_pin PD1 | ||
75 | #define RGBLED_NUM 28 // Number of LEDs | ||
76 | #define RGBLIGHT_HUE_STEP 10 | ||
77 | #define RGBLIGHT_SAT_STEP 17 | ||
78 | #define RGBLIGHT_VAL_STEP 17 | ||
79 | |||
80 | /* | ||
81 | * Feature disable options | ||
82 | * These options are also useful to firmware size reduction. | ||
83 | */ | ||
84 | |||
85 | /* disable debug print */ | ||
86 | // #define NO_DEBUG | ||
87 | |||
88 | /* disable print */ | ||
89 | // #define NO_PRINT | ||
90 | |||
91 | /* disable action features */ | ||
92 | //#define NO_ACTION_LAYER | ||
93 | //#define NO_ACTION_TAPPING | ||
94 | //#define NO_ACTION_ONESHOT | ||
95 | //#define NO_ACTION_MACRO | ||
96 | //#define NO_ACTION_FUNCTION | ||
97 | |||
98 | #endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split/rev2/rev2.c b/keyboards/lets_split/rev2/rev2.c new file mode 100644 index 000000000..574c116a7 --- /dev/null +++ b/keyboards/lets_split/rev2/rev2.c | |||
@@ -0,0 +1,30 @@ | |||
1 | #include "lets_split.h" | ||
2 | |||
3 | #ifdef AUDIO_ENABLE | ||
4 | float tone_startup[][2] = SONG(STARTUP_SOUND); | ||
5 | float tone_goodbye[][2] = SONG(GOODBYE_SOUND); | ||
6 | #endif | ||
7 | |||
8 | void matrix_init_kb(void) { | ||
9 | |||
10 | #ifdef AUDIO_ENABLE | ||
11 | _delay_ms(20); // gets rid of tick | ||
12 | PLAY_NOTE_ARRAY(tone_startup, false, 0); | ||
13 | #endif | ||
14 | |||
15 | // // green led on | ||
16 | // DDRD |= (1<<5); | ||
17 | // PORTD &= ~(1<<5); | ||
18 | |||
19 | // // orange led on | ||
20 | // DDRB |= (1<<0); | ||
21 | // PORTB &= ~(1<<0); | ||
22 | |||
23 | matrix_init_user(); | ||
24 | }; | ||
25 | |||
26 | void shutdown_user(void) { | ||
27 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | ||
28 | _delay_ms(150); | ||
29 | stop_all_notes(); | ||
30 | } | ||
diff --git a/keyboards/lets_split/rev2/rev2.h b/keyboards/lets_split/rev2/rev2.h new file mode 100644 index 000000000..2a2246f05 --- /dev/null +++ b/keyboards/lets_split/rev2/rev2.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #ifndef REV2_H | ||
2 | #define REV2_H | ||
3 | |||
4 | #include "quantum.h" | ||
5 | |||
6 | void promicro_bootloader_jmp(bool program); | ||
7 | |||
8 | #define KEYMAP( \ | ||
9 | k00, k01, k02, k03, k04, k05, k45, k44, k43, k42, k41, k40, \ | ||
10 | k10, k11, k12, k13, k14, k15, k55, k54, k53, k52, k51, k50, \ | ||
11 | k20, k21, k22, k23, k24, k25, k65, k64, k63, k62, k61, k60, \ | ||
12 | k30, k31, k32, k33, k34, k35, k75, k74, k73, k72, k71, k70 \ | ||
13 | ) \ | ||
14 | { \ | ||
15 | { k00, k01, k02, k03, k04, k05 }, \ | ||
16 | { k10, k11, k12, k13, k14, k15 }, \ | ||
17 | { k20, k21, k22, k23, k24, k25 }, \ | ||
18 | { k30, k31, k32, k33, k34, k35 }, \ | ||
19 | { k40, k41, k42, k43, k44, k45 }, \ | ||
20 | { k50, k51, k52, k53, k54, k55 }, \ | ||
21 | { k60, k61, k62, k63, k64, k65 }, \ | ||
22 | { k70, k71, k72, k73, k74, k75 } \ | ||
23 | } | ||
24 | |||
25 | #endif \ No newline at end of file | ||