From be525c3878401971e402c0b49a1f09c3a18235d8 Mon Sep 17 00:00:00 2001 From: shotaCoffee Date: Mon, 9 Dec 2024 15:27:25 +0900 Subject: [PATCH] feat: via my --- .../keymaps/{myapp => viamy}/config.h | 18 ++++++------ .../keymaps/{myapp => viamy}/keymap.c | 29 +++++++++---------- .../keymaps/{myapp => viamy}/rules.mk | 2 ++ 3 files changed, 25 insertions(+), 24 deletions(-) rename qmk_firmware/keyboards/keyball/keyball39/keymaps/{myapp => viamy}/config.h (72%) rename qmk_firmware/keyboards/keyball/keyball39/keymaps/{myapp => viamy}/keymap.c (72%) rename qmk_firmware/keyboards/keyball/keyball39/keymaps/{myapp => viamy}/rules.mk (68%) diff --git a/qmk_firmware/keyboards/keyball/keyball39/keymaps/myapp/config.h b/qmk_firmware/keyboards/keyball/keyball39/keymaps/viamy/config.h similarity index 72% rename from qmk_firmware/keyboards/keyball/keyball39/keymaps/myapp/config.h rename to qmk_firmware/keyboards/keyball/keyball39/keymaps/viamy/config.h index ec062cf45..9736eae89 100644 --- a/qmk_firmware/keyboards/keyball/keyball39/keymaps/myapp/config.h +++ b/qmk_firmware/keyboards/keyball/keyball39/keymaps/viamy/config.h @@ -21,16 +21,16 @@ along with this program. If not, see . #pragma once #ifdef RGBLIGHT_ENABLE -# define RGBLIGHT_EFFECT_BREATHING -# define RGBLIGHT_EFFECT_RAINBOW_MOOD -# define RGBLIGHT_EFFECT_RAINBOW_SWIRL -# define RGBLIGHT_EFFECT_SNAKE -# define RGBLIGHT_EFFECT_KNIGHT -# define RGBLIGHT_EFFECT_CHRISTMAS +//# define RGBLIGHT_EFFECT_BREATHING +//# define RGBLIGHT_EFFECT_RAINBOW_MOOD +//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL +//# define RGBLIGHT_EFFECT_SNAKE +//# define RGBLIGHT_EFFECT_KNIGHT +//# define RGBLIGHT_EFFECT_CHRISTMAS # define RGBLIGHT_EFFECT_STATIC_GRADIENT -# define RGBLIGHT_EFFECT_RGB_TEST -# define RGBLIGHT_EFFECT_ALTERNATING -# define RGBLIGHT_EFFECT_TWINKLE +//# define RGBLIGHT_EFFECT_RGB_TEST +//# define RGBLIGHT_EFFECT_ALTERNATING +//# define RGBLIGHT_EFFECT_TWINKLE #endif #define TAP_CODE_DELAY 5 diff --git a/qmk_firmware/keyboards/keyball/keyball39/keymaps/myapp/keymap.c b/qmk_firmware/keyboards/keyball/keyball39/keymaps/viamy/keymap.c similarity index 72% rename from qmk_firmware/keyboards/keyball/keyball39/keymaps/myapp/keymap.c rename to qmk_firmware/keyboards/keyball/keyball39/keymaps/viamy/keymap.c index 16b819cbe..2658ac996 100644 --- a/qmk_firmware/keyboards/keyball/keyball39/keymaps/myapp/keymap.c +++ b/qmk_firmware/keyboards/keyball/keyball39/keymaps/viamy/keymap.c @@ -22,7 +22,7 @@ along with this program. If not, see . // clang-format off const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - // keymap for default + // keymap for default (VIA) [0] = LAYOUT_universal( KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_MINS , @@ -52,32 +52,31 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { ), [4] = LAYOUT_universal( - _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , - _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , - _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , - _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ + RGB_TOG , AML_TO , AML_I50 , AML_D50 , _______ , _______ , _______ , SSNP_HOR , SSNP_VRT , SSNP_FRE , + RGB_MOD , RGB_HUI , RGB_SAI , RGB_VAI , SCRL_DVI , _______ , _______ , _______ , _______ , _______ , + RGB_RMOD , RGB_HUD , RGB_SAD , RGB_VAD , SCRL_DVD , CPI_D1K , CPI_D100 , CPI_I100 , CPI_I1K , KBC_SAVE , + QK_BOOT , KBC_RST , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , KBC_RST , QK_BOOT ), [5] = LAYOUT_universal( - _______ , _______ , _______ , _______ , _______ , _______ , SCRL_DVI , CPI_I100 , _______ , RGB_TOG , - _______ , _______ , _______ , _______ , _______ , SCRL_DVD , CPI_D100 , _______ , _______ , _______ , - _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , - _______ , _______ , _______ , _______ , _______ , _______ , _______ , KBC_RST , _______ , _______ , _______ , _______ + RGB_TOG , AML_TO , AML_I50 , AML_D50 , _______ , _______ , _______ , SSNP_HOR , SSNP_VRT , SSNP_FRE , + RGB_MOD , RGB_HUI , RGB_SAI , RGB_VAI , SCRL_DVI , _______ , _______ , _______ , _______ , _______ , + RGB_RMOD , RGB_HUD , RGB_SAD , RGB_VAD , SCRL_DVD , CPI_D1K , CPI_D100 , CPI_I100 , CPI_I1K , KBC_SAVE , + QK_BOOT , KBC_RST , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , KBC_RST , QK_BOOT ), [6] = LAYOUT_universal( - _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , - KC_LALT , KC_LSFT , _______ ,KC_MS_BTN1, _______ , _______ ,KC_MS_BTN1,KC_MS_BTN3,KC_MS_BTN2, _______ , - _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , - _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ - ) + RGB_TOG , AML_TO , AML_I50 , AML_D50 , _______ , _______ , _______ , SSNP_HOR , SSNP_VRT , SSNP_FRE , + RGB_MOD , RGB_HUI , RGB_SAI , RGB_VAI , SCRL_DVI , _______ , _______ , _______ , _______ , _______ , + RGB_RMOD , RGB_HUD , RGB_SAD , RGB_VAD , SCRL_DVD , CPI_D1K , CPI_D100 , CPI_I100 , CPI_I1K , KBC_SAVE , + QK_BOOT , KBC_RST , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , KBC_RST , QK_BOOT + ), }; // clang-format on layer_state_t layer_state_set_user(layer_state_t state) { // Auto enable scroll mode when the highest layer is 3 // keyball_set_scroll_mode(get_highest_layer(state) == 3); - // 自動スクロール有効化 keyball_set_scroll_mode(get_highest_layer(state) == 1 || get_highest_layer(state) == 3); return state; } diff --git a/qmk_firmware/keyboards/keyball/keyball39/keymaps/myapp/rules.mk b/qmk_firmware/keyboards/keyball/keyball39/keymaps/viamy/rules.mk similarity index 68% rename from qmk_firmware/keyboards/keyball/keyball39/keymaps/myapp/rules.mk rename to qmk_firmware/keyboards/keyball/keyball39/keymaps/viamy/rules.mk index a1dc59227..7ca4f9c37 100644 --- a/qmk_firmware/keyboards/keyball/keyball39/keymaps/myapp/rules.mk +++ b/qmk_firmware/keyboards/keyball/keyball39/keymaps/viamy/rules.mk @@ -1,3 +1,5 @@ RGBLIGHT_ENABLE = no OLED_ENABLE = yes + +VIA_ENABLE = yes