summaryrefslogtreecommitdiff
path: root/keyboards/torn/keymaps/default/keymap.c
diff options
context:
space:
mode:
authorRichard Titmuss <richard.titmuss@gmail.com>2021-01-14 06:50:18 +0100
committerGitHub <noreply@github.com>2021-01-13 21:50:18 -0800
commit523c8315a22772fc3e605e21b14821b148c48a09 (patch)
tree3bb64bf9141c742c09e5df885f231d4cd50b286c /keyboards/torn/keymaps/default/keymap.c
parent73235e7ca0295d2a0dc2d12c1e68fcb7a3ea3641 (diff)
[Keyboard] Improvements for the Torn keyboard (#11268)
* Add bongo cat animation * Map all keys on base layer ... to make it easier to test newly built keyboards. The encoders are optional and can be placed in different locations. * Fix Torn in QMK configurator This removes additional variables defined in the keymap.c file, so that the default firmware can be compiled by the configurator. Co-authored-by: Richard Titmuss <richardt@spotify.com>
Diffstat (limited to 'keyboards/torn/keymaps/default/keymap.c')
-rw-r--r--keyboards/torn/keymaps/default/keymap.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/keyboards/torn/keymaps/default/keymap.c b/keyboards/torn/keymaps/default/keymap.c
index 7c91325bdc..b004101895 100644
--- a/keyboards/torn/keymaps/default/keymap.c
+++ b/keyboards/torn/keymaps/default/keymap.c
@@ -42,7 +42,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_QUOT,
KC_GRV, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_LBRC,
KC_BSLS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RBRC ,
- _______, KC_LCTL, S_BSPC, R_DEL, G_ENT, L_SPC, KC_RALT, _______
+ R_DEL, KC_LCTL, S_BSPC, R_DEL, G_ENT, L_SPC, KC_RALT, G_ENT
),
/* Lower
@@ -103,17 +103,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
};
-
-const uint16_t PROGMEM encoder_keymaps[][2][2] = {
- [_QWERTY] = { { C(S(KC_TAB)), C(KC_TAB) }, { KC_PGDN, KC_PGUP } },
- [_LOWER] = { { C(KC_LEFT), C(KC_RGHT) }, { KC__VOLDOWN, KC__VOLUP } },
- [_RAISE] = { { KC_TRNS, KC_TRNS }, { G(KC_TAB), G(S(KC_TAB)) } },
- [_ADJUST] = { { KC_TRNS, KC_TRNS }, { KC_TRNS, KC_TRNS } },
-};
-// clang-format on
-
-layer_state_t layer_state_set_user(layer_state_t state) {
- torn_set_led(0, IS_LAYER_ON_STATE(state, _RAISE));
- torn_set_led(1, IS_LAYER_ON_STATE(state, _LOWER));
- return state;
-}