From 0bda9af390bdf6aaee9e413c4b98ff6b52960fd5 Mon Sep 17 00:00:00 2001 From: MakotoKurauchi Date: Wed, 20 Oct 2021 16:49:45 +0900 Subject: [PATCH 1/3] add keymap via for meishi2 --- keyboards/meishi2/keymaps/via/config.h | 19 ++++++++++++++++ keyboards/meishi2/keymaps/via/keymap.c | 31 ++++++++++++++++++++++++++ keyboards/meishi2/keymaps/via/rules.mk | 3 +++ 3 files changed, 53 insertions(+) create mode 100644 keyboards/meishi2/keymaps/via/config.h create mode 100644 keyboards/meishi2/keymaps/via/keymap.c create mode 100644 keyboards/meishi2/keymaps/via/rules.mk diff --git a/keyboards/meishi2/keymaps/via/config.h b/keyboards/meishi2/keymaps/via/config.h new file mode 100644 index 000000000000..4e23fe7b1414 --- /dev/null +++ b/keyboards/meishi2/keymaps/via/config.h @@ -0,0 +1,19 @@ +/* Copyright 2019 Biacco42 + * + * 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 . + */ + +#pragma once + +// place overrides here diff --git a/keyboards/meishi2/keymaps/via/keymap.c b/keyboards/meishi2/keymaps/via/keymap.c new file mode 100644 index 000000000000..e984d989784f --- /dev/null +++ b/keyboards/meishi2/keymaps/via/keymap.c @@ -0,0 +1,31 @@ +/* Copyright 2019 Biacco42 + * + * 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 . + */ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( /* Base */ + LCTL(KC_Z), LCTL(KC_X), LCTL(KC_C), LCTL(KC_V) \ + ), + [1] = LAYOUT( + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \ + ), + [2] = LAYOUT( + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \ + ), + [3] = LAYOUT( + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \ + ), +}; diff --git a/keyboards/meishi2/keymaps/via/rules.mk b/keyboards/meishi2/keymaps/via/rules.mk new file mode 100644 index 000000000000..c859353a464c --- /dev/null +++ b/keyboards/meishi2/keymaps/via/rules.mk @@ -0,0 +1,3 @@ +VIA_ENABLE = yes +CONSOLE_ENABLE = no +COMMAND_ENABLE = no From dfb56a6fa30e36eb8308097cc432151afa9ef92d Mon Sep 17 00:00:00 2001 From: MakotoKurauchi Date: Sat, 23 Oct 2021 16:14:16 +0900 Subject: [PATCH 2/3] delete file --- keyboards/meishi2/keymaps/via/config.h | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 keyboards/meishi2/keymaps/via/config.h diff --git a/keyboards/meishi2/keymaps/via/config.h b/keyboards/meishi2/keymaps/via/config.h deleted file mode 100644 index 4e23fe7b1414..000000000000 --- a/keyboards/meishi2/keymaps/via/config.h +++ /dev/null @@ -1,19 +0,0 @@ -/* Copyright 2019 Biacco42 - * - * 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 . - */ - -#pragma once - -// place overrides here From 74f5df3bd3db969c46befa650c43f80f93fd82e3 Mon Sep 17 00:00:00 2001 From: MakotoKurauchi Date: Sun, 24 Oct 2021 14:22:08 +0900 Subject: [PATCH 3/3] Update keyboards/meishi2/keymaps/via/keymap.c Co-authored-by: Ryan --- keyboards/meishi2/keymaps/via/keymap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keyboards/meishi2/keymaps/via/keymap.c b/keyboards/meishi2/keymaps/via/keymap.c index e984d989784f..be706ea09a63 100644 --- a/keyboards/meishi2/keymaps/via/keymap.c +++ b/keyboards/meishi2/keymaps/via/keymap.c @@ -17,15 +17,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [0] = LAYOUT( /* Base */ - LCTL(KC_Z), LCTL(KC_X), LCTL(KC_C), LCTL(KC_V) \ + LCTL(KC_Z), LCTL(KC_X), LCTL(KC_C), LCTL(KC_V) ), [1] = LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \ + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), [2] = LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \ + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), [3] = LAYOUT( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \ + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), };