Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>pull/22256/head
@ -1,21 +0,0 @@ | |||
/* | |||
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/>. | |||
*/ | |||
#pragma once | |||
#define LOCKING_SUPPORT_ENABLE | |||
#define LOCKING_RESYNC_ENABLE |
@ -1,84 +0,0 @@ | |||
{ | |||
"keyboard_name": "m65", | |||
"manufacturer": "Alin Elena", | |||
"url": "https://gitlab.com/m-lego/m65", | |||
"maintainer": "alin elena", | |||
"usb": { | |||
"vid": "0xBABA" | |||
}, | |||
"layouts": { | |||
"LAYOUT_ortho_5x13": { | |||
"layout": [ | |||
{"matrix": [0, 0], "x": 0, "y": 0}, | |||
{"matrix": [0, 1], "x": 1, "y": 0}, | |||
{"matrix": [0, 2], "x": 2, "y": 0}, | |||
{"matrix": [0, 3], "x": 3, "y": 0}, | |||
{"matrix": [0, 4], "x": 4, "y": 0}, | |||
{"matrix": [0, 5], "x": 5, "y": 0}, | |||
{"matrix": [0, 6], "x": 6, "y": 0}, | |||
{"matrix": [0, 7], "x": 7, "y": 0}, | |||
{"matrix": [0, 8], "x": 8, "y": 0}, | |||
{"matrix": [0, 9], "x": 9, "y": 0}, | |||
{"matrix": [0, 10], "x": 10, "y": 0}, | |||
{"matrix": [0, 11], "x": 11, "y": 0}, | |||
{"matrix": [0, 12], "x": 12, "y": 0}, | |||
{"matrix": [1, 0], "x": 0, "y": 1}, | |||
{"matrix": [1, 1], "x": 1, "y": 1}, | |||
{"matrix": [1, 2], "x": 2, "y": 1}, | |||
{"matrix": [1, 3], "x": 3, "y": 1}, | |||
{"matrix": [1, 4], "x": 4, "y": 1}, | |||
{"matrix": [1, 5], "x": 5, "y": 1}, | |||
{"matrix": [1, 6], "x": 6, "y": 1}, | |||
{"matrix": [1, 7], "x": 7, "y": 1}, | |||
{"matrix": [1, 8], "x": 8, "y": 1}, | |||
{"matrix": [1, 9], "x": 9, "y": 1}, | |||
{"matrix": [1, 10], "x": 10, "y": 1}, | |||
{"matrix": [1, 11], "x": 11, "y": 1}, | |||
{"matrix": [1, 12], "x": 12, "y": 1}, | |||
{"matrix": [2, 0], "x": 0, "y": 2}, | |||
{"matrix": [2, 1], "x": 1, "y": 2}, | |||
{"matrix": [2, 2], "x": 2, "y": 2}, | |||
{"matrix": [2, 3], "x": 3, "y": 2}, | |||
{"matrix": [2, 4], "x": 4, "y": 2}, | |||
{"matrix": [2, 5], "x": 5, "y": 2}, | |||
{"matrix": [2, 6], "x": 6, "y": 2}, | |||
{"matrix": [2, 7], "x": 7, "y": 2}, | |||
{"matrix": [2, 8], "x": 8, "y": 2}, | |||
{"matrix": [2, 9], "x": 9, "y": 2}, | |||
{"matrix": [2, 10], "x": 10, "y": 2}, | |||
{"matrix": [2, 11], "x": 11, "y": 2}, | |||
{"matrix": [2, 12], "x": 12, "y": 2}, | |||
{"matrix": [3, 0], "x": 0, "y": 3}, | |||
{"matrix": [3, 1], "x": 1, "y": 3}, | |||
{"matrix": [3, 2], "x": 2, "y": 3}, | |||
{"matrix": [3, 3], "x": 3, "y": 3}, | |||
{"matrix": [3, 4], "x": 4, "y": 3}, | |||
{"matrix": [3, 5], "x": 5, "y": 3}, | |||
{"matrix": [3, 6], "x": 6, "y": 3}, | |||
{"matrix": [3, 7], "x": 7, "y": 3}, | |||
{"matrix": [3, 8], "x": 8, "y": 3}, | |||
{"matrix": [3, 9], "x": 9, "y": 3}, | |||
{"matrix": [3, 10], "x": 10, "y": 3}, | |||
{"matrix": [3, 11], "x": 11, "y": 3}, | |||
{"matrix": [3, 12], "x": 12, "y": 3}, | |||
{"matrix": [4, 0], "x": 0, "y": 4}, | |||
{"matrix": [4, 1], "x": 1, "y": 4}, | |||
{"matrix": [4, 2], "x": 2, "y": 4}, | |||
{"matrix": [4, 3], "x": 3, "y": 4}, | |||
{"matrix": [4, 4], "x": 4, "y": 4}, | |||
{"matrix": [4, 5], "x": 5, "y": 4}, | |||
{"matrix": [4, 6], "x": 6, "y": 4}, | |||
{"matrix": [4, 7], "x": 7, "y": 4}, | |||
{"matrix": [4, 8], "x": 8, "y": 4}, | |||
{"matrix": [4, 9], "x": 9, "y": 4}, | |||
{"matrix": [4, 10], "x": 10, "y": 4}, | |||
{"matrix": [4, 11], "x": 11, "y": 4}, | |||
{"matrix": [4, 12], "x": 12, "y": 4} | |||
] | |||
} | |||
} | |||
} |
@ -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 2020-2023 alin m elena (@alinelena) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#pragma once | |||
@ -0,0 +1 @@ | |||
ENCODER_MAP_ENABLE = yes |
@ -1,20 +0,0 @@ | |||
/* | |||
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/>. | |||
*/ | |||
#pragma once | |||
#define TAPPING_TOGGLE 2 |
@ -1,121 +0,0 @@ | |||
/* | |||
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/>. | |||
*/ | |||
#include QMK_KEYBOARD_H | |||
#include "keymap_danish.h" | |||
// clang-format off | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
[_QW] = LAYOUT_ortho_5x13( | |||
KC_ESC, DK_1 , DK_2 , DK_3 , DK_4 , DK_5 , DK_6 , DK_7 , DK_8 , DK_9 , DK_0 , DK_PLUS, KC_BSPC , | |||
KC_TAB, DK_Q , DK_W , DK_E , DK_R , DK_T , DK_Y , DK_U , DK_I , DK_O , DK_P , DK_ARNG, DK_DIAE , | |||
DK_QUOT, DK_A , DK_S , DK_D , DK_F , DK_G , DK_H , DK_J , DK_K , DK_L , DK_AE , DK_OSTR, KC_ENT , | |||
SC_LSPO, DK_LABK, DK_Z , DK_X , DK_C , DK_V , DK_B , DK_N , DK_M , DK_COMM, DK_DOT , KC_UP , DK_MINS , | |||
KC_LCTL, KC_LGUI, TT(_LWR), KC_LALT, TT(_RSE), KC_SPC, KC_SPC, KC_SPC, KC_RALT, SC_RSPC, KC_LEFT, KC_DOWN, KC_RGHT), | |||
[_LWR] = LAYOUT_ortho_5x13( | |||
DK_HALF, KC_MUTE, KC_VOLU, KC_VOLD, KC_MPRV, KC_MPLY, KC_MNXT, G(KC_P), KC_SLEP, KC_WAKE, KC_PSCR, KC_DEL , DK_ACUT , | |||
KC_BTN3, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ , | |||
KC_BTN2, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ , | |||
_______, KC_BTN1, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MS_U, _______ , | |||
_______, KC_BTN4, _______, _______, _______, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R), | |||
[_RSE] = LAYOUT_ortho_5x13( | |||
KC_ESC , 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_CAPS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ , | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_WH_U, _______ , | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_WH_L, KC_WH_D, KC_WH_R), | |||
[_ADJ] = LAYOUT_ortho_5x13( | |||
RGB_MOD,RGB_RMOD, A(KC_F2), _______, _______, _______, _______, _______, _______, _______, _______, RGB_M_T, RGB_M_SW , | |||
RGB_HUI, RGB_HUD, RGB_M_P , _______, QK_BOOT, _______, _______, _______, _______, _______, _______, _______, RGB_M_SN , | |||
RGB_SAI, RGB_SAD, RGB_M_B , _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_M_K , | |||
RGB_VAI, RGB_VAD, RGB_M_R , _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_M_X , | |||
RGB_TOG, _______, _______ , _______, _______, _______, _______, _______, _______, _______, _______, RGB_M_TW, RGB_M_G), | |||
}; | |||
// clang-format on | |||
bool led_update_user(led_t led_state) { | |||
// Disable the default LED update code, so that lock LEDs could be reused to show layer status. | |||
return false; | |||
} | |||
void matrix_scan_user(void) { | |||
toggle_leds(); | |||
} | |||
bool process_record_user(uint16_t keycode, keyrecord_t* record) { | |||
switch (keycode) { | |||
case (TT(_LWR)): | |||
if (!record->event.pressed && record->tap.count == TAPPING_TOGGLE) { | |||
// This runs before the TT() handler toggles the layer state, so the current layer state is the opposite of the final one after toggle. | |||
set_led_toggle(_LWR, !layer_state_is(_LWR)); | |||
} | |||
return true; | |||
break; | |||
case (TT(_RSE)): | |||
if (record->event.pressed && record->tap.count == TAPPING_TOGGLE) { | |||
set_led_toggle(_RSE, !layer_state_is(_RSE)); | |||
} | |||
return true; | |||
break; | |||
default: | |||
return true; | |||
} | |||
} | |||
layer_state_t layer_state_set_user(layer_state_t state) { | |||
#ifdef RGBLIGHT_ENABLE | |||
set_rgb_layers(state); | |||
#endif | |||
return update_tri_layer_state(state, _LWR, _RSE, _ADJ); | |||
} | |||
#ifdef RGBLIGHT_ENABLE | |||
layer_state_t default_layer_state_set_user(layer_state_t state) { | |||
set_default_rgb_layers(state); | |||
return state; | |||
} | |||
#endif | |||
void keyboard_post_init_user(void) { | |||
#ifdef RGBLIGHT_ENABLE | |||
// Enable the LED layers | |||
rgblight_layers = my_rgb(); | |||
#endif | |||
#ifdef OLED_ENABLE | |||
init_timer(); | |||
#endif | |||
} |
@ -1,13 +0,0 @@ | |||
![M65 Layout Image](https://i.imgur.com/RQqsM4gh.png) | |||
# Default M65 Layout | |||
This is the Danish keymap for M65. For the most part it's a straightforward and easy to follow layout inspired by ISO with a DK | |||
turn. The only unusual key is the key in the upper left, which sends Escape normally, but Grave when in layer 1 aka LWR. Similarly | |||
number row in layer 1 give the usual audio KC_GRV, KC_AUDIO_MUTE, KC_AUDIO_VOL_UP, KC_AUDIO_VOL_DOWN, KC_MEDIA_PREV_TRACK, | |||
KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK, M_EXTDISP, KC_SYSTEM_SLEEP, KC_SYSTEM_WAKE, KC_PRINT_SCREEN, KC_DEL, DK_ACUT in layer 2 aka | |||
RSE one gets F1-F12 mouse emulation can be used in layer 1 and 2. | |||
flashing is done by LWR+RSE+r | |||
full layout below see in keymap.c |
@ -1,29 +1,14 @@ | |||
/* | |||
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 2020-2023 alin m elena (@alinelena) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#pragma once | |||
#define TAPPING_TOGGLE 2 | |||
#define UNICODE_SELECTED_MODES UNICODE_MODE_LINUX | |||
//#define UNICODE_SELECTED_MODES UNICODE_MODE_LINUX, UNICODE_MODE_MACOS, UNICODE_MODE_WINCOMPOSE | |||
#define UNICODE_SELECTED_MODES UNICODE_MODE_LINUX, UNICODE_MODE_MACOS, UNICODE_MODE_WINDOWS, UNICODE_MODE_WINCOMPOSE | |||
#ifdef WPM_ENABLE | |||
#define WPM_SAMPLE_SECONDS 10 | |||
#define WPM_SAMPLE_PERIODS 100 | |||
#define WPM_ALLOW_COUNT_REGRESSION | |||
# define WPM_SAMPLE_SECONDS 10 | |||
# define WPM_SAMPLE_PERIODS 100 | |||
# define WPM_ALLOW_COUNT_REGRESSION | |||
#endif |
@ -1 +1,2 @@ | |||
UNICODEMAP_ENABLE = yes | |||
ENCODER_MAP_ENABLE = yes |
@ -1,20 +0,0 @@ | |||
/* | |||
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/>. | |||
*/ | |||
#pragma once | |||
#define TAPPING_TOGGLE 2 |
@ -1,118 +0,0 @@ | |||
/* | |||
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/>. | |||
*/ | |||
#include QMK_KEYBOARD_H | |||
// clang-format off | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
[_QW] = LAYOUT_ortho_5x13( | |||
KC_ESC, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_BSPC , | |||
KC_TAB, KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC , | |||
KC_NUHS, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_ENT , | |||
SC_LSPO, KC_NUBS, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_UP , KC_SLSH , | |||
KC_LCTL, KC_LGUI, TT(_LWR), KC_LALT, TT(_RSE), KC_SPC, KC_SPC, KC_SPC, KC_RALT, SC_RSPC, KC_LEFT, KC_DOWN, KC_RGHT), | |||
[_LWR] = LAYOUT_ortho_5x13( | |||
KC_GRV , KC_MUTE, KC_VOLU, KC_VOLD, KC_MPRV, KC_MPLY, KC_MNXT, G(KC_P), KC_SLEP, KC_WAKE, KC_PSCR, KC_DEL , KC_EQL , | |||
KC_BTN3, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ , | |||
KC_BTN2, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ , | |||
_______, KC_BTN1, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MS_U, _______ , | |||
_______, KC_BTN4, _______, _______, _______, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R), | |||
[_RSE] = LAYOUT_ortho_5x13( | |||
KC_ESC , 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_CAPS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ , | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_WH_U, _______ , | |||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_WH_L, KC_WH_D, KC_WH_R), | |||
[_ADJ] = LAYOUT_ortho_5x13( | |||
RGB_MOD, RGB_RMOD, A(KC_F2), _______, _______, _______, _______, _______, _______, _______, _______, RGB_M_T , RGB_M_SW, | |||
RGB_HUI, RGB_HUD , RGB_M_P , _______, QK_BOOT , _______, _______, _______, _______, _______, _______, _______ , RGB_M_SN, | |||
RGB_SAI, RGB_SAD , RGB_M_B , _______, _______, _______, _______, _______, _______, _______, _______, _______ , RGB_M_K , | |||
RGB_VAI, RGB_VAD , RGB_M_R , _______, _______, _______, _______, _______, _______, _______, _______, _______ , RGB_M_X , | |||
RGB_TOG, _______ , _______ , _______, _______, _______, _______, _______, _______, _______, _______, RGB_M_TW, RGB_M_G), | |||
}; | |||
// clang-format on | |||
bool led_update_user(led_t led_state) { | |||
// Disable the default LED update code, so that lock LEDs could be reused to show layer status. | |||
return false; | |||
} | |||
void matrix_scan_user(void) { | |||
toggle_leds(); | |||
} | |||
bool process_record_user(uint16_t keycode, keyrecord_t* record) { | |||
switch (keycode) { | |||
case (TT(_LWR)): | |||
if (!record->event.pressed && record->tap.count == TAPPING_TOGGLE) { | |||
// This runs before the TT() handler toggles the layer state, so the current layer state is the opposite of the final one after toggle. | |||
set_led_toggle(_LWR, !layer_state_is(_LWR)); | |||
} | |||
return true; | |||
break; | |||
case (TT(_RSE)): | |||
if (record->event.pressed && record->tap.count == TAPPING_TOGGLE) { | |||
set_led_toggle(_RSE, !layer_state_is(_RSE)); | |||
} | |||
return true; | |||
break; | |||
default: | |||
return true; | |||
} | |||
} | |||
layer_state_t layer_state_set_user(layer_state_t state) { | |||
#ifdef RGBLIGHT_ENABLE | |||
set_rgb_layers(state); | |||
#endif | |||
return update_tri_layer_state(state, _LWR, _RSE, _ADJ); | |||
} | |||
#ifdef RGBLIGHT_ENABLE | |||
layer_state_t default_layer_state_set_user(layer_state_t state) { | |||
set_default_rgb_layers(state); | |||
return state; | |||
} | |||
#endif | |||
void keyboard_post_init_user(void) { | |||
#ifdef RGBLIGHT_ENABLE | |||
// Enable the LED layers | |||
rgblight_layers = my_rgb(); | |||
#endif | |||
#ifdef OLED_ENABLE | |||
init_timer(); | |||
#endif | |||
} |
@ -1 +0,0 @@ | |||
VIA_ENABLE = yes |
@ -1,154 +1,65 @@ | |||
/* | |||
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 2020-2023 alin m elena (@alinelena) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#pragma once | |||
#include "quantum.h" | |||
enum unicode_names { | |||
la = 0, | |||
lA, | |||
lb, | |||
lB, | |||
lc, | |||
lC, | |||
ld, | |||
lD, | |||
le, | |||
lE, | |||
lf, | |||
lF, | |||
lg, | |||
lG, | |||
lh, | |||
lH, | |||
li, | |||
lI, | |||
lj, | |||
lJ, | |||
lk, | |||
lK, | |||
ll, | |||
lL, | |||
lm, | |||
lM, | |||
ln, | |||
lN, | |||
lo, | |||
lO, | |||
lp, | |||
lP, | |||
lq, | |||
lQ, | |||
lr, | |||
lR, | |||
ls, | |||
lS, | |||
lt, | |||
lT, | |||
lu, | |||
lU, | |||
lv, | |||
lV, | |||
lw, | |||
lW, | |||
lx, | |||
lX, | |||
ly, | |||
lY, | |||
lz, | |||
lZ, | |||
lc1, | |||
lC1, | |||
lp1, | |||
lP1, | |||
lq1, | |||
lQ1, | |||
ll1, | |||
lL1, | |||
lk1, | |||
lK1, | |||
ra, | |||
rA, | |||
ra1, | |||
rA1, | |||
rc, | |||
rC, | |||
ri, | |||
rI, | |||
rs, | |||
rS, | |||
rt, | |||
rT, | |||
ro, | |||
rO, | |||
ra2, | |||
rA2, | |||
ra3, | |||
rA3 | |||
}; | |||
#if defined(UNICODEMAP_ENABLE) | |||
enum unicode_names { la = 0, lA, lb, lB, lc, lC, ld, lD, le, lE, lf, lF, lg, lG, lh, lH, li, lI, lj, lJ, lk, lK, ll, lL, lm, lM, ln, lN, lo, lO, lp, lP, lq, lQ, lr, lR, ls, lS, lt, lT, lu, lU, lv, lV, lw, lW, lx, lX, ly, lY, lz, lZ, lc1, lC1, lp1, lP1, lq1, lQ1, ll1, lL1, lk1, lK1, lbo1, lbo2, lbc1, lbc2, ls1, ls2, ra, rA, ra1, rA1, rc, rC, ri, rI, rs, rS, rt, rT, ro, rO, ra2, rA2, ra3, rA3, rx, rX, rv, rV, rb, rB, rn, rN }; | |||
#endif | |||
enum layer_names { _QW = 0, _LWR, _RSE, _ADJ }; | |||
enum layer_names { | |||
_QW = 0, | |||
_LWR, | |||
_RSE, | |||
_ADJ | |||
}; | |||
#ifdef OLED_ENABLE | |||
#if defined(OLED_ENABLE) | |||
void user_oled_magic(void); | |||
void render_logo(void); | |||
void clear_screen(void); | |||
void init_timer(void); | |||
#endif | |||
#ifdef ENCODER_ENABLE | |||
void my_encoders(const uint8_t, const bool); | |||
bool encoder_update_user(uint8_t, bool); | |||
#if defined(RGBLIGHT_ENABLE) | |||
void set_rgb_layers(layer_state_t); | |||
const rgblight_segment_t* const* my_rgb(void); | |||
void set_default_rgb_layers(layer_state_t); | |||
#endif | |||
#ifdef RGBLIGHT_ENABLE | |||
void set_rgb_layers(layer_state_t); | |||
const rgblight_segment_t * const* my_rgb(void); | |||
void set_default_rgb_layers(layer_state_t); | |||
#endif | |||
void toggle_leds(const bool, const bool); | |||
void set_led_toggle(const uint8_t, const bool); | |||
static inline void init_lwr_rse_led(void) { | |||
#if defined(LED_LWR_PIN) | |||
setPinOutput(LED_LWR_PIN); | |||
writePin(LED_LWR_PIN, false); | |||
wait_ms(30); | |||
#endif | |||
void toggle_leds(void); | |||
void set_led_toggle(const uint8_t, const bool); | |||
#if defined(LED_RSE_PIN) | |||
setPinOutput(LED_RSE_PIN); | |||
writePin(LED_RSE_PIN, false); | |||
wait_ms(30); | |||
#endif | |||
} | |||
static inline void led_lwr(const bool on) { | |||
#ifdef LED_NUM_LOCK_PIN | |||
writePin(LED_NUM_LOCK_PIN, on); | |||
#if defined(LED_LWR_PIN) | |||
if ((PRODUCT_ID == 0x6064) || (PRODUCT_ID == 0x6065) || | |||
(PRODUCT_ID == 0x6066) || (PRODUCT_ID == 0x6067)) { | |||
writePin(LED_LWR_PIN, !on); | |||
}else{ | |||
writePin(LED_LWR_PIN, on); | |||
} | |||
#endif | |||
} | |||
static inline void led_rse(const bool on) { | |||
#ifdef LED_SCROLL_LOCK_PIN | |||
writePin(LED_SCROLL_LOCK_PIN, on); | |||
#endif | |||
} | |||
static inline void led_caps(const bool on) { | |||
#ifdef LED_CAPS_LOCK_PIN | |||
if ((PRODUCT_ID == 0x6061) && (DEVICE_VER == 0x0002)) { | |||
writePin(LED_CAPS_LOCK_PIN, on); | |||
} else { | |||
writePin(LED_CAPS_LOCK_PIN, !on); | |||
#if defined(LED_RSE_PIN) | |||
if ((PRODUCT_ID == 0x6064) || (PRODUCT_ID == 0x6065) || | |||
(PRODUCT_ID == 0x6066) || (PRODUCT_ID == 0x6067)) { | |||
writePin(LED_RSE_PIN, !on); | |||
}else{ | |||
writePin(LED_RSE_PIN, on); | |||
} | |||
#endif | |||
} |
@ -1,20 +1,7 @@ | |||
/* | |||
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 2020-2023 alin m elena (@alinelena) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#pragma once | |||
#define RGBLIGHT_LAYERS | |||
#define LED_RSE_PIN B13 | |||
#define LED_LWR_PIN B12 |
@ -1,42 +1,134 @@ | |||
{ | |||
"usb": { | |||
"pid": "0x6061", | |||
"device_version": "0.0.1" | |||
}, | |||
"matrix_pins": { | |||
"cols": ["A10", "A15", "B3", "B4", "B5", "B9", "B8", "B7", "B6", "C15", "A0", "A7", "B10"], | |||
"rows": ["B11", "B0", "B1", "A2", "A3"] | |||
}, | |||
"manufacturer": "Alin Elena", | |||
"keyboard_name": "mlego/m65 rev1", | |||
"maintainer": "alin elena", | |||
"bootloader": "stm32duino", | |||
"debounce": 5, | |||
"diode_direction": "COL2ROW", | |||
"encoder": { | |||
"rotary": [ | |||
{"pin_a": "A8", "pin_b": "A9"} | |||
] | |||
}, | |||
"features": { | |||
"audio": false, | |||
"backlight": false, | |||
"bootmagic": true, | |||
"command": false, | |||
"console": false, | |||
"encoder": true, | |||
"extrakey": true, | |||
"mousekey": true, | |||
"nkro": true, | |||
"rgblight": true | |||
}, | |||
"indicators": { | |||
"caps_lock": "C13", | |||
"num_lock": "B12", | |||
"scroll_lock": "B13" | |||
"on_state": 0 | |||
}, | |||
"matrix_pins": { | |||
"cols": ["A10", "A15", "B3", "B4", "B5", "B9", "B8", "B7", "B6", "C15", "A0", "A7", "B10"], | |||
"rows": ["B11", "B0", "B1", "A2", "A3"] | |||
}, | |||
"processor": "STM32F103", | |||
"rgblight": { | |||
"saturation_steps": 8, | |||
"led_count": 20, | |||
"animations": { | |||
"alternating": true, | |||
"breathing": true, | |||
"christmas": true, | |||
"knight": true, | |||
"rainbow_mood": true, | |||
"rainbow_swirl": true, | |||
"rgb_test": true, | |||
"snake": true, | |||
"knight": true, | |||
"christmas": true, | |||
"static_gradient": true, | |||
"rgb_test": true, | |||
"alternating": true, | |||
"twinkle": true | |||
} | |||
}, | |||
"hue_steps": 8, | |||
"layers": { | |||
"enabled": true | |||
}, | |||
"led_count": 20, | |||
"saturation_steps": 8 | |||
}, | |||
"url": "https://gitlab.com/m-lego/m65", | |||
"usb": { | |||
"device_version": "0.0.1", | |||
"pid": "0x6061", | |||
"vid": "0xBABA" | |||
}, | |||
"ws2812": { | |||
"pin": "B15" | |||
}, | |||
"processor": "STM32F103", | |||
"bootloader": "stm32duino" | |||
"layouts": { | |||
"LAYOUT_ortho_5x13": { | |||
"layout": [ | |||
{"label": "Esc", "matrix": [0, 0], "x": 0, "y": 0}, | |||
{"label": "1", "matrix": [0, 1], "x": 1, "y": 0}, | |||
{"label": "2", "matrix": [0, 2], "x": 2, "y": 0}, | |||
{"label": "3", "matrix": [0, 3], "x": 3, "y": 0}, | |||
{"label": "4", "matrix": [0, 4], "x": 4, "y": 0}, | |||
{"label": "5", "matrix": [0, 5], "x": 5, "y": 0}, | |||
{"label": "6", "matrix": [0, 6], "x": 6, "y": 0}, | |||
{"label": "7", "matrix": [0, 7], "x": 7, "y": 0}, | |||
{"label": "8", "matrix": [0, 8], "x": 8, "y": 0}, | |||
{"label": "9", "matrix": [0, 9], "x": 9, "y": 0}, | |||
{"label": "0", "matrix": [0, 10], "x": 10, "y": 0}, | |||
{"label": "-", "matrix": [0, 11], "x": 11, "y": 0}, | |||
{"label": "Backspace", "matrix": [0, 12], "x": 12, "y": 0}, | |||
{"label": "Tab", "matrix": [1, 0], "x": 0, "y": 1}, | |||
{"label": "q", "matrix": [1, 1], "x": 1, "y": 1}, | |||
{"label": "w", "matrix": [1, 2], "x": 2, "y": 1}, | |||
{"label": "e", "matrix": [1, 3], "x": 3, "y": 1}, | |||
{"label": "r", "matrix": [1, 4], "x": 4, "y": 1}, | |||
{"label": "t", "matrix": [1, 5], "x": 5, "y": 1}, | |||
{"label": "y", "matrix": [1, 6], "x": 6, "y": 1}, | |||
{"label": "u", "matrix": [1, 7], "x": 7, "y": 1}, | |||
{"label": "i", "matrix": [1, 8], "x": 8, "y": 1}, | |||
{"label": "o", "matrix": [1, 9], "x": 9, "y": 1}, | |||
{"label": "p", "matrix": [1, 10], "x": 10, "y": 1}, | |||
{"label": "[", "matrix": [1, 11], "x": 11, "y": 1}, | |||
{"label": "]", "matrix": [1, 12], "x": 12, "y": 1}, | |||
{"label": "#", "matrix": [2, 0], "x": 0, "y": 2}, | |||
{"label": "a", "matrix": [2, 1], "x": 1, "y": 2}, | |||
{"label": "s", "matrix": [2, 2], "x": 2, "y": 2}, | |||
{"label": "d", "matrix": [2, 3], "x": 3, "y": 2}, | |||
{"label": "f", "matrix": [2, 4], "x": 4, "y": 2}, | |||
{"label": "g", "matrix": [2, 5], "x": 5, "y": 2}, | |||
{"label": "h", "matrix": [2, 6], "x": 6, "y": 2}, | |||
{"label": "j", "matrix": [2, 7], "x": 7, "y": 2}, | |||
{"label": "k", "matrix": [2, 8], "x": 8, "y": 2}, | |||
{"label": "l", "matrix": [2, 9], "x": 9, "y": 2}, | |||
{"label": ";", "matrix": [2, 10], "x": 10, "y": 2}, | |||
{"label": "'", "matrix": [2, 11], "x": 11, "y": 2}, | |||
{"label": "Enter", "matrix": [2, 12], "x": 12, "y": 2}, | |||
{"label": "Left Shift", "matrix": [3, 0], "x": 0, "y": 3}, | |||
{"label": "\\", "matrix": [3, 1], "x": 1, "y": 3}, | |||
{"label": "z", "matrix": [3, 2], "x": 2, "y": 3}, | |||
{"label": "x", "matrix": [3, 3], "x": 3, "y": 3}, | |||
{"label": "c", "matrix": [3, 4], "x": 4, "y": 3}, | |||
{"label": "v", "matrix": [3, 5], "x": 5, "y": 3}, | |||
{"label": "b", "matrix": [3, 6], "x": 6, "y": 3}, | |||
{"label": "n", "matrix": [3, 7], "x": 7, "y": 3}, | |||
{"label": "m", "matrix": [3, 8], "x": 8, "y": 3}, | |||
{"label": ",", "matrix": [3, 9], "x": 9, "y": 3}, | |||
{"label": ".", "matrix": [3, 10], "x": 10, "y": 3}, | |||
{"label": "Up", "matrix": [3, 11], "x": 11, "y": 3}, | |||
{"label": "/", "matrix": [3, 12], "x": 12, "y": 3}, | |||
{"label": "Ctrl", "matrix": [4, 0], "x": 0, "y": 4}, | |||
{"label": "Menu", "matrix": [4, 1], "x": 1, "y": 4}, | |||
{"label": "Lower", "matrix": [4, 2], "x": 2, "y": 4}, | |||
{"label": "Alt", "matrix": [4, 3], "x": 3, "y": 4}, | |||
{"label": "Raise", "matrix": [4, 4], "x": 4, "y": 4}, | |||
{"label": "Space", "matrix": [4, 5], "x": 5, "y": 4}, | |||
{"label": "Space", "matrix": [4, 6], "x": 6, "y": 4}, | |||
{"label": "Space", "matrix": [4, 7], "x": 7, "y": 4}, | |||
{"label": "Alt Gr", "matrix": [4, 8], "x": 8, "y": 4}, | |||
{"label": "Right Shift", "matrix": [4, 9], "x": 9, "y": 4}, | |||
{"label": "Left", "matrix": [4, 10], "x": 10, "y": 4}, | |||
{"label": "Down", "matrix": [4, 11], "x": 11, "y": 4}, | |||
{"label": "Right", "matrix": [4, 12], "x": 12, "y": 4} | |||
] | |||
} | |||
} | |||
} |
@ -1,13 +1 @@ | |||
# Build Options | |||
# change yes to no to disable | |||
# | |||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | |||
MOUSEKEY_ENABLE = yes # Mouse keys | |||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||
CONSOLE_ENABLE = no # Console for debug | |||
COMMAND_ENABLE = no # Commands for debug and configuration | |||
NKRO_ENABLE = yes # Enable N-Key Rollover | |||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | |||
AUDIO_ENABLE = no # Audio output | |||
ENCODER_ENABLE = yes # Enable encoder | |||
#intentionally blanck |
@ -1,42 +1,133 @@ | |||
{ | |||
"usb": { | |||
"pid": "0x6061", | |||
"device_version": "0.0.2" | |||
}, | |||
"matrix_pins": { | |||
"cols": ["A10", "A15", "B3", "B4", "B5", "B9", "B8", "B7", "B6", "C15", "A0", "A7", "B10"], | |||
"rows": ["B11", "B0", "B1", "A2", "A3"] | |||
}, | |||
"manufacturer": "Alin Elena", | |||
"keyboard_name": "mlego/m65 rev2", | |||
"maintainer": "alin elena", | |||
"bootloader": "stm32duino", | |||
"diode_direction": "COL2ROW", | |||
"encoder": { | |||
"rotary": [ | |||
{"pin_a": "A8", "pin_b": "A9"} | |||
] | |||
}, | |||
"features": { | |||
"audio": false, | |||
"backlight": false, | |||
"bootmagic": true, | |||
"command": true, | |||
"console": false, | |||
"encoder": true, | |||
"extrakey": true, | |||
"mousekey": true, | |||
"nkro": true, | |||
"rgblight": true | |||
}, | |||
"indicators": { | |||
"caps_lock": "B2", | |||
"num_lock": "B12", | |||
"scroll_lock": "B13" | |||
"on_state": 0 | |||
}, | |||
"matrix_pins": { | |||
"cols": ["A10", "A15", "B3", "B4", "B5", "B9", "B8", "B7", "B6", "C15", "A0", "A7", "B10"], | |||
"rows": ["B11", "B0", "B1", "A2", "A3"] | |||
}, | |||
"processor": "STM32F103", | |||
"rgblight": { | |||
"saturation_steps": 8, | |||
"led_count": 20, | |||
"animations": { | |||
"alternating": true, | |||
"breathing": true, | |||
"christmas": true, | |||
"knight": true, | |||
"rainbow_mood": true, | |||
"rainbow_swirl": true, | |||
"rgb_test": true, | |||
"snake": true, | |||
"knight": true, | |||
"christmas": true, | |||
"static_gradient": true, | |||
"rgb_test": true, | |||
"alternating": true, | |||
"twinkle": true | |||
} | |||
}, | |||
"hue_steps": 8, | |||
"layers": { | |||
"enabled": true | |||
}, | |||
"led_count": 20, | |||
"saturation_steps": 8 | |||
}, | |||
"url": "https://gitlab.com/m-lego/m65", | |||
"usb": { | |||
"device_version": "0.0.2", | |||
"pid": "0x6061", | |||
"vid": "0xBABA" | |||
}, | |||
"ws2812": { | |||
"pin": "B15" | |||
}, | |||
"processor": "STM32F103", // GD32F303CCT6 | |||
"bootloader": "stm32duino" | |||
"layouts": { | |||
"LAYOUT_ortho_5x13": { | |||
"layout": [ | |||
{"label": "Esc", "matrix": [0, 0], "x": 0, "y": 0}, | |||
{"label": "1", "matrix": [0, 1], "x": 1, "y": 0}, | |||
{"label": "2", "matrix": [0, 2], "x": 2, "y": 0}, | |||
{"label": "3", "matrix": [0, 3], "x": 3, "y": 0}, | |||
{"label": "4", "matrix": [0, 4], "x": 4, "y": 0}, | |||
{"label": "5", "matrix": [0, 5], "x": 5, "y": 0}, | |||
{"label": "6", "matrix": [0, 6], "x": 6, "y": 0}, | |||
{"label": "7", "matrix": [0, 7], "x": 7, "y": 0}, | |||
{"label": "8", "matrix": [0, 8], "x": 8, "y": 0}, | |||
{"label": "9", "matrix": [0, 9], "x": 9, "y": 0}, | |||
{"label": "0", "matrix": [0, 10], "x": 10, "y": 0}, | |||
{"label": "-", "matrix": [0, 11], "x": 11, "y": 0}, | |||
{"label": "Backspace", "matrix": [0, 12], "x": 12, "y": 0}, | |||
{"label": "Tab", "matrix": [1, 0], "x": 0, "y": 1}, | |||
{"label": "q", "matrix": [1, 1], "x": 1, "y": 1}, | |||
{"label": "w", "matrix": [1, 2], "x": 2, "y": 1}, | |||
{"label": "e", "matrix": [1, 3], "x": 3, "y": 1}, | |||
{"label": "r", "matrix": [1, 4], "x": 4, "y": 1}, | |||
{"label": "t", "matrix": [1, 5], "x": 5, "y": 1}, | |||
{"label": "y", "matrix": [1, 6], "x": 6, "y": 1}, | |||
{"label": "u", "matrix": [1, 7], "x": 7, "y": 1}, | |||
{"label": "i", "matrix": [1, 8], "x": 8, "y": 1}, | |||
{"label": "o", "matrix": [1, 9], "x": 9, "y": 1}, | |||
{"label": "p", "matrix": [1, 10], "x": 10, "y": 1}, | |||
{"label": "[", "matrix": [1, 11], "x": 11, "y": 1}, | |||
{"label": "]", "matrix": [1, 12], "x": 12, "y": 1}, | |||
{"label": "#", "matrix": [2, 0], "x": 0, "y": 2}, | |||
{"label": "a", "matrix": [2, 1], "x": 1, "y": 2}, | |||
{"label": "s", "matrix": [2, 2], "x": 2, "y": 2}, | |||
{"label": "d", "matrix": [2, 3], "x": 3, "y": 2}, | |||
{"label": "f", "matrix": [2, 4], "x": 4, "y": 2}, | |||
{"label": "g", "matrix": [2, 5], "x": 5, "y": 2}, | |||
{"label": "h", "matrix": [2, 6], "x": 6, "y": 2}, | |||
{"label": "j", "matrix": [2, 7], "x": 7, "y": 2}, | |||
{"label": "k", "matrix": [2, 8], "x": 8, "y": 2}, | |||
{"label": "l", "matrix": [2, 9], "x": 9, "y": 2}, | |||
{"label": ";", "matrix": [2, 10], "x": 10, "y": 2}, | |||
{"label": "'", "matrix": [2, 11], "x": 11, "y": 2}, | |||
{"label": "Enter", "matrix": [2, 12], "x": 12, "y": 2}, | |||
{"label": "Left Shift", "matrix": [3, 0], "x": 0, "y": 3}, | |||
{"label": "\\", "matrix": [3, 1], "x": 1, "y": 3}, | |||
{"label": "z", "matrix": [3, 2], "x": 2, "y": 3}, | |||
{"label": "x", "matrix": [3, 3], "x": 3, "y": 3}, | |||
{"label": "c", "matrix": [3, 4], "x": 4, "y": 3}, | |||
{"label": "v", "matrix": [3, 5], "x": 5, "y": 3}, | |||
{"label": "b", "matrix": [3, 6], "x": 6, "y": 3}, | |||
{"label": "n", "matrix": [3, 7], "x": 7, "y": 3}, | |||
{"label": "m", "matrix": [3, 8], "x": 8, "y": 3}, | |||
{"label": ",", "matrix": [3, 9], "x": 9, "y": 3}, | |||
{"label": ".", "matrix": [3, 10], "x": 10, "y": 3}, | |||
{"label": "Up", "matrix": [3, 11], "x": 11, "y": 3}, | |||
{"label": "/", "matrix": [3, 12], "x": 12, "y": 3}, | |||
{"label": "Ctrl", "matrix": [4, 0], "x": 0, "y": 4}, | |||
{"label": "Menu", "matrix": [4, 1], "x": 1, "y": 4}, | |||
{"label": "Lower", "matrix": [4, 2], "x": 2, "y": 4}, | |||
{"label": "Alt", "matrix": [4, 3], "x": 3, "y": 4}, | |||
{"label": "Raise", "matrix": [4, 4], "x": 4, "y": 4}, | |||
{"label": "Space", "matrix": [4, 5], "x": 5, "y": 4}, | |||
{"label": "Space", "matrix": [4, 6], "x": 6, "y": 4}, | |||
{"label": "Space", "matrix": [4, 7], "x": 7, "y": 4}, | |||
{"label": "Alt Gr", "matrix": [4, 8], "x": 8, "y": 4}, | |||
{"label": "Right Shift", "matrix": [4, 9], "x": 9, "y": 4}, | |||
{"label": "Left", "matrix": [4, 10], "x": 10, "y": 4}, | |||
{"label": "Down", "matrix": [4, 11], "x": 11, "y": 4}, | |||
{"label": "Right", "matrix": [4, 12], "x": 12, "y": 4} | |||
] | |||
} | |||
} | |||
} |
@ -1,13 +1 @@ | |||
# Build Options | |||
# change yes to no to disable | |||
# | |||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | |||
MOUSEKEY_ENABLE = yes # Mouse keys | |||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||
CONSOLE_ENABLE = yes # Console for debug | |||
COMMAND_ENABLE = yes # Commands for debug and configuration | |||
NKRO_ENABLE = yes # Enable N-Key Rollover | |||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | |||
AUDIO_ENABLE = no # Audio output | |||
ENCODER_ENABLE = yes # Enable encoder | |||
#blank purpose |
@ -1,20 +1,7 @@ | |||
/* | |||
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-2023 alin m elena (@alinelena) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#pragma once | |||
#define RGBLIGHT_LAYERS | |||
#define LED_RSE_PIN B13 | |||
#define LED_LWR_PIN B12 |
@ -1,43 +1,134 @@ | |||
{ | |||
"usb": { | |||
"pid": "0x6062", | |||
"device_version": "0.0.1" | |||
}, | |||
"matrix_pins": { | |||
"cols": ["A10", "A15", "B3", "B4", "B5", "B9", "B8", "B7", "A1", "A2", "A3", "A4", "B1"], | |||
"rows": ["B10", "A5", "A6", "A7", "B0"] | |||
}, | |||
"manufacturer": "Alin Elena", | |||
"keyboard_name": "mlego/m65 rev3", | |||
"maintainer": "alin elena", | |||
"board": "BLACKPILL_STM32_F401", | |||
"bootloader": "tinyuf2", | |||
"diode_direction": "COL2ROW", | |||
"encoder": { | |||
"rotary": [ | |||
{"pin_a": "A0", "pin_b": "B6"} | |||
] | |||
}, | |||
"features": { | |||
"audio": false, | |||
"backlight": false, | |||
"bootmagic": true, | |||
"command": false, | |||
"console": false, | |||
"encoder": true, | |||
"extrakey": true, | |||
"mousekey": true, | |||
"nkro": true, | |||
"rgblight": true | |||
}, | |||
"indicators": { | |||
"caps_lock": "C13", | |||
"num_lock": "B12", | |||
"scroll_lock": "B13" | |||
"on_state": 0 | |||
}, | |||
"matrix_pins": { | |||
"cols": ["A10", "A15", "B3", "B4", "B5", "B9", "B8", "B7", "A1", "A2", "A3", "A4", "B1"], | |||
"rows": ["B10", "A5", "A6", "A7", "B0"] | |||
}, | |||
"processor": "STM32F401", | |||
"rgblight": { | |||
"saturation_steps": 8, | |||
"led_count": 20, | |||
"animations": { | |||
"alternating": true, | |||
"breathing": true, | |||
"christmas": true, | |||
"knight": true, | |||
"rainbow_mood": true, | |||
"rainbow_swirl": true, | |||
"rgb_test": true, | |||
"snake": true, | |||
"knight": true, | |||
"christmas": true, | |||
"static_gradient": true, | |||
"rgb_test": true, | |||
"alternating": true, | |||
"twinkle": true | |||
} | |||
}, | |||
"hue_steps": 8, | |||
"layers": { | |||
"enabled": true | |||
}, | |||
"led_count": 20, | |||
"saturation_steps": 8 | |||
}, | |||
"url": "https://gitlab.com/m-lego/m65", | |||
"usb": { | |||
"device_version": "0.0.1", | |||
"pid": "0x6062", | |||
"vid": "0xBABA" | |||
}, | |||
"ws2812": { | |||
"pin": "B15" | |||
}, | |||
"processor": "STM32F401", | |||
"bootloader": "tinyuf2", | |||
"board": "BLACKPILL_STM32_F401" | |||
"layouts": { | |||
"LAYOUT_ortho_5x13": { | |||
"layout": [ | |||
{"label": "Esc", "matrix": [0, 0], "x": 0, "y": 0}, | |||
{"label": "1", "matrix": [0, 1], "x": 1, "y": 0}, | |||
{"label": "2", "matrix": [0, 2], "x": 2, "y": 0}, | |||
{"label": "3", "matrix": [0, 3], "x": 3, "y": 0}, | |||
{"label": "4", "matrix": [0, 4], "x": 4, "y": 0}, | |||
{"label": "5", "matrix": [0, 5], "x": 5, "y": 0}, | |||
{"label": "6", "matrix": [0, 6], "x": 6, "y": 0}, | |||
{"label": "7", "matrix": [0, 7], "x": 7, "y": 0}, | |||
{"label": "8", "matrix": [0, 8], "x": 8, "y": 0}, | |||
{"label": "9", "matrix": [0, 9], "x": 9, "y": 0}, | |||
{"label": "0", "matrix": [0, 10], "x": 10, "y": 0}, | |||
{"label": "-", "matrix": [0, 11], "x": 11, "y": 0}, | |||
{"label": "Backspace", "matrix": [0, 12], "x": 12, "y": 0}, | |||
{"label": "Tab", "matrix": [1, 0], "x": 0, "y": 1}, | |||
{"label": "q", "matrix": [1, 1], "x": 1, "y": 1}, | |||
{"label": "w", "matrix": [1, 2], "x": 2, "y": 1}, | |||
{"label": "e", "matrix": [1, 3], "x": 3, "y": 1}, | |||
{"label": "r", "matrix": [1, 4], "x": 4, "y": 1}, | |||
{"label": "t", "matrix": [1, 5], "x": 5, "y": 1}, | |||
{"label": "y", "matrix": [1, 6], "x": 6, "y": 1}, | |||
{"label": "u", "matrix": [1, 7], "x": 7, "y": 1}, | |||
{"label": "i", "matrix": [1, 8], "x": 8, "y": 1}, | |||
{"label": "o", "matrix": [1, 9], "x": 9, "y": 1}, | |||
{"label": "p", "matrix": [1, 10], "x": 10, "y": 1}, | |||
{"label": "[", "matrix": [1, 11], "x": 11, "y": 1}, | |||
{"label": "]", "matrix": [1, 12], "x": 12, "y": 1}, | |||
{"label": "#", "matrix": [2, 0], "x": 0, "y": 2}, | |||
{"label": "a", "matrix": [2, 1], "x": 1, "y": 2}, | |||
{"label": "s", "matrix": [2, 2], "x": 2, "y": 2}, | |||
{"label": "d", "matrix": [2, 3], "x": 3, "y": 2}, | |||
{"label": "f", "matrix": [2, 4], "x": 4, "y": 2}, | |||
{"label": "g", "matrix": [2, 5], "x": 5, "y": 2}, | |||
{"label": "h", "matrix": [2, 6], "x": 6, "y": 2}, | |||
{"label": "j", "matrix": [2, 7], "x": 7, "y": 2}, | |||
{"label": "k", "matrix": [2, 8], "x": 8, "y": 2}, | |||
{"label": "l", "matrix": [2, 9], "x": 9, "y": 2}, | |||
{"label": ";", "matrix": [2, 10], "x": 10, "y": 2}, | |||
{"label": "'", "matrix": [2, 11], "x": 11, "y": 2}, | |||
{"label": "Enter", "matrix": [2, 12], "x": 12, "y": 2}, | |||
{"label": "Left Shift", "matrix": [3, 0], "x": 0, "y": 3}, | |||
{"label": "\\", "matrix": [3, 1], "x": 1, "y": 3}, | |||
{"label": "z", "matrix": [3, 2], "x": 2, "y": 3}, | |||
{"label": "x", "matrix": [3, 3], "x": 3, "y": 3}, | |||
{"label": "c", "matrix": [3, 4], "x": 4, "y": 3}, | |||
{"label": "v", "matrix": [3, 5], "x": 5, "y": 3}, | |||
{"label": "b", "matrix": [3, 6], "x": 6, "y": 3}, | |||
{"label": "n", "matrix": [3, 7], "x": 7, "y": 3}, | |||
{"label": "m", "matrix": [3, 8], "x": 8, "y": 3}, | |||
{"label": ",", "matrix": [3, 9], "x": 9, "y": 3}, | |||
{"label": ".", "matrix": [3, 10], "x": 10, "y": 3}, | |||
{"label": "Up", "matrix": [3, 11], "x": 11, "y": 3}, | |||
{"label": "/", "matrix": [3, 12], "x": 12, "y": 3}, | |||
{"label": "Ctrl", "matrix": [4, 0], "x": 0, "y": 4}, | |||
{"label": "Menu", "matrix": [4, 1], "x": 1, "y": 4}, | |||
{"label": "Lower", "matrix": [4, 2], "x": 2, "y": 4}, | |||
{"label": "Alt", "matrix": [4, 3], "x": 3, "y": 4}, | |||
{"label": "Raise", "matrix": [4, 4], "x": 4, "y": 4}, | |||
{"label": "Space", "matrix": [4, 5], "x": 5, "y": 4}, | |||
{"label": "Space", "matrix": [4, 6], "x": 6, "y": 4}, | |||
{"label": "Space", "matrix": [4, 7], "x": 7, "y": 4}, | |||
{"label": "Alt Gr", "matrix": [4, 8], "x": 8, "y": 4}, | |||
{"label": "Right Shift", "matrix": [4, 9], "x": 9, "y": 4}, | |||
{"label": "Left", "matrix": [4, 10], "x": 10, "y": 4}, | |||
{"label": "Down", "matrix": [4, 11], "x": 11, "y": 4}, | |||
{"label": "Right", "matrix": [4, 12], "x": 12, "y": 4} | |||
] | |||
} | |||
} | |||
} |
@ -1,13 +1 @@ | |||
# Build Options | |||
# change yes to no to disable | |||
# | |||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | |||
MOUSEKEY_ENABLE = yes # Mouse keys | |||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||
CONSOLE_ENABLE = no # Console for debug | |||
COMMAND_ENABLE = no # Commands for debug and configuration | |||
NKRO_ENABLE = yes # Enable N-Key Rollover | |||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | |||
AUDIO_ENABLE = no # Audio output | |||
ENCODER_ENABLE = yes # Enable encoder | |||
#blank on purpose |
@ -1,28 +1,14 @@ | |||
/* | |||
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-2023 alin m elena (@alinelena) | |||
// SPDX-License-Identifier: GPL-2.0-or-later | |||
#pragma once | |||
#define RGBLIGHT_LAYERS | |||
#define LED_RSE_PIN B13 | |||
#define LED_LWR_PIN B12 | |||
#ifdef OLED_ENABLE | |||
# define OLED_DISPLAY_128X32 | |||
#define I2C1_SCL_PIN B9 | |||
#define I2C1_SDA_PIN B8 | |||
#define OLED_BRIGHTNESS 128 | |||
#define OLED_FONT_H "keyboards/mlego/m65/lib/glcdfont.c" | |||
# define I2C1_SCL_PIN B9 | |||
# define I2C1_SDA_PIN B8 | |||
# define OLED_BRIGHTNESS 128 | |||
# define OLED_FONT_H "keyboards/mlego/m65/lib/glcdfont.c" | |||
#endif |
@ -1,43 +1,136 @@ | |||
{ | |||
"usb": { | |||
"pid": "0x6062", | |||
"device_version": "0.0.2" | |||
}, | |||
"matrix_pins": { | |||
"cols": ["B14", "A8", "A10", "A15", "B3", "B4", "B5", "B7", "A1", "A2", "A3", "A4", "B1"], | |||
"rows": ["B10", "A5", "A6", "A7", "B0"] | |||
}, | |||
"manufacturer": "Alin Elena", | |||
"keyboard_name": "mlego/m65 rev4", | |||
"maintainer": "alin elena", | |||
"board": "BLACKPILL_STM32_F401", | |||
"bootloader": "tinyuf2", | |||
"diode_direction": "COL2ROW", | |||
"encoder": { | |||
"rotary": [ | |||
{"pin_a": "A0", "pin_b": "B6"} | |||
] | |||
}, | |||
"features": { | |||
"audio": false, | |||
"backlight": false, | |||
"bootmagic": true, | |||
"command": false, | |||
"console": true, | |||
"encoder": true, | |||
"extrakey": true, | |||
"mousekey": true, | |||
"nkro": true, | |||
"oled": true, | |||
"rgblight": true, | |||
"wpm": true | |||
}, | |||
"indicators": { | |||
"caps_lock": "C13", | |||
"num_lock": "B12", | |||
"scroll_lock": "B13" | |||
"on_state": 0 | |||
}, | |||
"matrix_pins": { | |||
"cols": ["B14", "A8", "A10", "A15", "B3", "B4", "B5", "B7", "A1", "A2", "A3", "A4", "B1"], | |||
"rows": ["B10", "A5", "A6", "A7", "B0"] | |||
}, | |||
"processor": "STM32F401", | |||
"rgblight": { | |||
"saturation_steps": 8, | |||
"led_count": 20, | |||
"animations": { | |||
"alternating": true, | |||
"breathing": true, | |||
"christmas": true, | |||
"knight": true, | |||
"rainbow_mood": true, | |||
"rainbow_swirl": true, | |||
"rgb_test": true, | |||
"snake": true, | |||
"knight": true, | |||
"christmas": true, | |||
"static_gradient": true, | |||
"rgb_test": true, | |||
"alternating": true, | |||
"twinkle": true | |||
} | |||
}, | |||
"hue_steps": 8, | |||
"layers": { | |||
"enabled": true | |||
}, | |||
"led_count": 20, | |||
"saturation_steps": 8 | |||
}, | |||
"url": "https://gitlab.com/m-lego/m65", | |||
"usb": { | |||
"device_version": "0.0.2", | |||
"pid": "0x6062", | |||
"vid": "0xBABA" | |||
}, | |||
"ws2812": { | |||
"pin": "B15" | |||
}, | |||
"processor": "STM32F401", | |||
"bootloader": "tinyuf2", | |||
"board": "BLACKPILL_STM32_F401" | |||
"layouts": { | |||
"LAYOUT_ortho_5x13": { | |||
"layout": [ | |||
{"label": "Esc", "matrix": [0, 0], "x": 0, "y": 0}, | |||
{"label": "1", "matrix": [0, 1], "x": 1, "y": 0}, | |||
{"label": "2", "matrix": [0, 2], "x": 2, "y": 0}, | |||
{"label": "3", "matrix": [0, 3], "x": 3, "y": 0}, | |||
{"label": "4", "matrix": [0, 4], "x": 4, "y": 0}, | |||
{"label": "5", "matrix": [0, 5], "x": 5, "y": 0}, | |||
{"label": "6", "matrix": [0, 6], "x": 6, "y": 0}, | |||
{"label": "7", "matrix": [0, 7], "x": 7, "y": 0}, | |||
{"label": "8", "matrix": [0, 8], "x": 8, "y": 0}, | |||
{"label": "9", "matrix": [0, 9], "x": 9, "y": 0}, | |||
{"label": "0", "matrix": [0, 10], "x": 10, "y": 0}, | |||
{"label": "-", "matrix": [0, 11], "x": 11, "y": 0}, | |||
{"label": "Backspace", "matrix": [0, 12], "x": 12, "y": 0}, | |||
{"label": "Tab", "matrix": [1, 0], "x": 0, "y": 1}, | |||
{"label": "q", "matrix": [1, 1], "x": 1, "y": 1}, | |||
{"label": "w", "matrix": [1, 2], "x": 2, "y": 1}, | |||
{"label": "e", "matrix": [1, 3], "x": 3, "y": 1}, | |||
{"label": "r", "matrix": [1, 4], "x": 4, "y": 1}, | |||
{"label": "t", "matrix": [1, 5], "x": 5, "y": 1}, | |||
{"label": "y", "matrix": [1, 6], "x": 6, "y": 1}, | |||
{"label": "u", "matrix": [1, 7], "x": 7, "y": 1}, | |||
{"label": "i", "matrix": [1, 8], "x": 8, "y": 1}, | |||
{"label": "o", "matrix": [1, 9], "x": 9, "y": 1}, | |||
{"label": "p", "matrix": [1, 10], "x": 10, "y": 1}, | |||
{"label": "[", "matrix": [1, 11], "x": 11, "y": 1}, | |||
{"label": "]", "matrix": [1, 12], "x": 12, "y": 1}, | |||
{"label": "#", "matrix": [2, 0], "x": 0, "y": 2}, | |||
{"label": "a", "matrix": [2, 1], "x": 1, "y": 2}, | |||
{"label": "s", "matrix": [2, 2], "x": 2, "y": 2}, | |||
{"label": "d", "matrix": [2, 3], "x": 3, "y": 2}, | |||
{"label": "f", "matrix": [2, 4], "x": 4, "y": 2}, | |||
{"label": "g", "matrix": [2, 5], "x": 5, "y": 2}, | |||
{"label": "h", "matrix": [2, 6], "x": 6, "y": 2}, | |||
{"label": "j", "matrix": [2, 7], "x": 7, "y": 2}, | |||
{"label": "k", "matrix": [2, 8], "x": 8, "y": 2}, | |||
{"label": "l", "matrix": [2, 9], "x": 9, "y": 2}, | |||
{"label": ";", "matrix": [2, 10], "x": 10, "y": 2}, | |||
{"label": "'", "matrix": [2, 11], "x": 11, "y": 2}, | |||
{"label": "Enter", "matrix": [2, 12], "x": 12, "y": 2}, | |||
{"label": "Left Shift", "matrix": [3, 0], "x": 0, "y": 3}, | |||
{"label": "\\", "matrix": [3, 1], "x": 1, "y": 3}, | |||
{"label": "z", "matrix": [3, 2], "x": 2, "y": 3}, | |||
{"label": "x", "matrix": [3, 3], "x": 3, "y": 3}, | |||
{"label": "c", "matrix": [3, 4], "x": 4, "y": 3}, | |||
{"label": "v", "matrix": [3, 5], "x": 5, "y": 3}, | |||
{"label": "b", "matrix": [3, 6], "x": 6, "y": 3}, | |||
{"label": "n", "matrix": [3, 7], "x": 7, "y": 3}, | |||
{"label": "m", "matrix": [3, 8], "x": 8, "y": 3}, | |||
{"label": ",", "matrix": [3, 9], "x": 9, "y": 3}, | |||
{"label": ".", "matrix": [3, 10], "x": 10, "y": 3}, | |||
{"label": "Up", "matrix": [3, 11], "x": 11, "y": 3}, | |||
{"label": "/", "matrix": [3, 12], "x": 12, "y": 3}, | |||
{"label": "Ctrl", "matrix": [4, 0], "x": 0, "y": 4}, | |||
{"label": "Menu", "matrix": [4, 1], "x": 1, "y": 4}, | |||
{"label": "Lower", "matrix": [4, 2], "x": 2, "y": 4}, | |||
{"label": "Alt", "matrix": [4, 3], "x": 3, "y": 4}, | |||
{"label": "Raise", "matrix": [4, 4], "x": 4, "y": 4}, | |||
{"label": "Space", "matrix": [4, 5], "x": 5, "y": 4}, | |||
{"label": "Space", "matrix": [4, 6], "x": 6, "y": 4}, | |||
{"label": "Space", "matrix": [4, 7], "x": 7, "y": 4}, | |||
{"label": "Alt Gr", "matrix": [4, 8], "x": 8, "y": 4}, | |||
{"label": "Right Shift", "matrix": [4, 9], "x": 9, "y": 4}, | |||
{"label": "Left", "matrix": [4, 10], "x": 10, "y": 4}, | |||
{"label": "Down", "matrix": [4, 11], "x": 11, "y": 4}, | |||
{"label": "Right", "matrix": [4, 12], "x": 12, "y": 4} | |||
] | |||
} | |||
} | |||
} |
@ -1,15 +0,0 @@ | |||
# Build Options | |||
# change yes to no to disable | |||
# | |||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | |||
MOUSEKEY_ENABLE = yes # Mouse keys | |||
EXTRAKEY_ENABLE = yes # Audio control and System control | |||
CONSOLE_ENABLE = no # Console for debug | |||
COMMAND_ENABLE = no # Commands for debug and configuration | |||
NKRO_ENABLE = yes # Enable N-Key Rollover | |||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | |||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | |||
AUDIO_ENABLE = no # Audio output | |||
ENCODER_ENABLE = yes # Enable encoder | |||
OLED_ENABLE = yes # Enable OLED | |||
WPM_ENABLE = yes # Enable WPM Counter |