Rename cloned Nyquist files to Viterbi, create temporary keymaps
Add WIP keymap for dwallacetravis_phases
parent
72e9939143
commit
92b74e2d36
@ -0,0 +1,5 @@
|
|||||||
|
RGBLIGHT_ENABLE = yes
|
||||||
|
|
||||||
|
ifndef QUANTUM_DIR
|
||||||
|
include ../../../../Makefile
|
||||||
|
endif
|
@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 Danny Nguyen <danny@hexwire.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef CONFIG_USER_H
|
||||||
|
#define CONFIG_USER_H
|
||||||
|
|
||||||
|
#include "../../config.h"
|
||||||
|
|
||||||
|
/* Use I2C or Serial, not both */
|
||||||
|
|
||||||
|
#define USE_SERIAL
|
||||||
|
// #define USE_I2C
|
||||||
|
|
||||||
|
/* Select hand configuration */
|
||||||
|
|
||||||
|
#define MASTER_LEFT
|
||||||
|
// #define _MASTER_RIGHT
|
||||||
|
// #define EE_HANDS
|
||||||
|
|
||||||
|
#undef RGBLED_NUM
|
||||||
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
#define RGBLED_NUM 12
|
||||||
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
|
#define RGBLIGHT_SAT_STEP 8
|
||||||
|
#define RGBLIGHT_VAL_STEP 8
|
||||||
|
|
||||||
|
#endif
|
@ -0,0 +1,232 @@
|
|||||||
|
#include "viterbi.h"
|
||||||
|
#include "action_layer.h"
|
||||||
|
#include "eeconfig.h"
|
||||||
|
|
||||||
|
extern keymap_config_t keymap_config;
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
#define _QWERTY 0
|
||||||
|
#define _COLEMAK 1
|
||||||
|
#define _DVORAK 2
|
||||||
|
#define _LOWER 3
|
||||||
|
#define _RAISE 4
|
||||||
|
#define _ADJUST 16
|
||||||
|
|
||||||
|
enum custom_keycodes {
|
||||||
|
QWERTY = SAFE_RANGE,
|
||||||
|
COLEMAK,
|
||||||
|
DVORAK,
|
||||||
|
LOWER,
|
||||||
|
RAISE,
|
||||||
|
ADJUST,
|
||||||
|
};
|
||||||
|
|
||||||
|
// Fillers to make layering more clear
|
||||||
|
#define _______ KC_TRNS
|
||||||
|
#define XXXXXXX KC_NO
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
/* Qwerty
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | Tab | Q | W | E | R | T | Y | U | I | O | P | Del |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | Esc | A | S | D | F | G | H | J | K | L | ; | " |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* |Adjust| Ctrl | Alt | GUI |Lower |Space |Space |Raise | Left | Down | Up |Right |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_QWERTY] = KEYMAP( \
|
||||||
|
KC_NO, KC_NO, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||||
|
KC_NO, KC_NO, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, \
|
||||||
|
KC_NO, KC_NO, KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
|
||||||
|
KC_NO, KC_NO, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \
|
||||||
|
KC_NO, KC_NO, ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Colemak
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | Tab | Q | W | F | P | G | J | L | U | Y | ; | Del |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | Esc | A | R | S | T | D | H | N | E | I | O | " |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* | Shift| Z | X | C | V | B | K | M | , | . | / |Enter |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* |Adjust| Ctrl | Alt | GUI |Lower |Space |Space |Raise | Left | Down | Up |Right |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_COLEMAK] = KEYMAP( \
|
||||||
|
KC_NO, KC_NO, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||||
|
KC_NO, KC_NO, KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_DEL, \
|
||||||
|
KC_NO, KC_NO, KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, \
|
||||||
|
KC_NO, KC_NO, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \
|
||||||
|
KC_NO, KC_NO, ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Dvorak
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | Tab | " | , | . | P | Y | F | G | C | R | L | Del |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | Esc | A | O | E | U | I | D | H | T | N | S | / |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* | Shift| ; | Q | J | K | X | B | M | W | V | Z |Enter |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* |Adjust| Ctrl | Alt | GUI |Lower |Space |Space |Raise | Left | Down | Up |Right |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_DVORAK] = KEYMAP( \
|
||||||
|
KC_NO, KC_NO, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||||
|
KC_NO, KC_NO, KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_DEL, \
|
||||||
|
KC_NO, KC_NO, KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH, \
|
||||||
|
KC_NO, KC_NO, KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT , \
|
||||||
|
KC_NO, KC_NO, ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Lower
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | | \ | | |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | |Enter |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_LOWER] = KEYMAP( \
|
||||||
|
KC_NO, KC_NO, KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \
|
||||||
|
KC_NO, KC_NO, KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, \
|
||||||
|
KC_NO, KC_NO, KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \
|
||||||
|
KC_NO, KC_NO, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),_______, _______, _______, \
|
||||||
|
KC_NO, KC_NO, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Raise
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | |Enter |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_RAISE] = KEYMAP( \
|
||||||
|
KC_NO, KC_NO, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||||
|
KC_NO, KC_NO, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \
|
||||||
|
KC_NO, KC_NO, KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \
|
||||||
|
KC_NO, KC_NO, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, \
|
||||||
|
KC_NO, KC_NO, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Adjust (Lower + Raise)
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | Reset|RGB Tg|RGB Md|Hue Up|Hue Dn|Sat Up|Sat Dn|Val Up|Val Dn| | Del |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | | | |Aud on|Audoff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | | | |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | | |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_ADJUST] = KEYMAP( \
|
||||||
|
KC_NO, KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
|
||||||
|
KC_NO, KC_NO, _______, RESET , RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, _______, KC_DEL, \
|
||||||
|
KC_NO, KC_NO, _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, \
|
||||||
|
KC_NO, KC_NO, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
KC_NO, KC_NO, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
float tone_qwerty[][2] = SONG(QWERTY_SOUND);
|
||||||
|
float tone_dvorak[][2] = SONG(DVORAK_SOUND);
|
||||||
|
float tone_colemak[][2] = SONG(COLEMAK_SOUND);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void persistent_default_layer_set(uint16_t default_layer) {
|
||||||
|
eeconfig_update_default_layer(default_layer);
|
||||||
|
default_layer_set(default_layer);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case QWERTY:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
PLAY_NOTE_ARRAY(tone_qwerty, false, 0);
|
||||||
|
#endif
|
||||||
|
persistent_default_layer_set(1UL<<_QWERTY);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case COLEMAK:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
PLAY_NOTE_ARRAY(tone_colemak, false, 0);
|
||||||
|
#endif
|
||||||
|
persistent_default_layer_set(1UL<<_COLEMAK);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case DVORAK:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
PLAY_NOTE_ARRAY(tone_dvorak, false, 0);
|
||||||
|
#endif
|
||||||
|
persistent_default_layer_set(1UL<<_DVORAK);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case LOWER:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
layer_on(_LOWER);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
} else {
|
||||||
|
layer_off(_LOWER);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case RAISE:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
layer_on(_RAISE);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
} else {
|
||||||
|
layer_off(_RAISE);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case ADJUST:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
layer_on(_ADJUST);
|
||||||
|
} else {
|
||||||
|
layer_off(_ADJUST);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
RGBLIGHT_ENABLE = yes
|
||||||
|
|
||||||
|
ifndef QUANTUM_DIR
|
||||||
|
include ../../../../Makefile
|
||||||
|
endif
|
@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 Danny Nguyen <danny@hexwire.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef CONFIG_USER_H
|
||||||
|
#define CONFIG_USER_H
|
||||||
|
|
||||||
|
#include "../../config.h"
|
||||||
|
|
||||||
|
/* Use I2C or Serial, not both */
|
||||||
|
|
||||||
|
#define USE_SERIAL
|
||||||
|
// #define USE_I2C
|
||||||
|
|
||||||
|
/* Select hand configuration */
|
||||||
|
|
||||||
|
#define MASTER_LEFT
|
||||||
|
// #define _MASTER_RIGHT
|
||||||
|
// #define EE_HANDS
|
||||||
|
|
||||||
|
#define TAPPING_TERM 150
|
||||||
|
|
||||||
|
#undef RGBLED_NUM
|
||||||
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
#define RGBLED_NUM 12
|
||||||
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
|
#define RGBLIGHT_SAT_STEP 8
|
||||||
|
#define RGBLIGHT_VAL_STEP 8
|
||||||
|
|
||||||
|
#endif
|
@ -0,0 +1,83 @@
|
|||||||
|
#include "viterbi.h"
|
||||||
|
#include "action_layer.h"
|
||||||
|
#include "eeconfig.h"
|
||||||
|
|
||||||
|
extern keymap_config_t keymap_config;
|
||||||
|
|
||||||
|
#define _QWERTY 0
|
||||||
|
#define _FN 1
|
||||||
|
|
||||||
|
enum custom_keycodes {
|
||||||
|
QWERTY = SAFE_RANGE,
|
||||||
|
FN,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define KC_ KC_TRNS
|
||||||
|
#define _______ KC_TRNS
|
||||||
|
|
||||||
|
#define KC_SWIN LGUI(KC_TILD) // Switch between windows
|
||||||
|
#define KC_SAPP LGUI(KC_TAB) // Switch between applications
|
||||||
|
#define KC_FN1 MO(_FN)
|
||||||
|
#define KC_LCAG LCAG(KC_NO)
|
||||||
|
#define KC_RVAD RGB_VAD
|
||||||
|
#define KC_RVAI RGB_VAI
|
||||||
|
#define KC_CLRM KC_NO // TODO: Clear sticky modifiers
|
||||||
|
#define KC_RST RESET
|
||||||
|
|
||||||
|
// TODO: Make modifiers sticky
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[_QWERTY] = KC_KEYMAP(
|
||||||
|
//,----+----+----+----+----+----+----. ,----+----+----+----+----+----+----.
|
||||||
|
GRV , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,MINS,EQL ,BSPC,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
TAB , Q , W , E , R , T ,LBRC, Y , U , I , O , P ,BSLS,PGUP,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
ESC , A , S , D , F , G ,RBRC, H , J , K , L ,SCLN,QUOT,ENT ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
LSFT, Z , X , C , V , B ,SWIN, N , M ,COMM,DOT , UP ,SLSH,RSFT,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
LCTL,LCAG,LALT,LGUI,SPC ,CLRM,SAPP, FN1 ,SPC ,RGUI,LEFT,DOWN,RGHT,PGDN
|
||||||
|
//`----+----+----+----+----+----+----' `----+----+----+----+----+----+----'
|
||||||
|
),
|
||||||
|
|
||||||
|
[_FN] = KC_KEYMAP(
|
||||||
|
//,----+----+----+----+----+----+----. ,----+----+----+----+----+----+----.
|
||||||
|
, F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F11 ,F12 , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
, , , ,RST , , , , , , , , , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
, , , , , , , , ,RVAD,RVAI, , , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
, , , , , , , ,MUTE,VOLD,VOLU, , , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
, , , , , , , , , , , , ,
|
||||||
|
//`----+----+----+----+----+----+----' `----+----+----+----+----+----+----'
|
||||||
|
)
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
float tone_qwerty[][2] = SONG(QWERTY_SOUND);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void persistent_default_layer_set(uint16_t default_layer) {
|
||||||
|
eeconfig_update_default_layer(default_layer);
|
||||||
|
default_layer_set(default_layer);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case QWERTY:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
PLAY_NOTE_ARRAY(tone_qwerty, false, 0);
|
||||||
|
#endif
|
||||||
|
persistent_default_layer_set(1UL<<_QWERTY);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
RGBLIGHT_ENABLE = yes
|
||||||
|
|
||||||
|
ifndef QUANTUM_DIR
|
||||||
|
include ../../../../Makefile
|
||||||
|
endif
|
@ -0,0 +1,116 @@
|
|||||||
|
Hexwire's Nyquist Layout
|
||||||
|
============================
|
||||||
|
|
||||||
|
### Changes from default layout
|
||||||
|
|
||||||
|
- Main layer
|
||||||
|
- The right space bar key has been changed to backspace, as I only hit space with my left thumb
|
||||||
|
- Backtick is at the lower right and also serves goes to the 3rd function layer when held
|
||||||
|
- Enter key acts as shift when held
|
||||||
|
- Escape key acts as control when held
|
||||||
|
- Minus key at upper right
|
||||||
|
- Lower layer
|
||||||
|
- Numbers are on the lower layer, to make it easier to use a numpad on the right hand
|
||||||
|
- Arrow keys
|
||||||
|
- Straight and curly brackets in the middle two columns
|
||||||
|
- Screenshot keys for MacOS
|
||||||
|
- Upper layer
|
||||||
|
- Symbols are on the upper layer
|
||||||
|
- Media keys
|
||||||
|
- Page Up/Down, Home/End
|
||||||
|
- 3rd function layer
|
||||||
|
- Function keys
|
||||||
|
|
||||||
|
## Layouts
|
||||||
|
|
||||||
|
### QWERTY
|
||||||
|
|
||||||
|
```
|
||||||
|
,----+----+----+----+----+----. ,----+----+----+----+----+----.
|
||||||
|
|ESC , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,BSPC|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
|TAB , Q , W , E , R , T , Y , U , I , O , P ,MINS|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| X0 , A , S , D , F , G , H , J , K , L ,SCLN,QUOT|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
|LSFT, Z , X , C , V , B , N , M ,COMM,DOT ,SLSH, X4 |
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| X3 ,LCTL,LALT,LGUI, X1 ,SPC , BSPC, X2 ,LEFT,DOWN, UP ,RGHT|
|
||||||
|
`----+----+----+----+----+----' `----+----+----+----+----+----'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Colemak
|
||||||
|
```
|
||||||
|
,----+----+----+----+----+----. ,----+----+----+----+----+----.
|
||||||
|
|ESC , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,BSPC|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
|TAB , Q , W , F , P , G , J , L , U , Y ,SCLN,MINS|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| X0 , A , R , S , T , D , H , N , E , I , O ,QUOT|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
|LSFT, Z , X , C , V , B , K , M ,COMM,DOT ,SLSH, X4 |
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| X3 ,LCTL,LALT,LGUI, X1 ,SPC , BSPC, X2 ,LEFT,DOWN, UP ,RGHT|
|
||||||
|
`----+----+----+----+----+----' `----+----+----+----+----+----'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Dvorak
|
||||||
|
```
|
||||||
|
,----+----+----+----+----+----. ,----+----+----+----+----+----.
|
||||||
|
|ESC , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,BSPC|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
|TAB ,QUOT,COMM,DOT , P , Y , F , G , C , R , L ,MINS|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| X0 , A , O , E , U , I , D , H , T , N , S ,SLSH|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
|LSFT,SCLN, Q , J , K , X , B , M , W , V , Z , X4 |
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| X3 ,LCTL,LALT,LGUI, X1 ,SPC , BSPC, X2 ,LEFT,DOWN, UP ,RGHT|
|
||||||
|
`----+----+----+----+----+----' `----+----+----+----+----+----'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Lower
|
||||||
|
```
|
||||||
|
,----+----+----+----+----+----. ,----+----+----+----+----+----.
|
||||||
|
|TILD,EXLM, AT ,HASH,DLR ,PERC, CIRC,AMPR,ASTR,LPRN,RPRN,BSPC|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 , |
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
|DEL ,CAPP,LEFT,RGHT, UP ,LBRC, RBRC, P4 , P5 , P6 ,PLUS,PIPE|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| ,CPYP, , ,DOWN,LCBR, RCBR, P1 , P2 , P3 ,MINS, |
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| , , , , , , DEL , , P0 ,PDOT, , |
|
||||||
|
`----+----+----+----+----+----' `----+----+----+----+----+----'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Raise
|
||||||
|
```
|
||||||
|
,----+----+----+----+----+----. ,----+----+----+----+----+----.
|
||||||
|
|TILD,EXLM, AT ,HASH,DLR ,PERC, CIRC,AMPR,ASTR,LPRN,RPRN,BSPC|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| ,EXLM, AT ,HASH,DLR ,PERC, CIRC,AMPR,ASTR,LPRN,RPRN, |
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
|DEL ,MPRV,MNXT,VOLU,PGUP,UNDS, EQL ,HOME, , , ,BSLS|
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
|MUTE,MSTP,MPLY,VOLD,PGDN,MINS, PLUS,END , , , , |
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| , , , , , , , , , , , |
|
||||||
|
`----+----+----+----+----+----' `----+----+----+----+----+----'
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3rd function layer
|
||||||
|
|
||||||
|
```
|
||||||
|
,----+----+----+----+----+----. ,----+----+----+----+----+----.
|
||||||
|
|F12 , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F11 |
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| , , , , , , , , , , , |
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| , , , , , , , , , , , |
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| , , , , , , , , , , , |
|
||||||
|
|----+----+----+----+----+----| |----+----+----+----+----+----|
|
||||||
|
| , , , , , , , , , , , |
|
||||||
|
`----+----+----+----+----+----' `----+----+----+----+----+----'
|
||||||
|
```
|
@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 Danny Nguyen <danny@hexwire.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef CONFIG_USER_H
|
||||||
|
#define CONFIG_USER_H
|
||||||
|
|
||||||
|
#include "../../config.h"
|
||||||
|
|
||||||
|
/* Use I2C or Serial, not both */
|
||||||
|
|
||||||
|
#define USE_SERIAL
|
||||||
|
// #define USE_I2C
|
||||||
|
|
||||||
|
/* Select hand configuration */
|
||||||
|
|
||||||
|
#define MASTER_LEFT
|
||||||
|
// #define _MASTER_RIGHT
|
||||||
|
// #define EE_HANDS
|
||||||
|
|
||||||
|
#define TAPPING_TERM 150
|
||||||
|
|
||||||
|
#undef RGBLED_NUM
|
||||||
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
#define RGBLED_NUM 12
|
||||||
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
|
#define RGBLIGHT_SAT_STEP 8
|
||||||
|
#define RGBLIGHT_VAL_STEP 8
|
||||||
|
|
||||||
|
#endif
|
@ -0,0 +1,218 @@
|
|||||||
|
#include "viterbi.h"
|
||||||
|
#include "action_layer.h"
|
||||||
|
#include "eeconfig.h"
|
||||||
|
|
||||||
|
extern keymap_config_t keymap_config;
|
||||||
|
|
||||||
|
#define _QWERTY 0
|
||||||
|
#define _COLEMAK 1
|
||||||
|
#define _DVORAK 2
|
||||||
|
#define _LOWER 3
|
||||||
|
#define _RAISE 4
|
||||||
|
#define _FN3 5
|
||||||
|
#define _FN4 6
|
||||||
|
#define _ADJUST 16
|
||||||
|
|
||||||
|
enum custom_keycodes {
|
||||||
|
QWERTY = SAFE_RANGE,
|
||||||
|
COLEMAK,
|
||||||
|
DVORAK,
|
||||||
|
LOWER,
|
||||||
|
RAISE,
|
||||||
|
FN3,
|
||||||
|
FN4,
|
||||||
|
ADJUST,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define KC_ KC_TRNS
|
||||||
|
#define _______ KC_TRNS
|
||||||
|
|
||||||
|
#define KC_CAPW LGUI(LSFT(KC_3)) // Capture whole screen
|
||||||
|
#define KC_CPYW LGUI(LSFT(LCTL(KC_3))) // Copy whole screen
|
||||||
|
#define KC_CAPP LGUI(LSFT(KC_4)) // Capture portion of screen
|
||||||
|
#define KC_CPYP LGUI(LSFT(LCTL(KC_4))) // Copy portion of screen
|
||||||
|
#define KC_X0 MT(MOD_LCTL, KC_ESC)
|
||||||
|
#define KC_X1 LOWER
|
||||||
|
#define KC_X2 RAISE
|
||||||
|
#define KC_X3 LT(_FN3, KC_GRV)
|
||||||
|
#define KC_X4 MT(MOD_LSFT, KC_ENT)
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[_QWERTY] = KC_KEYMAP(
|
||||||
|
//,----+----+----+----+----+----+----. ,----+----+----+----+----+----+----.
|
||||||
|
ESC , 1 , 2 , 3 , 4 , 5 , , 6 , 7 , 8 , 9 , 0 ,BSPC, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
TAB , Q , W , E , R , T , , Y , U , I , O , P ,MINS, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
X0 , A , S , D , F , G , , H , J , K , L ,SCLN,QUOT, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
LSFT, Z , X , C , V , B , , N , M ,COMM,DOT ,SLSH, X4 , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
X3 ,LCTL,LALT,LGUI, X1 ,SPC , , BSPC, X2 ,LEFT,DOWN, UP ,RGHT,
|
||||||
|
//`----+----+----+----+----+----+----' `----+----+----+----+----+----+----'
|
||||||
|
),
|
||||||
|
|
||||||
|
[_COLEMAK] = KC_KEYMAP(
|
||||||
|
//,----+----+----+----+----+----+----. ,----+----+----+----+----+----+----.
|
||||||
|
ESC , 1 , 2 , 3 , 4 , 5 , , 6 , 7 , 8 , 9 , 0 ,BSPC, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
TAB , Q , W , F , P , G , , J , L , U , Y ,SCLN,MINS, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
X0 , A , R , S , T , D , , H , N , E , I , O ,QUOT, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
LSFT, Z , X , C , V , B , , K , M ,COMM,DOT ,SLSH, X4 , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
X3 ,LCTL,LALT,LGUI, X1 ,SPC , , BSPC, X2 ,LEFT,DOWN, UP ,RGHT,
|
||||||
|
//`----+----+----+----+----+----+----' `----+----+----+----+----+----+----'
|
||||||
|
),
|
||||||
|
|
||||||
|
[_DVORAK] = KC_KEYMAP(
|
||||||
|
//,----+----+----+----+----+----+----. ,----+----+----+----+----+----+----.
|
||||||
|
ESC , 1 , 2 , 3 , 4 , 5 , , 6 , 7 , 8 , 9 , 0 ,BSPC, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
TAB ,QUOT,COMM,DOT , P , Y , , F , G , C , R , L ,MINS, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
X0 , A , O , E , U , I , , D , H , T , N , S ,SLSH, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
LSFT,SCLN, Q , J , K , X , , B , M , W , V , Z , X4 , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
X3 ,LCTL,LALT,LGUI, X1 ,SPC , , BSPC, X2 ,LEFT,DOWN, UP ,RGHT,
|
||||||
|
//`----+----+----+----+----+----+----' `----+----+----+----+----+----+----'
|
||||||
|
),
|
||||||
|
|
||||||
|
[_LOWER] = KC_KEYMAP(
|
||||||
|
//,----+----+----+----+----+----+----. ,----+----+----+----+----+----+----.
|
||||||
|
TILD,EXLM, AT ,HASH,DLR ,PERC, , CIRC,AMPR,ASTR,LPRN,RPRN,BSPC, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
, 1 , 2 , 3 , 4 , 5 , , 6 , 7 , 8 , 9 , 0 , , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
DEL ,CAPP,LEFT,RGHT, UP ,LBRC, , RBRC, P4 , P5 , P6 ,PLUS,PIPE, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
,CPYP, , ,DOWN,LCBR, , RCBR, P1 , P2 , P3 ,MINS, , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
, , , , , , , DEL , , P0 ,PDOT, , ,
|
||||||
|
//`----+----+----+----+----+----+----' `----+----+----+----+----+----+----'
|
||||||
|
),
|
||||||
|
|
||||||
|
[_RAISE] = KC_KEYMAP(
|
||||||
|
//,----+----+----+----+----+----+----. ,----+----+----+----+----+----+----.
|
||||||
|
TILD,EXLM, AT ,HASH,DLR ,PERC, , CIRC,AMPR,ASTR,LPRN,RPRN,BSPC, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
,EXLM, AT ,HASH,DLR ,PERC, , CIRC,AMPR,ASTR,LPRN,RPRN, , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
DEL ,MPRV,MNXT,VOLU,PGUP,UNDS, , EQL ,HOME, , , ,BSLS, ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
MUTE,MSTP,MPLY,VOLD,PGDN,MINS, , PLUS,END , , , , , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
, , , , , , , , , , , , ,
|
||||||
|
//`----+----+----+----+----+----+----' `----+----+----+----+----+----+----'
|
||||||
|
),
|
||||||
|
|
||||||
|
[_FN3] = KC_KEYMAP(
|
||||||
|
//,----+----+----+----+----+----+----. ,----+----+----+----+----+----+----.
|
||||||
|
F12 , F1 , F2 , F3 , F4 , F5 , , F6 , F7 , F8 , F9 ,F10 ,F11 , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
, , , , , , , , , , , , , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
, , , , , , , , , , , , , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
, , , , , , , , , , , , , ,
|
||||||
|
//|----+----+----+----+----+----+----| |----+----+----+----+----+----+----|
|
||||||
|
, , , , , , , , , , , , ,
|
||||||
|
//`----+----+----+----+----+----+----' `----+----+----+----+----+----+----'
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Adjust (Lower + Raise)
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | | Reset|RGB Tg|RGB Md|Hue Up|Hue Dn|Sat Up|Sat Dn|Val Up|Val Dn| | |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | | | |Aud on|Audoff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | | | |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | | | | | | | | | | |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_ADJUST] = KEYMAP( \
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, RESET , RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
float tone_qwerty[][2] = SONG(QWERTY_SOUND);
|
||||||
|
float tone_dvorak[][2] = SONG(DVORAK_SOUND);
|
||||||
|
float tone_colemak[][2] = SONG(COLEMAK_SOUND);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void persistent_default_layer_set(uint16_t default_layer) {
|
||||||
|
eeconfig_update_default_layer(default_layer);
|
||||||
|
default_layer_set(default_layer);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case QWERTY:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
PLAY_NOTE_ARRAY(tone_qwerty, false, 0);
|
||||||
|
#endif
|
||||||
|
persistent_default_layer_set(1UL<<_QWERTY);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case COLEMAK:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
PLAY_NOTE_ARRAY(tone_colemak, false, 0);
|
||||||
|
#endif
|
||||||
|
persistent_default_layer_set(1UL<<_COLEMAK);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case DVORAK:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
PLAY_NOTE_ARRAY(tone_dvorak, false, 0);
|
||||||
|
#endif
|
||||||
|
persistent_default_layer_set(1UL<<_DVORAK);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case LOWER:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
layer_on(_LOWER);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
} else {
|
||||||
|
layer_off(_LOWER);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case RAISE:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
layer_on(_RAISE);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
} else {
|
||||||
|
layer_off(_RAISE);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case ADJUST:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
layer_on(_ADJUST);
|
||||||
|
} else {
|
||||||
|
layer_off(_ADJUST);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
@ -1 +0,0 @@
|
|||||||
#include "nyquist.h"
|
|
@ -1,26 +0,0 @@
|
|||||||
#ifndef NYQUIST_H
|
|
||||||
#define NYQUIST_H
|
|
||||||
|
|
||||||
#ifdef SUBPROJECT_rev1
|
|
||||||
#include "rev1.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Used to create a keymap using only KC_ prefixed keys
|
|
||||||
#define KC_KEYMAP( \
|
|
||||||
L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
|
|
||||||
L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
|
|
||||||
L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
|
|
||||||
L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35, \
|
|
||||||
L40, L41, L42, L43, L44, L45, R40, R41, R42, R43, R44, R45 \
|
|
||||||
) \
|
|
||||||
KEYMAP( \
|
|
||||||
KC_##L00, KC_##L01, KC_##L02, KC_##L03, KC_##L04, KC_##L05, KC_##R00, KC_##R01, KC_##R02, KC_##R03, KC_##R04, KC_##R05, \
|
|
||||||
KC_##L10, KC_##L11, KC_##L12, KC_##L13, KC_##L14, KC_##L15, KC_##R10, KC_##R11, KC_##R12, KC_##R13, KC_##R14, KC_##R15, \
|
|
||||||
KC_##L20, KC_##L21, KC_##L22, KC_##L23, KC_##L24, KC_##L25, KC_##R20, KC_##R21, KC_##R22, KC_##R23, KC_##R24, KC_##R25, \
|
|
||||||
KC_##L30, KC_##L31, KC_##L32, KC_##L33, KC_##L34, KC_##L35, KC_##R30, KC_##R31, KC_##R32, KC_##R33, KC_##R34, KC_##R35, \
|
|
||||||
KC_##L40, KC_##L41, KC_##L42, KC_##L43, KC_##L44, KC_##L45, KC_##R40, KC_##R41, KC_##R42, KC_##R43, KC_##R44, KC_##R45 \
|
|
||||||
)
|
|
||||||
|
|
||||||
#include "quantum.h"
|
|
||||||
|
|
||||||
#endif
|
|
@ -1,169 +1,24 @@
|
|||||||
The Nyquist Keyboard
|
Viterbi
|
||||||
====================
|
=======
|
||||||
|
|
||||||
The Nyquist is a 60% split ortholinear board by [Keebio](https://keeb.io). It has been designed in a similar manner to the Let's Split v2 by /u/wootpatoot. Each half of the keyboard is arranged in a 5x6 grid. There is an option to use a 2u key with PCB mounted MX stablizers, in place of the two innermost 1u keys on the bottom row.
|
A split 5x14 ortholinear keyboard kit made and sold by Keebio. [More info at Keebio](https://keeb.io)
|
||||||
|
|
||||||
|
Keyboard Maintainer: [Bakingpy](https://github.com/nooges)
|
||||||
|
|
||||||
## Build Guide
|
Hardware Supported: Pro Micro
|
||||||
|
|
||||||
A build log of the Nyquist can be found here: [Nyquist Build Log](http://imgur.com/a/dD4sX).
|
Hardware Availability: [Keebio](https://keeb.io)
|
||||||
|
|
||||||
Since the design is very similar to the Let's Split v2, the build guide for that can be used while the build guide for the Nyquist is being fully developed. A build guide for putting together the Let's Split v2 can be found here: [An Overly Verbose Guide to Building a Let's Split Keyboard](https://github.com/nicinabox/lets-split-guide)
|
|
||||||
|
|
||||||
There is additional information there about flashing and adding RGB underglow.
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
## First Time Setup
|
make viterbi-rev1-default
|
||||||
|
|
||||||
Download or clone the whole firmware and navigate to the keyboards/nyquist directory. Once your development environment is setup, you'll be able to generate the default .hex using:
|
|
||||||
|
|
||||||
```
|
Example of flashing this keyboard:
|
||||||
$ make serial
|
|
||||||
```
|
|
||||||
|
|
||||||
You will see a lot of output and if everything worked correctly you will see the built hex file:
|
make viterbi-rev1-default-avrdude
|
||||||
|
|
||||||
```
|
See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information.
|
||||||
nyquist_rev1_serial.hex
|
|
||||||
```
|
|
||||||
|
|
||||||
If you would like to use one of the alternative keymaps, or create your own, copy one of the existing [keymaps](keymaps/) and run make like so:
|
A build guide for this keyboard can be found here: [Viterbi Build Guide](https://docs.keeb.io)
|
||||||
|
|
||||||
|
|
||||||
```
|
|
||||||
$ make YOUR_KEYMAP_NAME
|
|
||||||
```
|
|
||||||
|
|
||||||
If everything worked correctly you will see a file:
|
|
||||||
|
|
||||||
```
|
|
||||||
nyquist_rev1_YOUR_KEYMAP_NAME.hex
|
|
||||||
```
|
|
||||||
|
|
||||||
For more information on customizing keymaps, take a look at the primary documentation for [Customizing Your Keymap](/readme.md##customizing-your-keymap) in the main readme.md.
|
|
||||||
|
|
||||||
Features
|
|
||||||
--------
|
|
||||||
|
|
||||||
For the full Quantum Mechanical Keyboard feature list, see [the parent readme.md](/readme.md).
|
|
||||||
|
|
||||||
Some features supported by the firmware:
|
|
||||||
|
|
||||||
* Either half can connect to the computer via USB, or both halves can be used
|
|
||||||
independently.
|
|
||||||
* You only need 3 wires to connect the two halves. Two for VCC and GND and one
|
|
||||||
for serial communication.
|
|
||||||
* Optional support for I2C connection between the two halves if for some
|
|
||||||
reason you require a faster connection between the two halves. Note this
|
|
||||||
requires an extra wire between halves and pull-up resistors on the data lines.
|
|
||||||
|
|
||||||
### 2u Support
|
|
||||||
In place of the two innermost 1u keys on the bottom row, a single 2u key can be used. If you choose to use this option, then in your keymap, set the innermost key on the bottom row to what you want the 2u key to be. For example, if using the 2u key on the left half of the board, set the keycode for the lower right key.
|
|
||||||
|
|
||||||
Required Hardware
|
|
||||||
-----------------
|
|
||||||
|
|
||||||
Apart from diodes and key switches for the keyboard matrix in each half, you
|
|
||||||
will need:
|
|
||||||
|
|
||||||
* 2 Arduino Pro Micro's. You can find theses on aliexpress for ≈3.50USD each.
|
|
||||||
* 2 TRRS sockets and 1 TRRS cable, or 2 TRS sockets and 1 TRS cable
|
|
||||||
|
|
||||||
Alternatively, you can use any sort of cable and socket that has at least 3
|
|
||||||
wires. If you want to use I2C to communicate between halves, you will need a
|
|
||||||
cable with at least 4 wires and 2x 4.7kΩ pull-up resistors
|
|
||||||
|
|
||||||
Optional Hardware
|
|
||||||
-----------------
|
|
||||||
|
|
||||||
A speaker can be hooked-up to either side to the `5` (`C6`) pin and `GND`, and turned on via `AUDIO_ENABLE`.
|
|
||||||
|
|
||||||
Wiring
|
|
||||||
------
|
|
||||||
|
|
||||||
The 3 wires of the TRS/TRRS cable need to connect GND, VCC, and digital pin 3 (i.e.
|
|
||||||
PD0 on the ATmega32u4) between the two Pro Micros.
|
|
||||||
|
|
||||||
Then wire your key matrix to any of the remaining 17 IO pins of the pro micro
|
|
||||||
and modify the `matrix.c` accordingly.
|
|
||||||
|
|
||||||
The wiring for serial:
|
|
||||||
|
|
||||||
![serial wiring](http://imgur.com/BnCGU1Y)
|
|
||||||
|
|
||||||
The wiring for i2c:
|
|
||||||
|
|
||||||
![i2c wiring](http://imgur.com/5eiArDA)
|
|
||||||
|
|
||||||
The pull-up resistors may be placed on either half. It is also possible
|
|
||||||
to use 4 resistors and have the pull-ups in both halves, but this is
|
|
||||||
unnecessary in simple use cases.
|
|
||||||
|
|
||||||
Flashing
|
|
||||||
-------
|
|
||||||
From the `nyquist` directory run `make SUBPROJECT-KEYMAP-avrdude` for automatic serial port resolution and flashing.
|
|
||||||
Example: `make rev1-serial-avrdude`
|
|
||||||
|
|
||||||
|
|
||||||
Choosing which board to plug the USB cable into (choosing Master)
|
|
||||||
--------
|
|
||||||
Because the two boards are identical, the firmware has logic to differentiate the left and right board.
|
|
||||||
|
|
||||||
It uses two strategies to figure things out: look at the EEPROM (memory on the chip) or looks if the current board has the usb cable.
|
|
||||||
|
|
||||||
The EEPROM approach requires additional setup (flashing the eeeprom) but allows you to swap the usb cable to either side.
|
|
||||||
|
|
||||||
The USB cable approach is easier to setup and if you just want the usb cable on the left board, you do not need to do anything extra.
|
|
||||||
|
|
||||||
### Setting the left hand as master
|
|
||||||
If you always plug the usb cable into the left board, nothing extra is needed as this is the default. Comment out `EE_HANDS` and comment out `I2C_MASTER_RIGHT` or `MASTER_RIGHT` if for some reason it was set.
|
|
||||||
|
|
||||||
### Setting the right hand as master
|
|
||||||
If you always plug the usb cable into the right board, add an extra flag to your `config.h`
|
|
||||||
```
|
|
||||||
#define MASTER_RIGHT
|
|
||||||
```
|
|
||||||
|
|
||||||
### Setting EE_hands to use either hands as master
|
|
||||||
If you define `EE_HANDS` in your `config.h`, you will need to set the
|
|
||||||
EEPROM for the left and right halves.
|
|
||||||
|
|
||||||
The EEPROM is used to store whether the
|
|
||||||
half is left handed or right handed. This makes it so that the same firmware
|
|
||||||
file will run on both hands instead of having to flash left and right handed
|
|
||||||
versions of the firmware to each half. To flash the EEPROM file for the left
|
|
||||||
half run:
|
|
||||||
```
|
|
||||||
avrdude -p atmega32u4 -P $(COM_PORT) -c avr109 -U eeprom:w:eeprom-lefthand.eep
|
|
||||||
// or the equivalent in dfu-programmer
|
|
||||||
|
|
||||||
```
|
|
||||||
and similarly for right half
|
|
||||||
```
|
|
||||||
avrdude -p atmega32u4 -P $(COM_PORT) -c avr109 -U eeprom:w:eeprom-righhand.eep
|
|
||||||
// or the equivalent in dfu-programmer
|
|
||||||
```
|
|
||||||
|
|
||||||
NOTE: replace `$(COM_PORT)` with the port of your device (e.g. `/dev/ttyACM0`)
|
|
||||||
|
|
||||||
After you have flashed the EEPROM, you then need to set `EE_HANDS` in your config.h, rebuild the hex files and reflash.
|
|
||||||
|
|
||||||
Note that you need to program both halves, but you have the option of using
|
|
||||||
different keymaps for each half. You could program the left half with a QWERTY
|
|
||||||
layout and the right half with a Colemak layout using bootmagic's default layout option.
|
|
||||||
Then if you connect the left half to a computer by USB the keyboard will use QWERTY and Colemak when the
|
|
||||||
right half is connected.
|
|
||||||
|
|
||||||
|
|
||||||
Notes on Using Pro Micro 3.3V
|
|
||||||
-----------------------------
|
|
||||||
|
|
||||||
Do update the `F_CPU` parameter in `rules.mk` to `8000000` which reflects
|
|
||||||
the frequency on the 3.3V board.
|
|
||||||
|
|
||||||
Also, if the slave board is producing weird characters in certain columns,
|
|
||||||
update the following line in `matrix.c` to the following:
|
|
||||||
|
|
||||||
```
|
|
||||||
// _delay_us(30); // without this wait read unstable value.
|
|
||||||
_delay_us(300); // without this wait read unstable value.
|
|
||||||
```
|
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
ifndef MAKEFILE_INCLUDED
|
||||||
|
include ../../Makefile
|
||||||
|
endif
|
@ -0,0 +1,89 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 Danny Nguyen <danny@hexwire.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef REV1_CONFIG_H
|
||||||
|
#define REV1_CONFIG_H
|
||||||
|
|
||||||
|
#include "../config.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xCEEB
|
||||||
|
#define PRODUCT_ID 0x1157
|
||||||
|
#define DEVICE_VER 0x0100
|
||||||
|
#define MANUFACTURER Keebio
|
||||||
|
#define PRODUCT The Viterbi Keyboard
|
||||||
|
#define DESCRIPTION Split 5x14 ortholinear keyboard
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
// Rows are doubled-up
|
||||||
|
#define MATRIX_ROWS 10
|
||||||
|
#define MATRIX_COLS 7
|
||||||
|
|
||||||
|
// wiring of each half
|
||||||
|
#define MATRIX_ROW_PINS { D4, D7, E6, B4, B5 }
|
||||||
|
#define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6, B6 }
|
||||||
|
|
||||||
|
#define CATERINA_BOOTLOADER
|
||||||
|
|
||||||
|
/* COL2ROW or ROW2COL */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
/* define if matrix has ghost */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
/* number of backlight levels */
|
||||||
|
// #define BACKLIGHT_LEVELS 3
|
||||||
|
|
||||||
|
/* Set 0 if debouncing isn't needed */
|
||||||
|
#define DEBOUNCING_DELAY 5
|
||||||
|
|
||||||
|
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
/* Locking resynchronize hack */
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
|
||||||
|
/* key combination for command */
|
||||||
|
#define IS_COMMAND() ( \
|
||||||
|
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
|
||||||
|
)
|
||||||
|
|
||||||
|
/* ws2812 RGB LED */
|
||||||
|
#define RGB_DI_PIN D3
|
||||||
|
#define RGBLIGHT_TIMER
|
||||||
|
#define RGBLED_NUM 16 // Number of LEDs
|
||||||
|
#define ws2812_PORTREG PORTD
|
||||||
|
#define ws2812_DDRREG DDRD
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Feature disable options
|
||||||
|
* These options are also useful to firmware size reduction.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* disable debug print */
|
||||||
|
// #define NO_DEBUG
|
||||||
|
|
||||||
|
/* disable print */
|
||||||
|
// #define NO_PRINT
|
||||||
|
|
||||||
|
/* disable action features */
|
||||||
|
//#define NO_ACTION_LAYER
|
||||||
|
//#define NO_ACTION_TAPPING
|
||||||
|
//#define NO_ACTION_ONESHOT
|
||||||
|
//#define NO_ACTION_MACRO
|
||||||
|
//#define NO_ACTION_FUNCTION
|
||||||
|
|
||||||
|
#endif
|
@ -0,0 +1,39 @@
|
|||||||
|
#include "viterbi.h"
|
||||||
|
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
float tone_startup[][2] = SONG(STARTUP_SOUND);
|
||||||
|
float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef SSD1306OLED
|
||||||
|
void led_set_kb(uint8_t usb_led) {
|
||||||
|
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
||||||
|
led_set_user(usb_led);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void matrix_init_kb(void) {
|
||||||
|
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
_delay_ms(20); // gets rid of tick
|
||||||
|
PLAY_NOTE_ARRAY(tone_startup, false, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// // green led on
|
||||||
|
// DDRD |= (1<<5);
|
||||||
|
// PORTD &= ~(1<<5);
|
||||||
|
|
||||||
|
// // orange led on
|
||||||
|
// DDRB |= (1<<0);
|
||||||
|
// PORTB &= ~(1<<0);
|
||||||
|
|
||||||
|
matrix_init_user();
|
||||||
|
};
|
||||||
|
|
||||||
|
void shutdown_user(void) {
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
|
||||||
|
_delay_ms(150);
|
||||||
|
stop_all_notes();
|
||||||
|
#endif
|
||||||
|
}
|
@ -0,0 +1,66 @@
|
|||||||
|
#ifndef REV1_H
|
||||||
|
#define REV1_H
|
||||||
|
|
||||||
|
#include "../viterbi.h"
|
||||||
|
|
||||||
|
//void promicro_bootloader_jmp(bool program);
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef USE_I2C
|
||||||
|
#include <stddef.h>
|
||||||
|
#ifdef __AVR__
|
||||||
|
#include <avr/io.h>
|
||||||
|
#include <avr/interrupt.h>
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//void promicro_bootloader_jmp(bool program);
|
||||||
|
|
||||||
|
#ifndef FLIP_HALF
|
||||||
|
// Standard Keymap
|
||||||
|
// (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left)
|
||||||
|
#define KEYMAP( \
|
||||||
|
L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \
|
||||||
|
L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \
|
||||||
|
L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \
|
||||||
|
L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, \
|
||||||
|
L40, L41, L42, L43, L44, L45, L46, R40, R41, R42, R43, R44, R45, R46 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ L00, L01, L02, L03, L04, L05, L06 }, \
|
||||||
|
{ L10, L11, L12, L13, L14, L15, L16 }, \
|
||||||
|
{ L20, L21, L22, L23, L24, L25, L26 }, \
|
||||||
|
{ L30, L31, L32, L33, L34, L35, L36 }, \
|
||||||
|
{ L40, L41, L42, L43, L44, L45, L46 }, \
|
||||||
|
{ R06, R05, R04, R03, R02, R01, R00 }, \
|
||||||
|
{ R16, R15, R14, R13, R12, R11, R10 }, \
|
||||||
|
{ R26, R25, R24, R23, R22, R21, R20 }, \
|
||||||
|
{ R36, R35, R34, R33, R32, R31, R30 }, \
|
||||||
|
{ R46, R45, R44, R43, R42, R41, R40 } \
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
// Keymap with right side flipped
|
||||||
|
// (TRRS jack on both halves are to the right)
|
||||||
|
#define KEYMAP( \
|
||||||
|
L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \
|
||||||
|
L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \
|
||||||
|
L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \
|
||||||
|
L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, \
|
||||||
|
L40, L41, L42, L43, L44, L45, L46, R40, R41, R42, R43, R44, R45, R46 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ L00, L01, L02, L03, L04, L05, L06 }, \
|
||||||
|
{ L10, L11, L12, L13, L14, L15, L16 }, \
|
||||||
|
{ L20, L21, L22, L23, L24, L25, L26 }, \
|
||||||
|
{ L30, L31, L32, L33, L34, L35, L36 }, \
|
||||||
|
{ L40, L41, L42, L43, L44, L45, L46 }, \
|
||||||
|
{ R00, R01, R02, R03, R04, R05, R06 }, \
|
||||||
|
{ R10, R11, R12, R13, R14, R15, R16 }, \
|
||||||
|
{ R20, R21, R22, R23, R24, R25, R26 }, \
|
||||||
|
{ R30, R31, R32, R33, R34, R35, R36 }, \
|
||||||
|
{ R40, R41, R42, R43, R44, R45, R46 } \
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
@ -0,0 +1,5 @@
|
|||||||
|
BACKLIGHT_ENABLE = no
|
||||||
|
|
||||||
|
ifndef QUANTUM_DIR
|
||||||
|
include ../../../Makefile
|
||||||
|
endif
|
@ -0,0 +1 @@
|
|||||||
|
#include "viterbi.h"
|
@ -0,0 +1,26 @@
|
|||||||
|
#ifndef VITERBI_H
|
||||||
|
#define VITERBI_H
|
||||||
|
|
||||||
|
#ifdef SUBPROJECT_rev1
|
||||||
|
#include "rev1.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Used to create a keymap using only KC_ prefixed keys
|
||||||
|
#define KC_KEYMAP( \
|
||||||
|
L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \
|
||||||
|
L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \
|
||||||
|
L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \
|
||||||
|
L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, \
|
||||||
|
L40, L41, L42, L43, L44, L45, L46, R40, R41, R42, R43, R44, R45, R46 \
|
||||||
|
) \
|
||||||
|
KEYMAP( \
|
||||||
|
KC_##L00, KC_##L01, KC_##L02, KC_##L03, KC_##L04, KC_##L05, KC_##L06, KC_##R00, KC_##R01, KC_##R02, KC_##R03, KC_##R04, KC_##R05, KC_##R06, \
|
||||||
|
KC_##L10, KC_##L11, KC_##L12, KC_##L13, KC_##L14, KC_##L15, KC_##L16, KC_##R10, KC_##R11, KC_##R12, KC_##R13, KC_##R14, KC_##R15, KC_##R16, \
|
||||||
|
KC_##L20, KC_##L21, KC_##L22, KC_##L23, KC_##L24, KC_##L25, KC_##L26, KC_##R20, KC_##R21, KC_##R22, KC_##R23, KC_##R24, KC_##R25, KC_##R26, \
|
||||||
|
KC_##L30, KC_##L31, KC_##L32, KC_##L33, KC_##L34, KC_##L35, KC_##L36, KC_##R30, KC_##R31, KC_##R32, KC_##R33, KC_##R34, KC_##R35, KC_##R36, \
|
||||||
|
KC_##L40, KC_##L41, KC_##L42, KC_##L43, KC_##L44, KC_##L45, KC_##L46, KC_##R40, KC_##R41, KC_##R42, KC_##R43, KC_##R44, KC_##R45, KC_##R46 \
|
||||||
|
)
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue