Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update mlego/m48 to data driven #20223

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions keyboards/mlego/m48/config.h
alinelena marked this conversation as resolved.
Outdated
Show resolved Hide resolved

This file was deleted.

67 changes: 0 additions & 67 deletions keyboards/mlego/m48/info.json

This file was deleted.

18 changes: 2 additions & 16 deletions keyboards/mlego/m48/keymaps/default/config.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
/*
Copyright 2021-2022 Alin M Elena <alinm.elena@gmail.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/>.
*/
// Copyright 2021-2022 alin m elena (@alinelena)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

Expand Down
27 changes: 11 additions & 16 deletions keyboards/mlego/m48/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
/*
Copyright 2021-2022 Alin M Elena <alinm.elena@gmail.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/>.
*/
// Copyright 2021-2022 alin m elena (@alinelena)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

Expand All @@ -34,6 +20,15 @@ const rgblight_segment_t PROGMEM my_adj_layer[] = RGBLIGHT_LAYER_SEGMENTS({0,
const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(my_qwerty_layer, my_lwr_layer, my_rse_layer, my_adj_layer);
#endif

#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[_QW] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[_LWR] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI) },
[_RSE] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
[_ADJ] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD) },
};
#endif

#define LOWER TT(_LWR)
#define RAISE TT(_RSE)

Expand Down
1 change: 1 addition & 0 deletions keyboards/mlego/m48/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes
20 changes: 0 additions & 20 deletions keyboards/mlego/m48/keymaps/via/config.h

This file was deleted.

216 changes: 0 additions & 216 deletions keyboards/mlego/m48/keymaps/via/keymap.c

This file was deleted.

1 change: 0 additions & 1 deletion keyboards/mlego/m48/keymaps/via/rules.mk

This file was deleted.

Loading