mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-26 18:47:24 +06:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
c14abd8c14
241
keyboards/gmmk/pro/ansi/keymaps/mattgauf/ansi.c
Normal file
241
keyboards/gmmk/pro/ansi/keymaps/mattgauf/ansi.c
Normal file
|
@ -0,0 +1,241 @@
|
||||||
|
/* Copyright 2021 Gigahawk
|
||||||
|
*
|
||||||
|
* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
#include "ansi.h"
|
||||||
|
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
led_config_t __flash g_led_config = {{
|
||||||
|
{ 4, NO_LED, NO_LED, 95, 65, 79, 5, 28 },
|
||||||
|
{ 8, 2, 9, 0, 10, 75, 1, 7 },
|
||||||
|
{ 14, 3, 15, NO_LED, 16, 86, 6, 13 },
|
||||||
|
{ 20, 18, 21, 23, 22, 94, 12, 19 },
|
||||||
|
{ 25, 30, 26, 31, 27, 32, 29, 24 },
|
||||||
|
{ 41, 36, 42, 37, 43, 38, 35, 40 },
|
||||||
|
{ 46, 89, 47, 34, 48, 72, 78, 45 },
|
||||||
|
{ 52, 39, 53, 97, 54, 82, 44, 51 },
|
||||||
|
{ 58, 63, 59, 64, NO_LED, 60, 62, 57 },
|
||||||
|
{ 11, 90, 55, 17, 33, 49, NO_LED, 69 },
|
||||||
|
{ NO_LED, 85, 93, 61, 96, 66, 50, 56 }
|
||||||
|
}, {
|
||||||
|
{0, 0}, // 0, ESC, k13
|
||||||
|
{0, 15}, // 1, ~, k16
|
||||||
|
{4, 26}, // 2, Tab, k11
|
||||||
|
{5, 38}, // 3, Caps, k21
|
||||||
|
{9, 49}, // 4, Sh_L, k00
|
||||||
|
{2, 61}, // 5, Ct_L, k06
|
||||||
|
{18, 0}, // 6, F1, k26
|
||||||
|
{14, 15}, // 7, 1, k17
|
||||||
|
{22, 26}, // 8, Q, k10
|
||||||
|
{25, 38}, // 9, A, k12
|
||||||
|
{33, 49}, // 10, Z, k14
|
||||||
|
{20, 61}, // 11, Win_L, k90
|
||||||
|
{33, 0}, // 12, F2, k36
|
||||||
|
{29, 15}, // 13, 2, k27
|
||||||
|
{36, 26}, // 14, W, k20
|
||||||
|
{40, 38}, // 15, S, k22
|
||||||
|
{47, 49}, // 16, X, k24
|
||||||
|
{38, 61}, // 17, Alt_L, k93
|
||||||
|
{47, 0}, // 18, F3, k31
|
||||||
|
{43, 15}, // 19, 3, k37
|
||||||
|
{51, 26}, // 20, E, k30
|
||||||
|
{54, 38}, // 21, D, k32
|
||||||
|
{61, 49}, // 22, C, k34
|
||||||
|
{61, 0}, // 23, F4, k33
|
||||||
|
{58, 15}, // 24, 4, k47
|
||||||
|
{65, 26}, // 25, R, k40
|
||||||
|
{69, 38}, // 26, F, k42
|
||||||
|
{76, 49}, // 27, V, k44
|
||||||
|
{79, 0}, // 28, F5, k07
|
||||||
|
{72, 15}, // 29, 5, k46
|
||||||
|
{79, 26}, // 30, T, k41
|
||||||
|
{83, 38}, // 31, G, k43
|
||||||
|
{90, 49}, // 32, B, k45
|
||||||
|
{92, 61}, // 33, SPACE, k94
|
||||||
|
{94, 0}, // 34, F6, k63
|
||||||
|
{87, 15}, // 35, 6, k56
|
||||||
|
{94, 26}, // 36, Y, k51
|
||||||
|
{98, 38}, // 37, H, k53
|
||||||
|
{105, 49}, // 38, N, k55
|
||||||
|
{108, 0}, // 39, F7, k71
|
||||||
|
{101, 15}, // 40, 7, k57
|
||||||
|
{108, 26}, // 41, U, k50
|
||||||
|
{112, 38}, // 42, J, k52
|
||||||
|
{119, 49}, // 43, M, k54
|
||||||
|
{123, 0}, // 44, F8, k76
|
||||||
|
{116, 15}, // 45, 8, k67
|
||||||
|
{123, 26}, // 46, I, k60
|
||||||
|
{126, 38}, // 47, K, k62
|
||||||
|
{134, 49}, // 48, ,, k64
|
||||||
|
{145, 61}, // 49, Alt_R, k95
|
||||||
|
{141, 0}, // 50, F9, ka6
|
||||||
|
{130, 15}, // 51, 9, k77
|
||||||
|
{137, 26}, // 52, O, k70
|
||||||
|
{141, 38}, // 53, L, k72
|
||||||
|
{148, 49}, // 54, ., k74
|
||||||
|
{159, 61}, // 55, FN, k92
|
||||||
|
{155, 0}, // 56, F10, ka7
|
||||||
|
{145, 15}, // 57, 0, k87
|
||||||
|
{152, 26}, // 58, P, k80
|
||||||
|
{155, 38}, // 59, ;, k82
|
||||||
|
{163, 49}, // 60, ?, k85
|
||||||
|
{170, 0}, // 61, F11, ka3
|
||||||
|
{159, 15}, // 62, -, k86
|
||||||
|
{166, 26}, // 63, [, k81
|
||||||
|
{170, 38}, // 64, ", k83
|
||||||
|
{173, 61}, // 65, Ct_R, k04
|
||||||
|
{184, 0}, // 66, F12, ka5
|
||||||
|
{0, 8}, // 67, LED, l01
|
||||||
|
{224, 8}, // 68, LED, l11
|
||||||
|
{202, 0}, // 69, Prt, k97
|
||||||
|
{0, 15}, // 70, LED, l02
|
||||||
|
{224, 15}, // 71, LED, l12
|
||||||
|
{224, 15}, // 72, Del, k65
|
||||||
|
{0, 21}, // 73, LED, l03
|
||||||
|
{224, 21}, // 74, LED, l13
|
||||||
|
{224, 26}, // 75, PgUp, k15
|
||||||
|
{0, 28}, // 76, LED, l04
|
||||||
|
{224, 28}, // 77, LED, l14
|
||||||
|
{173, 15}, // 78, =, k66
|
||||||
|
{220, 64}, // 79, Right, k05
|
||||||
|
{0, 35}, // 80, LED, l05
|
||||||
|
{224, 35}, // 81, LED, l15
|
||||||
|
{224, 49}, // 82, End, k75
|
||||||
|
{0, 42}, // 83, LED, l06
|
||||||
|
{224, 42}, // 84, LED, l16
|
||||||
|
{195, 15}, // 85, BSpc, ka1
|
||||||
|
{224, 38}, // 86, PgDn, k25
|
||||||
|
{0, 48}, // 87, LED, l07
|
||||||
|
{224, 48}, // 88, LED, l17
|
||||||
|
{181, 26}, // 89, ], k61
|
||||||
|
{182, 49}, // 90, Sh_R, k91
|
||||||
|
{0, 55}, // 91, LED, l08
|
||||||
|
{224, 55}, // 92, LED, l18
|
||||||
|
{199, 26}, // 93, \, ka2
|
||||||
|
{206, 52}, // 94, Up, k35
|
||||||
|
{191, 64}, // 95, Left, k03
|
||||||
|
{193, 38}, // 96, Enter, ka4
|
||||||
|
{206, 64} // 97, Down, k73
|
||||||
|
}, {
|
||||||
|
4, 4, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
|
||||||
|
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
|
||||||
|
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 4, 2, 2, 4, 2, 2,
|
||||||
|
4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4
|
||||||
|
}};
|
||||||
|
|
||||||
|
const aw_led g_aw_leds[DRIVER_LED_TOTAL] = {
|
||||||
|
{0, CS1_SW1, CS2_SW1, CS3_SW1}, // 0, ESC, k13
|
||||||
|
{0, CS4_SW1, CS5_SW1, CS6_SW1}, // 1, ~, k16
|
||||||
|
{0, CS7_SW1, CS8_SW1, CS9_SW1}, // 2, Tab, k11
|
||||||
|
{0, CS10_SW1, CS11_SW1, CS12_SW1}, // 3, Caps, k21
|
||||||
|
{0, CS13_SW1, CS14_SW1, CS15_SW1}, // 4, Sh_L, k00
|
||||||
|
{0, CS16_SW1, CS17_SW1, CS18_SW1}, // 5, Ct_L, k06
|
||||||
|
{0, CS1_SW2, CS2_SW2, CS3_SW2}, // 6, F1, k26
|
||||||
|
{0, CS4_SW2, CS5_SW2, CS6_SW2}, // 7, 1, k17
|
||||||
|
{0, CS7_SW2, CS8_SW2, CS9_SW2}, // 8, Q, k10
|
||||||
|
{0, CS10_SW2, CS11_SW2, CS12_SW2}, // 9, A, k12
|
||||||
|
{0, CS13_SW2, CS14_SW2, CS15_SW2}, // 10, Z, k14
|
||||||
|
{0, CS16_SW2, CS17_SW2, CS18_SW2}, // 11, Win_L, k90
|
||||||
|
{0, CS1_SW3, CS2_SW3, CS3_SW3}, // 12, F2, k36
|
||||||
|
{0, CS4_SW3, CS5_SW3, CS6_SW3}, // 13, 2, k27
|
||||||
|
{0, CS7_SW3, CS8_SW3, CS9_SW3}, // 14, W, k20
|
||||||
|
{0, CS10_SW3, CS11_SW3, CS12_SW3}, // 15, S, k22
|
||||||
|
{0, CS13_SW3, CS14_SW3, CS15_SW3}, // 16, X, k24
|
||||||
|
{0, CS16_SW3, CS17_SW3, CS18_SW3}, // 17, Alt_L, k93
|
||||||
|
{0, CS1_SW4, CS2_SW4, CS3_SW4}, // 18, F3, k31
|
||||||
|
{0, CS4_SW4, CS5_SW4, CS6_SW4}, // 19, 3, k37
|
||||||
|
{0, CS7_SW4, CS8_SW4, CS9_SW4}, // 20, E, k30
|
||||||
|
{0, CS10_SW4, CS11_SW4, CS12_SW4}, // 21, D, k32
|
||||||
|
{0, CS13_SW4, CS14_SW4, CS15_SW4}, // 22, C, k34
|
||||||
|
{0, CS1_SW5, CS2_SW5, CS3_SW5}, // 23, F4, k33
|
||||||
|
{0, CS4_SW5, CS5_SW5, CS6_SW5}, // 24, 4, k47
|
||||||
|
{0, CS7_SW5, CS8_SW5, CS9_SW5}, // 25, R, k40
|
||||||
|
{0, CS10_SW5, CS11_SW5, CS12_SW5}, // 26, F, k42
|
||||||
|
{0, CS13_SW5, CS14_SW5, CS15_SW5}, // 27, V, k44
|
||||||
|
{0, CS1_SW6, CS2_SW6, CS3_SW6}, // 28, F5, k07
|
||||||
|
{0, CS4_SW6, CS5_SW6, CS6_SW6}, // 29, 5, k46
|
||||||
|
{0, CS7_SW6, CS8_SW6, CS9_SW6}, // 30, T, k41
|
||||||
|
{0, CS10_SW6, CS11_SW6, CS12_SW6}, // 31, G, k43
|
||||||
|
{0, CS13_SW6, CS14_SW6, CS15_SW6}, // 32, B, k45
|
||||||
|
{0, CS16_SW6, CS17_SW6, CS18_SW6}, // 33, SPACE, k94
|
||||||
|
{0, CS1_SW7, CS2_SW7, CS3_SW7}, // 34, F6, k63
|
||||||
|
{0, CS4_SW7, CS5_SW7, CS6_SW7}, // 35, 6, k56
|
||||||
|
{0, CS7_SW7, CS8_SW7, CS9_SW7}, // 36, Y, k51
|
||||||
|
{0, CS10_SW7, CS11_SW7, CS12_SW7}, // 37, H, k53
|
||||||
|
{0, CS13_SW7, CS14_SW7, CS15_SW7}, // 38, N, k55
|
||||||
|
{0, CS1_SW8, CS2_SW8, CS3_SW8}, // 39, F7, k71
|
||||||
|
{0, CS4_SW8, CS5_SW8, CS6_SW8}, // 40, 7, k57
|
||||||
|
{0, CS7_SW8, CS8_SW8, CS9_SW8}, // 41, U, k50
|
||||||
|
{0, CS10_SW8, CS11_SW8, CS12_SW8}, // 42, J, k52
|
||||||
|
{0, CS13_SW8, CS14_SW8, CS15_SW8}, // 43, M, k54
|
||||||
|
{0, CS1_SW9, CS2_SW9, CS3_SW9}, // 44, F8, k76
|
||||||
|
{0, CS4_SW9, CS5_SW9, CS6_SW9}, // 45, 8, k67
|
||||||
|
{0, CS7_SW9, CS8_SW9, CS9_SW9}, // 46, I, k60
|
||||||
|
{0, CS10_SW9, CS11_SW9, CS12_SW9}, // 47, K, k62
|
||||||
|
{0, CS13_SW9, CS14_SW9, CS15_SW9}, // 48, ,, k64
|
||||||
|
{0, CS16_SW9, CS17_SW9, CS18_SW9}, // 49, Alt_R, k95
|
||||||
|
{0, CS1_SW10, CS2_SW10, CS3_SW10}, // 50, F9, ka6
|
||||||
|
{0, CS4_SW10, CS5_SW10, CS6_SW10}, // 51, 9, k77
|
||||||
|
{0, CS7_SW10, CS8_SW10, CS9_SW10}, // 52, O, k70
|
||||||
|
{0, CS10_SW10, CS11_SW10, CS12_SW10}, // 53, L, k72
|
||||||
|
{0, CS13_SW10, CS14_SW10, CS15_SW10}, // 54, ., k74
|
||||||
|
{0, CS16_SW10, CS17_SW10, CS18_SW10}, // 55, FN, k92
|
||||||
|
{0, CS1_SW11, CS2_SW11, CS3_SW11}, // 56, F10, ka7
|
||||||
|
{0, CS4_SW11, CS5_SW11, CS6_SW11}, // 57, 0, k87
|
||||||
|
{0, CS7_SW11, CS8_SW11, CS9_SW11}, // 58, P, k80
|
||||||
|
{0, CS10_SW11, CS11_SW11, CS12_SW11}, // 59, ;, k82
|
||||||
|
{0, CS13_SW11, CS14_SW11, CS15_SW11}, // 60, ?, k85
|
||||||
|
{0, CS1_SW12, CS2_SW12, CS3_SW12}, // 61, F11, ka3
|
||||||
|
{0, CS4_SW12, CS5_SW12, CS6_SW12}, // 62, -, k86
|
||||||
|
{0, CS7_SW12, CS8_SW12, CS9_SW12}, // 63, [, k81
|
||||||
|
{0, CS10_SW12, CS11_SW12, CS12_SW12}, // 64, ", k83
|
||||||
|
{0, CS16_SW12, CS17_SW12, CS18_SW12}, // 65, Ct_R, k04
|
||||||
|
|
||||||
|
{1, CS1_SW1, CS2_SW1, CS3_SW1}, // 66, F12, ka5
|
||||||
|
{1, CS13_SW1, CS14_SW1, CS15_SW1}, // 67, LED, l01
|
||||||
|
{1, CS16_SW1, CS17_SW1, CS18_SW1}, // 68, LED, l11
|
||||||
|
{1, CS4_SW2, CS5_SW2, CS6_SW2}, // 69, Prt, k97
|
||||||
|
{1, CS13_SW2, CS14_SW2, CS15_SW2}, // 70, LED, l02
|
||||||
|
{1, CS16_SW2, CS17_SW2, CS18_SW2}, // 71, LED, l12
|
||||||
|
{1, CS4_SW3, CS5_SW3, CS6_SW3}, // 72, Del, k65
|
||||||
|
{1, CS13_SW3, CS14_SW3, CS15_SW3}, // 73, LED, l03
|
||||||
|
{1, CS16_SW3, CS17_SW3, CS18_SW3}, // 74, LED, l13
|
||||||
|
{1, CS4_SW4, CS5_SW4, CS6_SW4}, // 75, PgUp, k15
|
||||||
|
{1, CS13_SW4, CS14_SW4, CS15_SW4}, // 76, LED, l04
|
||||||
|
{1, CS16_SW4, CS17_SW4, CS18_SW4}, // 77, LED, l14
|
||||||
|
{1, CS1_SW5, CS2_SW5, CS3_SW5}, // 78, =, k66
|
||||||
|
{1, CS10_SW5, CS11_SW5, CS12_SW5}, // 79, Right, k05
|
||||||
|
{1, CS13_SW5, CS14_SW5, CS15_SW5}, // 80, LED, l05
|
||||||
|
{1, CS16_SW5, CS17_SW5, CS18_SW5}, // 81, LED, l15
|
||||||
|
{1, CS4_SW6, CS5_SW6, CS6_SW6}, // 82, End, k75
|
||||||
|
{1, CS13_SW6, CS14_SW6, CS15_SW6}, // 83, LED, l06
|
||||||
|
{1, CS16_SW6, CS17_SW6, CS18_SW6}, // 84, LED, l16
|
||||||
|
{1, CS1_SW7, CS2_SW7, CS3_SW7}, // 85, BSpc, ka1
|
||||||
|
{1, CS4_SW7, CS5_SW7, CS6_SW7}, // 86, PgDn, k25
|
||||||
|
{1, CS13_SW7, CS14_SW7, CS15_SW7}, // 87, LED, l07
|
||||||
|
{1, CS16_SW7, CS17_SW7, CS18_SW7}, // 88, LED, l17
|
||||||
|
{1, CS1_SW8, CS2_SW8, CS3_SW8}, // 89, ], k61
|
||||||
|
{1, CS4_SW8, CS5_SW8, CS6_SW8}, // 90, Sh_R, k91
|
||||||
|
{1, CS13_SW8, CS14_SW8, CS15_SW8}, // 91, LED, l08
|
||||||
|
{1, CS16_SW8, CS17_SW8, CS18_SW8}, // 92, LED, l18
|
||||||
|
{1, CS1_SW9, CS2_SW9, CS3_SW9}, // 93, \, ka2
|
||||||
|
{1, CS4_SW9, CS5_SW9, CS6_SW9}, // 94, Up, k35
|
||||||
|
{1, CS4_SW10, CS5_SW10, CS6_SW10}, // 95, Left, k03
|
||||||
|
{1, CS1_SW11, CS2_SW11, CS3_SW11}, // 96, Enter, ka4
|
||||||
|
{1, CS4_SW11, CS5_SW11, CS6_SW11}, // 97, Down, k73
|
||||||
|
};
|
||||||
|
// clang-format on
|
||||||
|
#endif
|
63
keyboards/gmmk/pro/ansi/keymaps/mattgauf/config.h
Normal file
63
keyboards/gmmk/pro/ansi/keymaps/mattgauf/config.h
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
/* Copyright 2021 Matt Gauf
|
||||||
|
*
|
||||||
|
* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
/* Defaults */
|
||||||
|
#define RAW_USAGE_PAGE 0x200
|
||||||
|
#define RAW_USAGE_ID 0x40
|
||||||
|
|
||||||
|
/* Board Features */
|
||||||
|
#define DYNAMIC_MACRO_SIZE 512
|
||||||
|
|
||||||
|
/* RGB Matrix Features */
|
||||||
|
#define RGB_MATRIX_KEYPRESSES
|
||||||
|
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR
|
||||||
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED true
|
||||||
|
|
||||||
|
/* RGB Matrix Framebuffer Config */
|
||||||
|
// #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||||
|
// #define RGB_MATRIX_TYPING_HEATMAP_DECREASE_DELAY_MS 25
|
||||||
|
|
||||||
|
/* RGB Matrix Disabled Effects */
|
||||||
|
#define DISABLE_RGB_MATRIX_ALPHAS_MODS // Static dual hue, speed is hue for secondary hue
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT // Single hue 3 blade spinning pinwheel fades saturation
|
||||||
|
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL // Single hue 3 blade spinning pinwheel fades brightness
|
||||||
|
#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL // Full dual gradients scrolling out to in
|
||||||
|
#define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL // Full gradient spinning pinwheel around center of keyboard
|
||||||
|
#define DISABLE_RGB_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard
|
||||||
|
#define DISABLE_RGB_MATRIX_RAINBOW_BEACON // Full tighter gradient spinning around center of keyboard
|
||||||
|
#define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS // Full dual gradients spinning two halfs of keyboard
|
||||||
|
#define DISABLE_RGB_MATRIX_RAINDROPS // Randomly changes a single key's hue
|
||||||
|
#define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS // Randomly changes a single key's hue and saturation
|
||||||
|
#define DISABLE_RGB_MATRIX_HUE_PENDULUM // Hue shifts up a slight ammount in a wave to the right, then back to the left
|
||||||
|
#define DISABLE_RGB_MATRIX_HUE_WAVE // Hue shifts up a slight ammount and then back down in a wave to the right
|
||||||
|
|
||||||
|
#if defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS)
|
||||||
|
#define DISABLE_RGB_MATRIX_DIGITAL_RAIN // That famous computer simulation
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(RGB_MATRIX_KEYPRESSES) || defined(RGB_MATRIX_KEYRELEASES)
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS // Hue & value pulse the same column and row of a single key hit then fades value out
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS // Hue & value pulse away on the same column and row of a single key hit then fades value out
|
||||||
|
#define DISABLE_RGB_MATRIX_SPLASH // Full gradient & value pulse away from a single key hit then fades value out
|
||||||
|
#define DISABLE_RGB_MATRIX_SOLID_SPLASH // Hue & value pulse away from a single key hit then fades value out
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define DISABLE_RGB_MATRIX_EFFECT_MAX
|
||||||
|
// clang-format on
|
25
keyboards/gmmk/pro/ansi/keymaps/mattgauf/helpers.c
Normal file
25
keyboards/gmmk/pro/ansi/keymaps/mattgauf/helpers.c
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
/* Copyright 2021 Matt Gauf
|
||||||
|
*
|
||||||
|
* 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 "rgb_matrix.h"
|
||||||
|
|
||||||
|
void rgb_matrix_set_color_flags(uint8_t red, uint8_t green, uint8_t blue, uint8_t flags) {
|
||||||
|
for (uint8_t ii = 0; ii < DRIVER_LED_TOTAL; ii++) {
|
||||||
|
if (g_led_config.flags[ii] & flags) {
|
||||||
|
rgb_matrix_set_color(ii, red, green, blue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
220
keyboards/gmmk/pro/ansi/keymaps/mattgauf/keymap.c
Normal file
220
keyboards/gmmk/pro/ansi/keymaps/mattgauf/keymap.c
Normal file
|
@ -0,0 +1,220 @@
|
||||||
|
/* Copyright 2021 Matt Gauf
|
||||||
|
*
|
||||||
|
* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
#include "keymap_helpers.h"
|
||||||
|
|
||||||
|
|
||||||
|
enum custom_codes {
|
||||||
|
SET_MP = RGB_M_P,
|
||||||
|
SET_MB = RGB_M_B,
|
||||||
|
SET_MR = RGB_M_R,
|
||||||
|
|
||||||
|
MG_F17 = SAFE_RANGE,
|
||||||
|
MG_F18,
|
||||||
|
MG_F19
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
enum layer_names {
|
||||||
|
_DEFAULT = 0,
|
||||||
|
_EFFECTS,
|
||||||
|
_UTILITY,
|
||||||
|
_DFUMODE
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// static uint8_t rgb_pin_fn_column[] = {PIN_DEL,PIN_PGUP,PIN_PGDN,PIN_END};
|
||||||
|
// static uint8_t rgb_pin_left_underglow[] = {PIN_LED_L01,PIN_LED_L02,PIN_LED_L03,PIN_LED_L04,PIN_LED_L05,PIN_LED_L06,PIN_LED_L07,PIN_LED_L08};
|
||||||
|
// static uint8_t rgb_pin_right_underglow[] = {PIN_LED_L11,PIN_LED_L12,PIN_LED_L13,PIN_LED_L14,PIN_LED_L15,PIN_LED_L16,PIN_LED_L17,PIN_LED_L18};
|
||||||
|
|
||||||
|
|
||||||
|
#define MODS_SHIFT ((get_mods() | get_oneshot_mods()) & MOD_MASK_SHIFT)
|
||||||
|
#define MODS_CTRL ((get_mods() | get_oneshot_mods()) & MOD_MASK_CTRL)
|
||||||
|
#define MODS_ALT ((get_mods() | get_oneshot_mods()) & MOD_MASK_ALT)
|
||||||
|
#define MODS_GUI ((get_mods() | get_oneshot_mods()) & MOD_MASK_GUI)
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[_DEFAULT] = LAYOUT(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, MG_F17, KC_MUTE,
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME,
|
||||||
|
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_BSLS, KC_PGUP,
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
|
||||||
|
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, MO(_EFFECTS), KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[_EFFECTS] = LAYOUT(_______, KC_F13, KC_F14, KC_F15, KC_F16, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, MG_F18, _______,
|
||||||
|
_______, SET_MP, SET_MB, SET_MR, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MOD,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_RMOD,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SPI,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, _______, RGB_SAI, RGB_SPD,
|
||||||
|
_______, _______, _______, _______, TG(_UTILITY), MO(_DFUMODE), _______, RGB_HUD, RGB_SAD, RGB_HUI),
|
||||||
|
|
||||||
|
[_UTILITY] = LAYOUT(_______, _______, _______, _______, _______, _______, _______, _______, _______, DM_PLY1, DM_PLY2, DM_REC1, DM_REC2, DM_RSTP, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||||
|
|
||||||
|
[_DFUMODE] = LAYOUT(RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, MG_F19, DEBUG,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||||
|
};
|
||||||
|
// Runs constantly in the background, in a loop.
|
||||||
|
void rgb_matrix_indicators_user(void) {
|
||||||
|
if (rgb_matrix_get_flags() & (LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER)) {
|
||||||
|
|
||||||
|
if (IS_LAYER_ON(_UTILITY)) {
|
||||||
|
rgb_matrix_set_color(PIN_F9, LEDGREE);
|
||||||
|
rgb_matrix_set_color(PIN_F10, LEDGREE);
|
||||||
|
rgb_matrix_set_color(PIN_F11, LED_RED);
|
||||||
|
rgb_matrix_set_color(PIN_F12, LED_RED);
|
||||||
|
rgb_matrix_set_color(PIN_PRINT, LEDTEAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (get_highest_layer(layer_state)) {
|
||||||
|
case _DFUMODE:
|
||||||
|
rgb_matrix_set_color_all(LED_OFF);
|
||||||
|
rgb_matrix_set_color(PIN_ESC, LED_RED);
|
||||||
|
rgb_matrix_set_color(PIN_PRINT, LEDORAN);
|
||||||
|
return;
|
||||||
|
case _EFFECTS:
|
||||||
|
rgb_matrix_set_color(PIN_PRINT, LEDGREE);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (host_keyboard_led_state().caps_lock) {
|
||||||
|
rgb_matrix_set_color(PIN_CAPS, RGB_WHITE);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Called on start
|
||||||
|
void dynamic_macro_record_start_user(void) {
|
||||||
|
dprint("-- Recording Started\n");
|
||||||
|
layer_on(_UTILITY);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Called on end
|
||||||
|
void dynamic_macro_record_end_user(int8_t direction) {
|
||||||
|
dprint("-- Recording Ended\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Called on playback
|
||||||
|
void dynamic_macro_play_user(int8_t direction) {
|
||||||
|
dprint("-- Recording Playing\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Runs on encoder event
|
||||||
|
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
|
uint8_t curr_mod = get_mods();
|
||||||
|
|
||||||
|
if (IS_LAYER_ON(_EFFECTS)) {
|
||||||
|
if (clockwise) {
|
||||||
|
rgb_matrix_increase_val();
|
||||||
|
} else {
|
||||||
|
rgb_matrix_decrease_val();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (MODS_GUI) {
|
||||||
|
if (MODS_GUI && MODS_SHIFT) {
|
||||||
|
clear_mods();
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code16(LSG(KC_Z));
|
||||||
|
} else {
|
||||||
|
tap_code16(LGUI(KC_Z));
|
||||||
|
}
|
||||||
|
set_mods(curr_mod);
|
||||||
|
} else if (MODS_GUI && MODS_ALT) {
|
||||||
|
clear_mods();
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_RIGHT);
|
||||||
|
} else {
|
||||||
|
tap_code(KC_LEFT);
|
||||||
|
}
|
||||||
|
set_mods(curr_mod);
|
||||||
|
} else {
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code16(LGUI(KC_TAB));
|
||||||
|
} else {
|
||||||
|
tap_code16(LSG(KC_TAB));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_VOLU);
|
||||||
|
} else {
|
||||||
|
tap_code(KC_VOLD);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Runs on key event
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case MG_F17:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
tap_code16(HYPR(KC_F17));
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
case MG_F18:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
tap_code16(HYPR(KC_F18));
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
case MG_F19:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
tap_code16(HYPR(KC_F19));
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
case RGB_TOG:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
switch (rgb_matrix_get_flags()) {
|
||||||
|
case LED_FLAG_ALL:
|
||||||
|
rgb_matrix_set_flags(LED_FLAG_NONE);
|
||||||
|
break;
|
||||||
|
case LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER:
|
||||||
|
rgb_matrix_set_flags(LED_FLAG_ALL);
|
||||||
|
break;
|
||||||
|
case LED_FLAG_UNDERGLOW:
|
||||||
|
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
default:
|
||||||
|
return true; // Process all other keycodes normally
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// clang-format on
|
165
keyboards/gmmk/pro/ansi/keymaps/mattgauf/keymap_helpers.h
Normal file
165
keyboards/gmmk/pro/ansi/keymaps/mattgauf/keymap_helpers.h
Normal file
|
@ -0,0 +1,165 @@
|
||||||
|
/* Copyright 2021 Matt Gauf
|
||||||
|
*
|
||||||
|
* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include "rgb_matrix_types.h"
|
||||||
|
|
||||||
|
/* Color Codes */
|
||||||
|
#define LEDWHIT 0xff, 0xff, 0xff
|
||||||
|
#define LED_RED 0xff, 0x00, 0x00
|
||||||
|
#define LEDORAN 0xff, 0x29, 0x00
|
||||||
|
#define LEDGOLD 0xff, 0x80, 0x00
|
||||||
|
#define LEDYELL 0xff, 0xff, 0x00
|
||||||
|
#define LEDCHAR 0x80, 0xff, 0x00
|
||||||
|
#define LEDGREE 0x00, 0xff, 0x00
|
||||||
|
#define LEDFOAM 0x00, 0xff, 0x40
|
||||||
|
#define LEDTEAL 0x00, 0x80, 0xff
|
||||||
|
#define LEDBLUE 0x00, 0x00, 0xff
|
||||||
|
#define LEDPURP 0x80, 0x00, 0xff
|
||||||
|
#define LEDMAGE 0xff, 0x00, 0xff
|
||||||
|
#define LEDPINK 0xff, 0x00, 0x80
|
||||||
|
#define LEDBLAC 0x00, 0x00, 0x00
|
||||||
|
#define LED_OFF 0x00, 0x00, 0x00
|
||||||
|
|
||||||
|
/* Color Functions */
|
||||||
|
void rgb_matrix_set_color_flags(uint8_t red, uint8_t green, uint8_t blue, uint8_t flags);
|
||||||
|
|
||||||
|
/* Function Row */
|
||||||
|
#define PIN_ESC 0
|
||||||
|
#define PIN_F1 6
|
||||||
|
#define PIN_F2 12
|
||||||
|
#define PIN_F3 18
|
||||||
|
#define PIN_F4 23
|
||||||
|
#define PIN_F5 28
|
||||||
|
#define PIN_F6 34
|
||||||
|
#define PIN_F7 39
|
||||||
|
#define PIN_F8 44
|
||||||
|
#define PIN_F9 50
|
||||||
|
#define PIN_F10 56
|
||||||
|
#define PIN_F11 61
|
||||||
|
#define PIN_F12 66
|
||||||
|
#define PIN_PRINT 69
|
||||||
|
|
||||||
|
/* Number Row */
|
||||||
|
#define PIN_0 57
|
||||||
|
#define PIN_1 7
|
||||||
|
#define PIN_2 13
|
||||||
|
#define PIN_3 19
|
||||||
|
#define PIN_4 24
|
||||||
|
#define PIN_5 29
|
||||||
|
#define PIN_6 35
|
||||||
|
#define PIN_7 40
|
||||||
|
#define PIN_8 45
|
||||||
|
#define PIN_9 51
|
||||||
|
|
||||||
|
/* QWERTY */
|
||||||
|
#define PIN_A 9
|
||||||
|
#define PIN_B 32
|
||||||
|
#define PIN_C 22
|
||||||
|
#define PIN_D 21
|
||||||
|
#define PIN_E 20
|
||||||
|
#define PIN_F 26
|
||||||
|
#define PIN_G 31
|
||||||
|
#define PIN_H 37
|
||||||
|
#define PIN_I 46
|
||||||
|
#define PIN_J 42
|
||||||
|
#define PIN_K 47
|
||||||
|
#define PIN_L 53
|
||||||
|
#define PIN_M 43
|
||||||
|
#define PIN_N 38
|
||||||
|
#define PIN_O 52
|
||||||
|
#define PIN_P 58
|
||||||
|
#define PIN_Q 8
|
||||||
|
#define PIN_R 25
|
||||||
|
#define PIN_S 15
|
||||||
|
#define PIN_T 30
|
||||||
|
#define PIN_U 41
|
||||||
|
#define PIN_V 27
|
||||||
|
#define PIN_W 14
|
||||||
|
#define PIN_X 16
|
||||||
|
#define PIN_Y 36
|
||||||
|
#define PIN_Z 10
|
||||||
|
|
||||||
|
/* Symbols */
|
||||||
|
#define PIN_MINUS 62
|
||||||
|
#define PIN_EQUAL 78
|
||||||
|
#define PIN_RBRACKET 89
|
||||||
|
#define PIN_LBRACKET 63
|
||||||
|
#define PIN_BSLASH 93
|
||||||
|
#define PIN_SLASH 60
|
||||||
|
#define PIN_SCOLON 59
|
||||||
|
#define PIN_QUOTE 64
|
||||||
|
#define PIN_COMMA 48
|
||||||
|
#define PIN_DOT 54
|
||||||
|
#define PIN_GRAVE 1
|
||||||
|
|
||||||
|
/* Indentation */
|
||||||
|
#define PIN_TAB 2
|
||||||
|
#define PIN_SPACE 33
|
||||||
|
|
||||||
|
/* Line Control */
|
||||||
|
#define PIN_BSPACE 85
|
||||||
|
#define PIN_ENTER 96
|
||||||
|
|
||||||
|
/* Indicator */
|
||||||
|
#define PIN_CAPS 3
|
||||||
|
|
||||||
|
/* Left Modifiers */
|
||||||
|
#define PIN_LSHIFT 4
|
||||||
|
#define PIN_LCTRL 5
|
||||||
|
#define PIN_LALT 17
|
||||||
|
#define PIN_LGUI 11
|
||||||
|
|
||||||
|
/* Right Modifiers */
|
||||||
|
#define PIN_RSHIFT 90
|
||||||
|
#define PIN_RCTRL 65
|
||||||
|
#define PIN_RALT 49
|
||||||
|
#define PIN_FN 55
|
||||||
|
|
||||||
|
/* Arrow Keys */
|
||||||
|
#define PIN_UP 94
|
||||||
|
#define PIN_DOWN 97
|
||||||
|
#define PIN_LEFT 95
|
||||||
|
#define PIN_RIGHT 79
|
||||||
|
|
||||||
|
/* Fn Column */
|
||||||
|
#define PIN_DEL 72 // ┳ TOP
|
||||||
|
#define PIN_PGUP 75 // ┃
|
||||||
|
#define PIN_PGDN 86 // ┃
|
||||||
|
#define PIN_END 82 // ┻ BOTTOM
|
||||||
|
|
||||||
|
/* Left Side Underglow */
|
||||||
|
#define PIN_LED_L01 67 // ┳ TOP
|
||||||
|
#define PIN_LED_L02 70 // ┃
|
||||||
|
#define PIN_LED_L03 73 // ┃
|
||||||
|
#define PIN_LED_L04 76 // ┃
|
||||||
|
#define PIN_LED_L05 80 // ┃
|
||||||
|
#define PIN_LED_L06 83 // ┃
|
||||||
|
#define PIN_LED_L07 87 // ┃
|
||||||
|
#define PIN_LED_L08 91 // ┻ BOTTOM
|
||||||
|
|
||||||
|
/* Right Side Underglow */
|
||||||
|
#define PIN_LED_L11 68 // ┳ TOP
|
||||||
|
#define PIN_LED_L12 71 // ┃
|
||||||
|
#define PIN_LED_L13 74 // ┃
|
||||||
|
#define PIN_LED_L14 77 // ┃
|
||||||
|
#define PIN_LED_L15 81 // ┃
|
||||||
|
#define PIN_LED_L16 84 // ┃
|
||||||
|
#define PIN_LED_L17 88 // ┃
|
||||||
|
#define PIN_LED_L18 92 // ┻ BOTTOM
|
||||||
|
|
||||||
|
// clang-format on
|
52
keyboards/gmmk/pro/ansi/keymaps/mattgauf/readme.md
Normal file
52
keyboards/gmmk/pro/ansi/keymaps/mattgauf/readme.md
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
# @mattgauf's GMMK Pro layout
|
||||||
|
|
||||||
|
### `_DEFAULT`
|
||||||
|
> *Based on the default ansi layout, this keymap contains the following changes to the default layer.*
|
||||||
|
- Screensaver: `HYPER(F17)`
|
||||||
|
- `KC_PSCR` → `MG_F17`
|
||||||
|
- `KC_DEL` → `KC_HOME`
|
||||||
|
|
||||||
|
> *Additionally the encoder will follow new rules when holding a key.*
|
||||||
|
- `KC_GUI` will cycle through applications (macOS variant)
|
||||||
|
- `KC_GUI + KC_ALT` will tap the left and right arrows.
|
||||||
|
- `KC_GUI + KC_SHIFT` will tap Undo and Redo (macOS variant)
|
||||||
|
|
||||||
|
### `_EFFECTS`
|
||||||
|
> *The function layer is now used for additional layer access, effect keys, and media keys (following the Macbook Pro fn key layout).*
|
||||||
|
|
||||||
|
> *Additionally while effects is active, the encoder will only adjust the brightness of the RGB matrix.*
|
||||||
|
- The RGB matrix effect and speed keys are located on the right hand vertical nav column.
|
||||||
|
- `KC_HOME` → `RGB_MOD`
|
||||||
|
- `KC_PGUP` → `RGB_RMOD`
|
||||||
|
- `KC_PGDN` → `RGB_SPI`
|
||||||
|
- `KC_END` → `RGB_SPD`
|
||||||
|
- The RGB matrix Hue, Saturation keys are mapped to the arrow keys.
|
||||||
|
- `KC_UP` → `RGB_SAI`
|
||||||
|
- `KC_DN` → `RGB_SAD`
|
||||||
|
- `KC_LEFT` → `RGB_HUD`
|
||||||
|
- `KC_RIGHT` → `RGB_HUI`
|
||||||
|
- The RGB matrix toggle is intercepted in process_record_user() cycling through the `LED_FLAG` modifiers. (`NONE`, `UNDERGLOW`, `KEYLIGHT`, `ALL`)
|
||||||
|
- `KC_SLSH` → `RGB_TOG`
|
||||||
|
- Hibernate: `HYPER(F18)`
|
||||||
|
- `MG_F17` → `MG_F18`
|
||||||
|
|
||||||
|
|
||||||
|
### `_UTILITY`
|
||||||
|
*The utility layer is currently used for remapping* `KF_F9` *to* `KC_F12` *&* `MG_F17` *to the dynamic macro keys.*
|
||||||
|
- Playback
|
||||||
|
- `KC_F9` → `DM_PLY1`
|
||||||
|
- `KC_F10` → `DM_PLY2`
|
||||||
|
- Record
|
||||||
|
- `KC_F11` → `DM_REC1`
|
||||||
|
- `KC_F12` → `DM_REC2`
|
||||||
|
- Stop Recording
|
||||||
|
- `MG_F17` → `DM_RSTP`
|
||||||
|
|
||||||
|
### `_DFUMODE`
|
||||||
|
> *The final layer is used for resetting the board or triggering an immediate shutdown.*
|
||||||
|
- DFU Mode
|
||||||
|
- `KC_ESC` → `RESET`
|
||||||
|
- Shutdown: `HYPER(F19)`
|
||||||
|
- `MG_F17` → `MG_F19`
|
||||||
|
- Encoder press, triggers debug output.
|
||||||
|
- `KC_MUTE` → `DEBUG`
|
6
keyboards/gmmk/pro/ansi/keymaps/mattgauf/rules.mk
Normal file
6
keyboards/gmmk/pro/ansi/keymaps/mattgauf/rules.mk
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# Build rules
|
||||||
|
LIB_SRC += ansi.c
|
||||||
|
LIB_SRC += helpers.c
|
||||||
|
|
||||||
|
# Overrides
|
||||||
|
MOUSEKEY_ENABLE = no # Mouse keys
|
|
@ -29,7 +29,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
see tmk_core/common/action_tapping.c */
|
see tmk_core/common/action_tapping.c */
|
||||||
|
|
||||||
#undef OLED_UPDATE_INTERVAL
|
#undef OLED_UPDATE_INTERVAL
|
||||||
#define OLED_UPDATE_INTERVAL 50
|
#ifdef DEBUG_MATRIX_SCAN_RATE
|
||||||
|
# define OLED_UPDATE_INTERVAL 500
|
||||||
|
#else
|
||||||
|
# define OLED_UPDATE_INTERVAL 50
|
||||||
|
#endif
|
||||||
|
|
||||||
// place overrides here
|
// place overrides here
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
/* Copyright 2021 mtei
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
void matrix_output_unselect_delay(uint8_t line, bool key_pressed) {
|
||||||
|
/* If none of the keys are pressed,
|
||||||
|
* there is no need to wait for time for the next line. */
|
||||||
|
if (key_pressed) {
|
||||||
|
# ifdef MATRIX_IO_DELAY
|
||||||
|
# if MATRIX_IO_DELAY > 0
|
||||||
|
wait_us(MATRIX_IO_DELAY);
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
wait_us(30);
|
||||||
|
# endif
|
||||||
|
}
|
||||||
|
}
|
|
@ -64,6 +64,55 @@ void matrix_update(struct CharacterMatrix *dest,
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
static char *sprint_decimal(char *buf, int data) {
|
||||||
|
if (data > 9) {
|
||||||
|
buf = sprint_decimal(buf, data/10);
|
||||||
|
}
|
||||||
|
*buf++ = "0123456789"[data%10];
|
||||||
|
*buf = '\0';
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
static char *sprint_hex(char *buf, uint32_t data) {
|
||||||
|
if (data > 0xf) {
|
||||||
|
buf = sprint_hex(buf, data/0x10);
|
||||||
|
}
|
||||||
|
*buf++ = "0123456789abcdef"[data & 0xf];
|
||||||
|
*buf = '\0';
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
char *sprints(char *buf, char *src) {
|
||||||
|
while (*src) {
|
||||||
|
*buf++ = *src++;
|
||||||
|
}
|
||||||
|
*buf = '\0';
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
char *sprintx(char *buf, char *leadstr, uint32_t data) {
|
||||||
|
buf = sprints(buf, leadstr);
|
||||||
|
buf = sprint_hex(buf, data);
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
char *sprintd(char *buf, char *leadstr, int data) {
|
||||||
|
buf = sprints(buf, leadstr);
|
||||||
|
buf = sprint_decimal(buf, data);
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
char *sprint2d(char *buf, char *leadstr, int data) {
|
||||||
|
buf = sprints(buf, leadstr);
|
||||||
|
if (data > 99) {
|
||||||
|
return sprint_decimal(buf, data);
|
||||||
|
}
|
||||||
|
if (data < 10) {
|
||||||
|
*buf++ = ' ';
|
||||||
|
}
|
||||||
|
return sprint_decimal(buf, data);
|
||||||
|
}
|
||||||
|
|
||||||
# ifdef SSD1306OLED
|
# ifdef SSD1306OLED
|
||||||
static void render_logo(struct CharacterMatrix *matrix) {
|
static void render_logo(struct CharacterMatrix *matrix) {
|
||||||
# else
|
# else
|
||||||
|
@ -76,20 +125,35 @@ static void render_logo(void) {
|
||||||
0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,
|
0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,
|
||||||
0};
|
0};
|
||||||
oled_write_P(helix_logo, false);
|
oled_write_P(helix_logo, false);
|
||||||
# ifdef RGBLIGHT_ENABLE
|
|
||||||
char buf[30];
|
char buf[30];
|
||||||
|
char *bufp;
|
||||||
|
# ifdef RGBLIGHT_ENABLE
|
||||||
if (RGBLIGHT_MODES > 1 && rgblight_is_enabled()) {
|
if (RGBLIGHT_MODES > 1 && rgblight_is_enabled()) {
|
||||||
snprintf(buf, sizeof(buf), " LED %2d: %d,%d,%d ",
|
bufp = sprint2d(buf, " LED ", rgblight_get_mode());
|
||||||
rgblight_get_mode(),
|
# ifdef DEBUG_MATRIX_SCAN_RATE
|
||||||
rgblight_get_hue()/RGBLIGHT_HUE_STEP,
|
bufp = sprintd(bufp, " scan:", get_matrix_scan_rate());
|
||||||
rgblight_get_sat()/RGBLIGHT_SAT_STEP,
|
# else
|
||||||
rgblight_get_val()/RGBLIGHT_VAL_STEP);
|
bufp = sprintd(bufp, ": ", rgblight_get_hue()/RGBLIGHT_HUE_STEP);
|
||||||
|
bufp = sprintd(bufp, ",", rgblight_get_sat()/RGBLIGHT_SAT_STEP);
|
||||||
|
bufp = sprintd(bufp, ",", rgblight_get_val()/RGBLIGHT_VAL_STEP);
|
||||||
|
bufp = sprints(bufp, " ");
|
||||||
|
# endif
|
||||||
oled_write(buf, false);
|
oled_write(buf, false);
|
||||||
# ifndef SSD1306OLED
|
# ifndef SSD1306OLED
|
||||||
} else {
|
} else {
|
||||||
|
# ifdef DEBUG_MATRIX_SCAN_RATE
|
||||||
|
bufp = sprintd(buf, " scan:", get_matrix_scan_rate());
|
||||||
|
oled_write(buf, false);
|
||||||
|
# endif
|
||||||
oled_write_P( PSTR("\n"), false);
|
oled_write_P( PSTR("\n"), false);
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
# else
|
||||||
|
# ifdef DEBUG_MATRIX_SCAN_RATE
|
||||||
|
bufp = sprintd(buf, " scan:", get_matrix_scan_rate());
|
||||||
|
bufp = sprints(bufp, " ");
|
||||||
|
oled_write(buf, false);
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,6 +206,11 @@ void render_status(void) {
|
||||||
int name_num;
|
int name_num;
|
||||||
uint32_t lstate;
|
uint32_t lstate;
|
||||||
oled_write_P(layer_names[current_default_layer], false);
|
oled_write_P(layer_names[current_default_layer], false);
|
||||||
|
# ifdef DEBUG_MATRIX_SCAN_RATE
|
||||||
|
char buf[16];
|
||||||
|
sprintd(buf, " scan:", get_matrix_scan_rate());
|
||||||
|
oled_write(buf, false);
|
||||||
|
# endif
|
||||||
oled_write_P(PSTR("\n"), false);
|
oled_write_P(PSTR("\n"), false);
|
||||||
for (lstate = layer_state, name_num = 0;
|
for (lstate = layer_state, name_num = 0;
|
||||||
lstate && name_num < sizeof(layer_names)/sizeof(char *);
|
lstate && name_num < sizeof(layer_names)/sizeof(char *);
|
||||||
|
@ -152,14 +221,13 @@ void render_status(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
oled_write_P(PSTR("\n"), false);
|
||||||
|
|
||||||
// Host Keyboard LED Status
|
// Host Keyboard LED Status
|
||||||
char led[40];
|
led_t led_state = host_keyboard_led_state();
|
||||||
snprintf(led, sizeof(led), "\n%s %s %s",
|
oled_write_P(led_state.num_lock ? PSTR("NUMLOCK ") : PSTR(" "), false);
|
||||||
(host_keyboard_leds() & (1<<USB_LED_NUM_LOCK)) ? "NUMLOCK" : " ",
|
oled_write_P(led_state.caps_lock ? PSTR("CAPS ") : PSTR(" "), false);
|
||||||
(host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) ? "CAPS" : " ",
|
oled_write_P(led_state.scroll_lock ? PSTR("SCLK ") : PSTR(" "), false);
|
||||||
(host_keyboard_leds() & (1<<USB_LED_SCROLL_LOCK)) ? "SCLK" : " ");
|
|
||||||
oled_write(led, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ifdef SSD1306OLED
|
# ifdef SSD1306OLED
|
||||||
|
|
|
@ -25,9 +25,11 @@ HELIX_ROWS = 5 # Helix Rows is 4 or 5
|
||||||
# LED_ANIMATIONS = yes # LED animations
|
# LED_ANIMATIONS = yes # LED animations
|
||||||
# IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
# IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
||||||
|
|
||||||
|
CUSTOM_DELAY = yes
|
||||||
|
|
||||||
ifneq ($(strip $(HELIX)),)
|
ifneq ($(strip $(HELIX)),)
|
||||||
define KEYMAP_OPTION_PARSE
|
define KEYMAP_OPTION_PARSE
|
||||||
# parse 'dispoff', 'consloe', 'na', 'ani', 'mini-ani'
|
# parse 'dispoff', 'consloe', 'na', 'ani', 'mini-ani', 'scan-api',
|
||||||
$(if $(SHOW_PARCE),$(info parse -$1-)) #debug
|
$(if $(SHOW_PARCE),$(info parse -$1-)) #debug
|
||||||
ifeq ($(strip $1),dispoff)
|
ifeq ($(strip $1),dispoff)
|
||||||
OLED_ENABLE = no
|
OLED_ENABLE = no
|
||||||
|
@ -72,6 +74,11 @@ ifneq ($(strip $(HELIX)),)
|
||||||
ifneq ($(filter nolto no-lto no_lto,$(strip $1)),)
|
ifneq ($(filter nolto no-lto no_lto,$(strip $1)),)
|
||||||
LTO_ENABLE = no
|
LTO_ENABLE = no
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(strip $1),scan-api)
|
||||||
|
# use DEBUG_MATRIX_SCAN_RATE
|
||||||
|
# see docs/newbs_testing_debugging.md
|
||||||
|
DEBUG_MATRIX_SCAN_RATE_ENABLE = api
|
||||||
|
endif
|
||||||
endef # end of KEYMAP_OPTION_PARSE
|
endef # end of KEYMAP_OPTION_PARSE
|
||||||
|
|
||||||
COMMA=,
|
COMMA=,
|
||||||
|
@ -95,3 +102,7 @@ endif
|
||||||
ifeq ($(strip $(OLED_ENABLE)), yes)
|
ifeq ($(strip $(OLED_ENABLE)), yes)
|
||||||
SRC += oled_display.c
|
SRC += oled_display.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(strip $(CUSTOM_DELAY)),yes)
|
||||||
|
SRC += matrix_output_unselect_delay.c
|
||||||
|
endif
|
||||||
|
|
|
@ -29,7 +29,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
see tmk_core/common/action_tapping.c */
|
see tmk_core/common/action_tapping.c */
|
||||||
|
|
||||||
#undef OLED_UPDATE_INTERVAL
|
#undef OLED_UPDATE_INTERVAL
|
||||||
#define OLED_UPDATE_INTERVAL 50
|
#ifdef DEBUG_MATRIX_SCAN_RATE
|
||||||
|
# define OLED_UPDATE_INTERVAL 500
|
||||||
|
#else
|
||||||
|
# define OLED_UPDATE_INTERVAL 50
|
||||||
|
#endif
|
||||||
|
|
||||||
// place overrides here
|
// place overrides here
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
/* Copyright 2021 mtei
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
void matrix_output_unselect_delay(uint8_t line, bool key_pressed) {
|
||||||
|
/* If none of the keys are pressed,
|
||||||
|
* there is no need to wait for time for the next line. */
|
||||||
|
if (key_pressed) {
|
||||||
|
# ifdef MATRIX_IO_DELAY
|
||||||
|
# if MATRIX_IO_DELAY > 0
|
||||||
|
wait_us(MATRIX_IO_DELAY);
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
wait_us(30);
|
||||||
|
# endif
|
||||||
|
}
|
||||||
|
}
|
|
@ -64,6 +64,55 @@ void matrix_update(struct CharacterMatrix *dest,
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
static char *sprint_decimal(char *buf, int data) {
|
||||||
|
if (data > 9) {
|
||||||
|
buf = sprint_decimal(buf, data/10);
|
||||||
|
}
|
||||||
|
*buf++ = "0123456789"[data%10];
|
||||||
|
*buf = '\0';
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
static char *sprint_hex(char *buf, uint32_t data) {
|
||||||
|
if (data > 0xf) {
|
||||||
|
buf = sprint_hex(buf, data/0x10);
|
||||||
|
}
|
||||||
|
*buf++ = "0123456789abcdef"[data & 0xf];
|
||||||
|
*buf = '\0';
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
char *sprints(char *buf, char *src) {
|
||||||
|
while (*src) {
|
||||||
|
*buf++ = *src++;
|
||||||
|
}
|
||||||
|
*buf = '\0';
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
char *sprintx(char *buf, char *leadstr, uint32_t data) {
|
||||||
|
buf = sprints(buf, leadstr);
|
||||||
|
buf = sprint_hex(buf, data);
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
char *sprintd(char *buf, char *leadstr, int data) {
|
||||||
|
buf = sprints(buf, leadstr);
|
||||||
|
buf = sprint_decimal(buf, data);
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
char *sprint2d(char *buf, char *leadstr, int data) {
|
||||||
|
buf = sprints(buf, leadstr);
|
||||||
|
if (data > 99) {
|
||||||
|
return sprint_decimal(buf, data);
|
||||||
|
}
|
||||||
|
if (data < 10) {
|
||||||
|
*buf++ = ' ';
|
||||||
|
}
|
||||||
|
return sprint_decimal(buf, data);
|
||||||
|
}
|
||||||
|
|
||||||
# ifdef SSD1306OLED
|
# ifdef SSD1306OLED
|
||||||
static void render_logo(struct CharacterMatrix *matrix) {
|
static void render_logo(struct CharacterMatrix *matrix) {
|
||||||
# else
|
# else
|
||||||
|
@ -76,20 +125,35 @@ static void render_logo(void) {
|
||||||
0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,
|
0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,
|
||||||
0};
|
0};
|
||||||
oled_write_P(helix_logo, false);
|
oled_write_P(helix_logo, false);
|
||||||
# ifdef RGBLIGHT_ENABLE
|
|
||||||
char buf[30];
|
char buf[30];
|
||||||
|
char *bufp;
|
||||||
|
# ifdef RGBLIGHT_ENABLE
|
||||||
if (RGBLIGHT_MODES > 1 && rgblight_is_enabled()) {
|
if (RGBLIGHT_MODES > 1 && rgblight_is_enabled()) {
|
||||||
snprintf(buf, sizeof(buf), " LED %2d: %d,%d,%d ",
|
bufp = sprint2d(buf, " LED ", rgblight_get_mode());
|
||||||
rgblight_get_mode(),
|
# ifdef DEBUG_MATRIX_SCAN_RATE
|
||||||
rgblight_get_hue()/RGBLIGHT_HUE_STEP,
|
bufp = sprintd(bufp, " scan:", get_matrix_scan_rate());
|
||||||
rgblight_get_sat()/RGBLIGHT_SAT_STEP,
|
# else
|
||||||
rgblight_get_val()/RGBLIGHT_VAL_STEP);
|
bufp = sprintd(bufp, ": ", rgblight_get_hue()/RGBLIGHT_HUE_STEP);
|
||||||
|
bufp = sprintd(bufp, ",", rgblight_get_sat()/RGBLIGHT_SAT_STEP);
|
||||||
|
bufp = sprintd(bufp, ",", rgblight_get_val()/RGBLIGHT_VAL_STEP);
|
||||||
|
bufp = sprints(bufp, " ");
|
||||||
|
# endif
|
||||||
oled_write(buf, false);
|
oled_write(buf, false);
|
||||||
# ifndef SSD1306OLED
|
# ifndef SSD1306OLED
|
||||||
} else {
|
} else {
|
||||||
|
# ifdef DEBUG_MATRIX_SCAN_RATE
|
||||||
|
bufp = sprintd(buf, " scan:", get_matrix_scan_rate());
|
||||||
|
oled_write(buf, false);
|
||||||
|
# endif
|
||||||
oled_write_P( PSTR("\n"), false);
|
oled_write_P( PSTR("\n"), false);
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
# else
|
||||||
|
# ifdef DEBUG_MATRIX_SCAN_RATE
|
||||||
|
bufp = sprintd(buf, " scan:", get_matrix_scan_rate());
|
||||||
|
bufp = sprints(bufp, " ");
|
||||||
|
oled_write(buf, false);
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,6 +206,11 @@ void render_status(void) {
|
||||||
int name_num;
|
int name_num;
|
||||||
uint32_t lstate;
|
uint32_t lstate;
|
||||||
oled_write_P(layer_names[current_default_layer], false);
|
oled_write_P(layer_names[current_default_layer], false);
|
||||||
|
# ifdef DEBUG_MATRIX_SCAN_RATE
|
||||||
|
char buf[16];
|
||||||
|
sprintd(buf, " scan:", get_matrix_scan_rate());
|
||||||
|
oled_write(buf, false);
|
||||||
|
# endif
|
||||||
oled_write_P(PSTR("\n"), false);
|
oled_write_P(PSTR("\n"), false);
|
||||||
for (lstate = layer_state, name_num = 0;
|
for (lstate = layer_state, name_num = 0;
|
||||||
lstate && name_num < sizeof(layer_names)/sizeof(char *);
|
lstate && name_num < sizeof(layer_names)/sizeof(char *);
|
||||||
|
@ -152,14 +221,13 @@ void render_status(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
oled_write_P(PSTR("\n"), false);
|
||||||
|
|
||||||
// Host Keyboard LED Status
|
// Host Keyboard LED Status
|
||||||
char led[40];
|
led_t led_state = host_keyboard_led_state();
|
||||||
snprintf(led, sizeof(led), "\n%s %s %s",
|
oled_write_P(led_state.num_lock ? PSTR("NUMLOCK ") : PSTR(" "), false);
|
||||||
(host_keyboard_leds() & (1<<USB_LED_NUM_LOCK)) ? "NUMLOCK" : " ",
|
oled_write_P(led_state.caps_lock ? PSTR("CAPS ") : PSTR(" "), false);
|
||||||
(host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) ? "CAPS" : " ",
|
oled_write_P(led_state.scroll_lock ? PSTR("SCLK ") : PSTR(" "), false);
|
||||||
(host_keyboard_leds() & (1<<USB_LED_SCROLL_LOCK)) ? "SCLK" : " ");
|
|
||||||
oled_write(led, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ifdef SSD1306OLED
|
# ifdef SSD1306OLED
|
||||||
|
|
|
@ -14,9 +14,11 @@ ENCODER_ENABLE = no
|
||||||
LTO_ENABLE = no # if firmware size over limit, try this option
|
LTO_ENABLE = no # if firmware size over limit, try this option
|
||||||
LED_ANIMATIONS = yes
|
LED_ANIMATIONS = yes
|
||||||
|
|
||||||
|
CUSTOM_DELAY = yes
|
||||||
|
|
||||||
ifneq ($(strip $(HELIX)),)
|
ifneq ($(strip $(HELIX)),)
|
||||||
define KEYMAP_OPTION_PARSE
|
define KEYMAP_OPTION_PARSE
|
||||||
# parse 'dispoff', 'consle', 'back', 'oled', 'no-ani', 'mini-ani', 'lto', 'no-lto', 'no-enc', 'scan'
|
# parse 'dispoff', 'consle', 'back', 'oled', 'no-ani', 'mini-ani', 'lto', 'no-lto', 'no-enc', 'scan', 'scan-api'
|
||||||
$(if $(SHOW_PARCE),$(info parse .$1.)) #debug
|
$(if $(SHOW_PARCE),$(info parse .$1.)) #debug
|
||||||
ifeq ($(strip $1),dispoff)
|
ifeq ($(strip $1),dispoff)
|
||||||
OLED_ENABLE = no
|
OLED_ENABLE = no
|
||||||
|
@ -63,6 +65,11 @@ ifneq ($(strip $(HELIX)),)
|
||||||
# see docs/newbs_testing_debugging.md
|
# see docs/newbs_testing_debugging.md
|
||||||
DEBUG_MATRIX_SCAN_RATE_ENABLE = yes
|
DEBUG_MATRIX_SCAN_RATE_ENABLE = yes
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(strip $1),scan-api)
|
||||||
|
# use DEBUG_MATRIX_SCAN_RATE
|
||||||
|
# see docs/newbs_testing_debugging.md
|
||||||
|
DEBUG_MATRIX_SCAN_RATE_ENABLE = api
|
||||||
|
endif
|
||||||
endef # end of KEYMAP_OPTION_PARSE
|
endef # end of KEYMAP_OPTION_PARSE
|
||||||
|
|
||||||
COMMA=,
|
COMMA=,
|
||||||
|
@ -80,6 +87,10 @@ ifeq ($(strip $(LED_ANIMATIONS)), mini)
|
||||||
OPT_DEFS += -DLED_ANIMATIONS_LEVEL=1
|
OPT_DEFS += -DLED_ANIMATIONS_LEVEL=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(strip $(CUSTOM_DELAY)),yes)
|
||||||
|
SRC += matrix_output_unselect_delay.c
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(DEBUG_CONFIG)), yes)
|
ifeq ($(strip $(DEBUG_CONFIG)), yes)
|
||||||
OPT_DEFS += -DDEBUG_CONFIG
|
OPT_DEFS += -DDEBUG_CONFIG
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -24,3 +24,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR
|
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR
|
||||||
#define RGB_MATRIX_STARTUP_VAL 100
|
#define RGB_MATRIX_STARTUP_VAL 100
|
||||||
#define HSV_BACKLIGHT_COLOR HSV_BLUE
|
#define HSV_BACKLIGHT_COLOR HSV_BLUE
|
||||||
|
#define HSV_GAME_COLOR 170, 255, 192 // darker blue
|
||||||
|
#define HSV_CONTROL_COLOR 0, 255, 192 // darker red
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
#define BASE 0
|
||||||
|
#define GAME 1
|
||||||
|
#define CTRL 2
|
||||||
#define MODS_SHIFT (get_mods() & MOD_MASK_SHIFT)
|
#define MODS_SHIFT (get_mods() & MOD_MASK_SHIFT)
|
||||||
#define MODS_CTRL (get_mods() & MOD_MASK_CTRL)
|
#define MODS_CTRL (get_mods() & MOD_MASK_CTRL)
|
||||||
#define MODS_ALT (get_mods() & MOD_MASK_ALT)
|
#define MODS_ALT (get_mods() & MOD_MASK_ALT)
|
||||||
|
@ -43,34 +46,60 @@ enum ctrl_keycodes {
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[0] = LAYOUT(
|
[BASE] = LAYOUT(
|
||||||
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_PSCR, KC_SLCK, KC_PAUS,
|
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_PSCR, KC_SLCK, KC_PAUS,
|
||||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||||
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_BSLS, KC_DEL, KC_END, KC_PGDN,
|
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_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||||
KC_NLCK, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_F24, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
KC_NLCK, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(CTRL), KC_F24, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
),
|
),
|
||||||
[1] = LAYOUT(
|
[GAME] = LAYOUT(
|
||||||
KC_EJCT, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_MUTE, _______, _______,
|
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_PSCR, KC_SLCK, KC_PAUS,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY, KC_MSTP, KC_VOLU,
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||||
_______, RGB_SPD, RGB_VAI, RGB_SPI, RGB_HUI, RGB_SAI, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_MNXT, KC_VOLD,
|
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_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||||
KC_CAPS, RGB_RMOD,RGB_VAD, RGB_MOD, RGB_HUD, RGB_SAD, _______, _______, _______, _______, _______, _______, _______,
|
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
_______, RGB_TOG, _______, _______, _______, MD_BOOT, NK_TOGG, _______, _______, _______, _______, _______, KC_BRIU,
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_MRWD, KC_BRID, KC_MFFD
|
KC_HOME, KC_END, KC_LALT, KC_SPC, KC_RALT, MO(CTRL), KC_F24, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
),
|
||||||
|
[CTRL] = LAYOUT(
|
||||||
|
KC_EJCT, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_MUTE, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY, KC_MSTP, KC_VOLU,
|
||||||
|
_______, RGB_SPD, RGB_VAI, RGB_SPI, RGB_HUI, RGB_SAI, _______, _______, _______, _______, _______, TO(BASE), TO(GAME), _______, KC_MPRV, KC_MNXT, KC_VOLD,
|
||||||
|
KC_CAPS, RGB_RMOD, RGB_VAD, RGB_MOD, RGB_HUD, RGB_SAD, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, RGB_TOG, _______, _______, _______, MD_BOOT, NK_TOGG, _______, _______, _______, _______, _______, KC_BRIU,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, KC_MRWD, KC_BRID, KC_MFFD
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Init keyboard static color with underglow off.
|
// Init keyboard static color with underglow off.
|
||||||
void matrix_init_user(void) {
|
void matrix_init_user(void) {
|
||||||
rgblight_sethsv(HSV_BACKLIGHT_COLOR);
|
rgblight_sethsv(HSV_BACKLIGHT_COLOR);
|
||||||
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR);
|
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Runs constantly in the background, in a loop.
|
// Runs constantly in the background, in a loop.
|
||||||
void matrix_scan_user(void) {
|
void matrix_scan_user(void) {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Set backlight color based on active layer
|
||||||
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
|
switch (get_highest_layer(state)) {
|
||||||
|
case GAME: {
|
||||||
|
rgblight_sethsv_noeeprom(HSV_GAME_COLOR);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case CTRL: {
|
||||||
|
rgblight_sethsv_noeeprom(HSV_CONTROL_COLOR);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
rgblight_sethsv_noeeprom(HSV_BACKLIGHT_COLOR);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
static uint32_t key_timer;
|
static uint32_t key_timer;
|
||||||
|
|
||||||
|
@ -116,28 +145,28 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
return false;
|
return false;
|
||||||
case RGB_TOG:
|
case RGB_TOG:
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
switch (rgb_matrix_get_flags()) {
|
switch (rgb_matrix_get_flags()) {
|
||||||
case LED_FLAG_ALL: {
|
case LED_FLAG_ALL: {
|
||||||
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR);
|
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR);
|
||||||
rgb_matrix_set_color_all(RGB_OFF);
|
rgb_matrix_set_color_all(RGB_OFF);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case (LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR): {
|
case (LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR): {
|
||||||
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
|
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
|
||||||
rgb_matrix_set_color_all(RGB_OFF);
|
rgb_matrix_set_color_all(RGB_OFF);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case LED_FLAG_UNDERGLOW: {
|
case LED_FLAG_UNDERGLOW: {
|
||||||
rgb_matrix_set_flags(LED_FLAG_NONE);
|
rgb_matrix_set_flags(LED_FLAG_NONE);
|
||||||
rgb_matrix_disable_noeeprom();
|
rgb_matrix_disable_noeeprom();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: {
|
default: {
|
||||||
rgb_matrix_set_flags(LED_FLAG_ALL);
|
rgb_matrix_set_flags(LED_FLAG_ALL);
|
||||||
rgb_matrix_enable_noeeprom();
|
rgb_matrix_enable_noeeprom();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Massdrop Ctrl r-pufky
|
# Massdrop Ctrl r-pufky
|
||||||
|
|
||||||
Gaming QOL improvments; enabling useful keys for left hand & in-game overlay usage.
|
Gaming QOL improvments; enabling useful keys for left hand & in-game overlay
|
||||||
|
usage.
|
||||||
|
|
||||||
## Layers
|
## Layers
|
||||||
|
|
||||||
|
@ -8,21 +9,36 @@ Gaming QOL improvments; enabling useful keys for left hand & in-game overlay usa
|
||||||
|
|
||||||
![Typing Layer](https://i.imgur.com/qEBaupV.png)
|
![Typing Layer](https://i.imgur.com/qEBaupV.png)
|
||||||
|
|
||||||
Layer optimized to enable useful keys for gaming without changing typing state, as well as specific
|
Layer optimized to enable useful keys for typing and casual gaming without
|
||||||
in-game overlay keys.
|
changing typing state, as well as specific in-game overlay keys.
|
||||||
|
|
||||||
* Left Ctrl: Easier control key usage without always setting capslock.
|
* Left Ctrl: Easier control key usage without always setting capslock.
|
||||||
* Num Lock: Unique non visible character key for additional left-hand input options in game.
|
* Num Lock: Unique non visible character key for additional left-hand input
|
||||||
* Fn: Enable layer 1, temporal.
|
options in game.
|
||||||
* F24: Unique non-visible F24 key; no windows function. Map to in-game overlays.
|
* Fn: Enable Control layer, temporal.
|
||||||
|
* F24: Non-visible F24 key; no windows function. Map to in-game overlays.
|
||||||
### Function Layer
|
|
||||||
|
|
||||||
![Function Layer](https://i.imgur.com/2qGNwVQ.png)
|
### Gaming Layer
|
||||||
|
|
||||||
|
![Gaming Layer](https://i.imgur.com/q4wGbFQ.png)
|
||||||
|
|
||||||
|
Replaces super key with additional non-printing inputs.
|
||||||
|
|
||||||
|
* Home: Non visible character key for additional input options in game.
|
||||||
|
* End: Non visible character key for additional input options in game.
|
||||||
|
* Left Ctrl: Easier control key usage without always setting capslock.
|
||||||
|
* Fn: Enable Control layer, temporal.
|
||||||
|
* F24: Non-visible F24 key; no windows function. Map to in-game overlays.
|
||||||
|
|
||||||
|
### Control Layer
|
||||||
|
|
||||||
|
![Function Layer](https://i.imgur.com/7Nalcyp.png)
|
||||||
|
|
||||||
* Purple: Media keys. Note CD Eject on Escape, and OSX Prev/Next on Arrows.
|
* Purple: Media keys. Note CD Eject on Escape, and OSX Prev/Next on Arrows.
|
||||||
* Blue: Keyboard adminstration. Toggle NKRO (N Key Rollover) and enable bootloader.
|
* Blue: Keyboard adminstration. Toggle NKRO (N Key Rollover) and enable
|
||||||
|
bootloader.
|
||||||
* Orange: RGB Controls.
|
* Orange: RGB Controls.
|
||||||
|
* Green: Toggle gaming layer.
|
||||||
* Capslock: Now requires the use of the function key.
|
* Capslock: Now requires the use of the function key.
|
||||||
* F13-F24: Extended function keys.
|
* F13-F24: Extended function keys.
|
||||||
* Bright+/-: Monitor Brightness.
|
* Bright+/-: Monitor Brightness.
|
||||||
|
|
|
@ -71,3 +71,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
//#define NO_ACTION_ONESHOT
|
//#define NO_ACTION_ONESHOT
|
||||||
//#define NO_ACTION_MACRO
|
//#define NO_ACTION_MACRO
|
||||||
//#define NO_ACTION_FUNCTION
|
//#define NO_ACTION_FUNCTION
|
||||||
|
|
||||||
|
#define TAP_CODE_DELAY 50
|
||||||
|
|
|
@ -6,8 +6,8 @@ MCU = STM32F401
|
||||||
#
|
#
|
||||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
MOUSEKEY_ENABLE = no # Mouse keys
|
MOUSEKEY_ENABLE = no # Mouse keys
|
||||||
EXTRAKEY_ENABLE = no # Audio control and System control
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = yes # Console for debug
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
|
22
keyboards/moonlander/halconf.h
Normal file
22
keyboards/moonlander/halconf.h
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
/* Copyright 2021 QMK
|
||||||
|
*
|
||||||
|
* 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 3 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define HAL_USE_I2C TRUE
|
||||||
|
#define HAL_USE_GPT TRUE
|
||||||
|
#define HAL_USE_DAC TRUE
|
||||||
|
|
||||||
|
#include_next <halconf.h>
|
39
keyboards/moonlander/mcuconf.h
Normal file
39
keyboards/moonlander/mcuconf.h
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
/* Copyright 2021 QMK
|
||||||
|
*
|
||||||
|
* 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 3 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include_next "mcuconf.h"
|
||||||
|
|
||||||
|
// for i2c expander, and ISSI
|
||||||
|
#undef STM32_I2C_USE_I2C1
|
||||||
|
#define STM32_I2C_USE_I2C1 TRUE
|
||||||
|
|
||||||
|
// for future hardwar
|
||||||
|
#undef STM32_I2C_USE_I2C2
|
||||||
|
#define STM32_I2C_USE_I2C2 TRUE
|
||||||
|
|
||||||
|
// for audio
|
||||||
|
#undef STM32_DAC_USE_DAC1_CH1
|
||||||
|
#define STM32_DAC_USE_DAC1_CH1 TRUE
|
||||||
|
#undef STM32_DAC_USE_DAC1_CH2
|
||||||
|
#define STM32_DAC_USE_DAC1_CH2 TRUE
|
||||||
|
#undef STM32_GPT_USE_TIM6
|
||||||
|
#define STM32_GPT_USE_TIM6 TRUE
|
||||||
|
#undef STM32_GPT_USE_TIM7
|
||||||
|
#define STM32_GPT_USE_TIM7 TRUE
|
||||||
|
#undef STM32_GPT_USE_TIM8
|
||||||
|
#define STM32_GPT_USE_TIM8 TRUE
|
|
@ -1,6 +1,5 @@
|
||||||
# MCU name
|
# MCU name
|
||||||
MCU = STM32F303
|
MCU = STM32F303
|
||||||
BOARD = QMK_PROTON_C
|
|
||||||
|
|
||||||
# Bootloader selection
|
# Bootloader selection
|
||||||
BOOTLOADER = stm32-dfu
|
BOOTLOADER = stm32-dfu
|
||||||
|
@ -8,7 +7,7 @@ BOOTLOADER = stm32-dfu
|
||||||
# Build Options
|
# Build Options
|
||||||
# change yes to no to disable
|
# change yes to no to disable
|
||||||
#
|
#
|
||||||
BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite
|
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = yes # Console for debug
|
CONSOLE_ENABLE = yes # Console for debug
|
||||||
|
|
|
@ -198,6 +198,101 @@
|
||||||
{"label":"\u2192", "x":17.25, "y":5.5}
|
{"label":"\u2192", "x":17.25, "y":5.5}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"LAYOUT_tkl_ansi_tsangan": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"Esc", "x":0, "y":0},
|
||||||
|
{"label":"F1", "x":2, "y":0},
|
||||||
|
{"label":"F2", "x":3, "y":0},
|
||||||
|
{"label":"F3", "x":4, "y":0},
|
||||||
|
{"label":"F4", "x":5, "y":0},
|
||||||
|
{"label":"F5", "x":6.5, "y":0},
|
||||||
|
{"label":"F6", "x":7.5, "y":0},
|
||||||
|
{"label":"F7", "x":8.5, "y":0},
|
||||||
|
{"label":"F8", "x":9.5, "y":0},
|
||||||
|
{"label":"F9", "x":11, "y":0},
|
||||||
|
{"label":"F10", "x":12, "y":0},
|
||||||
|
{"label":"F11", "x":13, "y":0},
|
||||||
|
{"label":"F12", "x":14, "y":0},
|
||||||
|
{"label":"PrtSc", "x":15.25, "y":0},
|
||||||
|
{"label":"Scroll Lock", "x":16.25, "y":0},
|
||||||
|
{"label":"Pause", "x":17.25, "y":0},
|
||||||
|
|
||||||
|
{"label":"~", "x":0, "y":1.5},
|
||||||
|
{"label":"!", "x":1, "y":1.5},
|
||||||
|
{"label":"@", "x":2, "y":1.5},
|
||||||
|
{"label":"#", "x":3, "y":1.5},
|
||||||
|
{"label":"$", "x":4, "y":1.5},
|
||||||
|
{"label":"%", "x":5, "y":1.5},
|
||||||
|
{"label":"^", "x":6, "y":1.5},
|
||||||
|
{"label":"&", "x":7, "y":1.5},
|
||||||
|
{"label":"*", "x":8, "y":1.5},
|
||||||
|
{"label":"(", "x":9, "y":1.5},
|
||||||
|
{"label":")", "x":10, "y":1.5},
|
||||||
|
{"label":"_", "x":11, "y":1.5},
|
||||||
|
{"label":"+", "x":12, "y":1.5},
|
||||||
|
{"label":"Bksp", "x":13, "y":1.5, "w":2},
|
||||||
|
{"label":"Insert", "x":15.25, "y":1.5},
|
||||||
|
{"label":"Home", "x":16.25, "y":1.5},
|
||||||
|
{"label":"PgUp", "x":17.25, "y":1.5},
|
||||||
|
|
||||||
|
{"label":"Tab", "x":0, "y":2.5, "w":1.5},
|
||||||
|
{"label":"Q", "x":1.5, "y":2.5},
|
||||||
|
{"label":"W", "x":2.5, "y":2.5},
|
||||||
|
{"label":"E", "x":3.5, "y":2.5},
|
||||||
|
{"label":"R", "x":4.5, "y":2.5},
|
||||||
|
{"label":"T", "x":5.5, "y":2.5},
|
||||||
|
{"label":"Y", "x":6.5, "y":2.5},
|
||||||
|
{"label":"U", "x":7.5, "y":2.5},
|
||||||
|
{"label":"I", "x":8.5, "y":2.5},
|
||||||
|
{"label":"O", "x":9.5, "y":2.5},
|
||||||
|
{"label":"P", "x":10.5, "y":2.5},
|
||||||
|
{"label":"{", "x":11.5, "y":2.5},
|
||||||
|
{"label":"}", "x":12.5, "y":2.5},
|
||||||
|
{"label":"|", "x":13.5, "y":2.5, "w":1.5},
|
||||||
|
{"label":"Delete", "x":15.25, "y":2.5},
|
||||||
|
{"label":"End", "x":16.25, "y":2.5},
|
||||||
|
{"label":"PgDn", "x":17.25, "y":2.5},
|
||||||
|
|
||||||
|
{"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
|
||||||
|
{"label":"A", "x":1.75, "y":3.5},
|
||||||
|
{"label":"S", "x":2.75, "y":3.5},
|
||||||
|
{"label":"D", "x":3.75, "y":3.5},
|
||||||
|
{"label":"F", "x":4.75, "y":3.5},
|
||||||
|
{"label":"G", "x":5.75, "y":3.5},
|
||||||
|
{"label":"H", "x":6.75, "y":3.5},
|
||||||
|
{"label":"J", "x":7.75, "y":3.5},
|
||||||
|
{"label":"K", "x":8.75, "y":3.5},
|
||||||
|
{"label":"L", "x":9.75, "y":3.5},
|
||||||
|
{"label":":", "x":10.75, "y":3.5},
|
||||||
|
{"label":"\"", "x":11.75, "y":3.5},
|
||||||
|
{"label":"Enter", "x":12.75, "y":3.5, "w":2.25},
|
||||||
|
|
||||||
|
{"label":"Shift", "x":0, "y":4.5, "w":2.25},
|
||||||
|
{"label":"Z", "x":2.25, "y":4.5},
|
||||||
|
{"label":"X", "x":3.25, "y":4.5},
|
||||||
|
{"label":"C", "x":4.25, "y":4.5},
|
||||||
|
{"label":"V", "x":5.25, "y":4.5},
|
||||||
|
{"label":"B", "x":6.25, "y":4.5},
|
||||||
|
{"label":"N", "x":7.25, "y":4.5},
|
||||||
|
{"label":"M", "x":8.25, "y":4.5},
|
||||||
|
{"label":"<", "x":9.25, "y":4.5},
|
||||||
|
{"label":">", "x":10.25, "y":4.5},
|
||||||
|
{"label":"?", "x":11.25, "y":4.5},
|
||||||
|
{"label":"Shift", "x":12.25, "y":4.5, "w":2.75},
|
||||||
|
{"label":"\u2191", "x":16.25, "y":4.5},
|
||||||
|
|
||||||
|
{"label":"Ctrl", "x":0, "y":5.5, "w":1.5},
|
||||||
|
{"label":"Win", "x":1.5, "y":5.5},
|
||||||
|
{"label":"Alt", "x":2.5, "y":5.5, "w":1.5},
|
||||||
|
{ "x":4, "y":5.5, "w":7},
|
||||||
|
{"label":"Win", "x":11, "y":5.5, "w":1.5},
|
||||||
|
{"label":"Menu", "x":12.5, "y":5.5},
|
||||||
|
{"label":"Ctrl", "x":13.5, "y":5.5, "w":1.5},
|
||||||
|
{"label":"\u2190", "x":15.25, "y":5.5},
|
||||||
|
{"label":"\u2193", "x":16.25, "y":5.5},
|
||||||
|
{"label":"\u2192", "x":17.25, "y":5.5}
|
||||||
|
]
|
||||||
|
},
|
||||||
"LAYOUT_tkl_ansi_wkl": {
|
"LAYOUT_tkl_ansi_wkl": {
|
||||||
"layout": [
|
"layout": [
|
||||||
{"label":"Esc", "x":0, "y":0},
|
{"label":"Esc", "x":0, "y":0},
|
||||||
|
@ -290,6 +385,293 @@
|
||||||
{"label":"\u2193", "x":16.25, "y":5.5},
|
{"label":"\u2193", "x":16.25, "y":5.5},
|
||||||
{"label":"\u2192", "x":17.25, "y":5.5}
|
{"label":"\u2192", "x":17.25, "y":5.5}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_tkl_iso": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"Esc", "x":0, "y":0},
|
||||||
|
{"label":"F1", "x":2, "y":0},
|
||||||
|
{"label":"F2", "x":3, "y":0},
|
||||||
|
{"label":"F3", "x":4, "y":0},
|
||||||
|
{"label":"F4", "x":5, "y":0},
|
||||||
|
{"label":"F5", "x":6.5, "y":0},
|
||||||
|
{"label":"F6", "x":7.5, "y":0},
|
||||||
|
{"label":"F7", "x":8.5, "y":0},
|
||||||
|
{"label":"F8", "x":9.5, "y":0},
|
||||||
|
{"label":"F9", "x":11, "y":0},
|
||||||
|
{"label":"F10", "x":12, "y":0},
|
||||||
|
{"label":"F11", "x":13, "y":0},
|
||||||
|
{"label":"F12", "x":14, "y":0},
|
||||||
|
{"label":"PrtSc", "x":15.25, "y":0},
|
||||||
|
{"label":"Scroll Lock", "x":16.25, "y":0},
|
||||||
|
{"label":"Pause", "x":17.25, "y":0},
|
||||||
|
|
||||||
|
{"label":"~", "x":0, "y":1.5},
|
||||||
|
{"label":"!", "x":1, "y":1.5},
|
||||||
|
{"label":"@", "x":2, "y":1.5},
|
||||||
|
{"label":"#", "x":3, "y":1.5},
|
||||||
|
{"label":"$", "x":4, "y":1.5},
|
||||||
|
{"label":"%", "x":5, "y":1.5},
|
||||||
|
{"label":"^", "x":6, "y":1.5},
|
||||||
|
{"label":"&", "x":7, "y":1.5},
|
||||||
|
{"label":"*", "x":8, "y":1.5},
|
||||||
|
{"label":"(", "x":9, "y":1.5},
|
||||||
|
{"label":")", "x":10, "y":1.5},
|
||||||
|
{"label":"_", "x":11, "y":1.5},
|
||||||
|
{"label":"+", "x":12, "y":1.5},
|
||||||
|
{"label":"Bksp", "x":13, "y":1.5, "w":2},
|
||||||
|
{"label":"Insert", "x":15.25, "y":1.5},
|
||||||
|
{"label":"Home", "x":16.25, "y":1.5},
|
||||||
|
{"label":"PgUp", "x":17.25, "y":1.5},
|
||||||
|
|
||||||
|
{"label":"Tab", "x":0, "y":2.5, "w":1.5},
|
||||||
|
{"label":"Q", "x":1.5, "y":2.5},
|
||||||
|
{"label":"W", "x":2.5, "y":2.5},
|
||||||
|
{"label":"E", "x":3.5, "y":2.5},
|
||||||
|
{"label":"R", "x":4.5, "y":2.5},
|
||||||
|
{"label":"T", "x":5.5, "y":2.5},
|
||||||
|
{"label":"Y", "x":6.5, "y":2.5},
|
||||||
|
{"label":"U", "x":7.5, "y":2.5},
|
||||||
|
{"label":"I", "x":8.5, "y":2.5},
|
||||||
|
{"label":"O", "x":9.5, "y":2.5},
|
||||||
|
{"label":"P", "x":10.5, "y":2.5},
|
||||||
|
{"label":"{", "x":11.5, "y":2.5},
|
||||||
|
{"label":"}", "x":12.5, "y":2.5},
|
||||||
|
{"label":"Delete", "x":15.25, "y":2.5},
|
||||||
|
{"label":"End", "x":16.25, "y":2.5},
|
||||||
|
{"label":"PgDn", "x":17.25, "y":2.5},
|
||||||
|
|
||||||
|
{"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
|
||||||
|
{"label":"A", "x":1.75, "y":3.5},
|
||||||
|
{"label":"S", "x":2.75, "y":3.5},
|
||||||
|
{"label":"D", "x":3.75, "y":3.5},
|
||||||
|
{"label":"F", "x":4.75, "y":3.5},
|
||||||
|
{"label":"G", "x":5.75, "y":3.5},
|
||||||
|
{"label":"H", "x":6.75, "y":3.5},
|
||||||
|
{"label":"J", "x":7.75, "y":3.5},
|
||||||
|
{"label":"K", "x":8.75, "y":3.5},
|
||||||
|
{"label":"L", "x":9.75, "y":3.5},
|
||||||
|
{"label":":", "x":10.75, "y":3.5},
|
||||||
|
{"label":"\"", "x":11.75, "y":3.5},
|
||||||
|
{"label":"~", "x":12.75, "y":3.5},
|
||||||
|
{"label":"Enter", "x":13.75, "y":2.5, "w":1.25, "h":2},
|
||||||
|
|
||||||
|
{"label":"Shift", "x":0, "y":4.5, "w":1.25},
|
||||||
|
{"label":"NUBS", "x":1.25, "y":4.5},
|
||||||
|
{"label":"Z", "x":2.25, "y":4.5},
|
||||||
|
{"label":"X", "x":3.25, "y":4.5},
|
||||||
|
{"label":"C", "x":4.25, "y":4.5},
|
||||||
|
{"label":"V", "x":5.25, "y":4.5},
|
||||||
|
{"label":"B", "x":6.25, "y":4.5},
|
||||||
|
{"label":"N", "x":7.25, "y":4.5},
|
||||||
|
{"label":"M", "x":8.25, "y":4.5},
|
||||||
|
{"label":"<", "x":9.25, "y":4.5},
|
||||||
|
{"label":">", "x":10.25, "y":4.5},
|
||||||
|
{"label":"?", "x":11.25, "y":4.5},
|
||||||
|
{"label":"Shift", "x":12.25, "y":4.5, "w":2.75},
|
||||||
|
{"label":"\u2191", "x":16.25, "y":4.5},
|
||||||
|
|
||||||
|
{"label":"Ctrl", "x":0, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Win", "x":1.25, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Alt", "x":2.5, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Space", "x":3.75, "y":5.5, "w":6.25},
|
||||||
|
{"label":"Alt", "x":10, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Win", "x":11.25, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Menu", "x":12.5, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25},
|
||||||
|
{"label":"\u2190", "x":15.25, "y":5.5},
|
||||||
|
{"label":"\u2193", "x":16.25, "y":5.5},
|
||||||
|
{"label":"\u2192", "x":17.25, "y":5.5}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_tkl_iso_tsangan": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"Esc", "x":0, "y":0},
|
||||||
|
{"label":"F1", "x":2, "y":0},
|
||||||
|
{"label":"F2", "x":3, "y":0},
|
||||||
|
{"label":"F3", "x":4, "y":0},
|
||||||
|
{"label":"F4", "x":5, "y":0},
|
||||||
|
{"label":"F5", "x":6.5, "y":0},
|
||||||
|
{"label":"F6", "x":7.5, "y":0},
|
||||||
|
{"label":"F7", "x":8.5, "y":0},
|
||||||
|
{"label":"F8", "x":9.5, "y":0},
|
||||||
|
{"label":"F9", "x":11, "y":0},
|
||||||
|
{"label":"F10", "x":12, "y":0},
|
||||||
|
{"label":"F11", "x":13, "y":0},
|
||||||
|
{"label":"F12", "x":14, "y":0},
|
||||||
|
{"label":"PrtSc", "x":15.25, "y":0},
|
||||||
|
{"label":"Scroll Lock", "x":16.25, "y":0},
|
||||||
|
{"label":"Pause", "x":17.25, "y":0},
|
||||||
|
|
||||||
|
{"label":"~", "x":0, "y":1.5},
|
||||||
|
{"label":"!", "x":1, "y":1.5},
|
||||||
|
{"label":"@", "x":2, "y":1.5},
|
||||||
|
{"label":"#", "x":3, "y":1.5},
|
||||||
|
{"label":"$", "x":4, "y":1.5},
|
||||||
|
{"label":"%", "x":5, "y":1.5},
|
||||||
|
{"label":"^", "x":6, "y":1.5},
|
||||||
|
{"label":"&", "x":7, "y":1.5},
|
||||||
|
{"label":"*", "x":8, "y":1.5},
|
||||||
|
{"label":"(", "x":9, "y":1.5},
|
||||||
|
{"label":")", "x":10, "y":1.5},
|
||||||
|
{"label":"_", "x":11, "y":1.5},
|
||||||
|
{"label":"+", "x":12, "y":1.5},
|
||||||
|
{"label":"Bksp", "x":13, "y":1.5, "w":2},
|
||||||
|
{"label":"Insert", "x":15.25, "y":1.5},
|
||||||
|
{"label":"Home", "x":16.25, "y":1.5},
|
||||||
|
{"label":"PgUp", "x":17.25, "y":1.5},
|
||||||
|
|
||||||
|
{"label":"Tab", "x":0, "y":2.5, "w":1.5},
|
||||||
|
{"label":"Q", "x":1.5, "y":2.5},
|
||||||
|
{"label":"W", "x":2.5, "y":2.5},
|
||||||
|
{"label":"E", "x":3.5, "y":2.5},
|
||||||
|
{"label":"R", "x":4.5, "y":2.5},
|
||||||
|
{"label":"T", "x":5.5, "y":2.5},
|
||||||
|
{"label":"Y", "x":6.5, "y":2.5},
|
||||||
|
{"label":"U", "x":7.5, "y":2.5},
|
||||||
|
{"label":"I", "x":8.5, "y":2.5},
|
||||||
|
{"label":"O", "x":9.5, "y":2.5},
|
||||||
|
{"label":"P", "x":10.5, "y":2.5},
|
||||||
|
{"label":"{", "x":11.5, "y":2.5},
|
||||||
|
{"label":"}", "x":12.5, "y":2.5},
|
||||||
|
{"label":"Delete", "x":15.25, "y":2.5},
|
||||||
|
{"label":"End", "x":16.25, "y":2.5},
|
||||||
|
{"label":"PgDn", "x":17.25, "y":2.5},
|
||||||
|
|
||||||
|
{"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
|
||||||
|
{"label":"A", "x":1.75, "y":3.5},
|
||||||
|
{"label":"S", "x":2.75, "y":3.5},
|
||||||
|
{"label":"D", "x":3.75, "y":3.5},
|
||||||
|
{"label":"F", "x":4.75, "y":3.5},
|
||||||
|
{"label":"G", "x":5.75, "y":3.5},
|
||||||
|
{"label":"H", "x":6.75, "y":3.5},
|
||||||
|
{"label":"J", "x":7.75, "y":3.5},
|
||||||
|
{"label":"K", "x":8.75, "y":3.5},
|
||||||
|
{"label":"L", "x":9.75, "y":3.5},
|
||||||
|
{"label":":", "x":10.75, "y":3.5},
|
||||||
|
{"label":"\"", "x":11.75, "y":3.5},
|
||||||
|
{"label":"~", "x":12.75, "y":3.5},
|
||||||
|
{"label":"Enter", "x":13.75, "y":2.5, "w":1.25, "h":2},
|
||||||
|
|
||||||
|
{"label":"Shift", "x":0, "y":4.5, "w":1.25},
|
||||||
|
{"label":"NUBS", "x":1.25, "y":4.5},
|
||||||
|
{"label":"Z", "x":2.25, "y":4.5},
|
||||||
|
{"label":"X", "x":3.25, "y":4.5},
|
||||||
|
{"label":"C", "x":4.25, "y":4.5},
|
||||||
|
{"label":"V", "x":5.25, "y":4.5},
|
||||||
|
{"label":"B", "x":6.25, "y":4.5},
|
||||||
|
{"label":"N", "x":7.25, "y":4.5},
|
||||||
|
{"label":"M", "x":8.25, "y":4.5},
|
||||||
|
{"label":"<", "x":9.25, "y":4.5},
|
||||||
|
{"label":">", "x":10.25, "y":4.5},
|
||||||
|
{"label":"?", "x":11.25, "y":4.5},
|
||||||
|
{"label":"Shift", "x":12.25, "y":4.5, "w":2.75},
|
||||||
|
{"label":"\u2191", "x":16.25, "y":4.5},
|
||||||
|
|
||||||
|
{"label":"Ctrl", "x":0, "y":5.5, "w":1.5},
|
||||||
|
{"label":"Win", "x":1.5, "y":5.5},
|
||||||
|
{"label":"Alt", "x":2.5, "y":5.5, "w":1.5},
|
||||||
|
{"label":"Space", "x":4, "y":5.5, "w":7},
|
||||||
|
{"label":"Win", "x":11, "y":5.5, "w":1.5},
|
||||||
|
{"label":"Menu", "x":12.5, "y":5.5},
|
||||||
|
{"label":"Ctrl", "x":13.5, "y":5.5, "w":1.5},
|
||||||
|
{"label":"\u2190", "x":15.25, "y":5.5},
|
||||||
|
{"label":"\u2193", "x":16.25, "y":5.5},
|
||||||
|
{"label":"\u2192", "x":17.25, "y":5.5}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_tkl_iso_wkl": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"Esc", "x":0, "y":0},
|
||||||
|
{"label":"F1", "x":2, "y":0},
|
||||||
|
{"label":"F2", "x":3, "y":0},
|
||||||
|
{"label":"F3", "x":4, "y":0},
|
||||||
|
{"label":"F4", "x":5, "y":0},
|
||||||
|
{"label":"F5", "x":6.5, "y":0},
|
||||||
|
{"label":"F6", "x":7.5, "y":0},
|
||||||
|
{"label":"F7", "x":8.5, "y":0},
|
||||||
|
{"label":"F8", "x":9.5, "y":0},
|
||||||
|
{"label":"F9", "x":11, "y":0},
|
||||||
|
{"label":"F10", "x":12, "y":0},
|
||||||
|
{"label":"F11", "x":13, "y":0},
|
||||||
|
{"label":"F12", "x":14, "y":0},
|
||||||
|
{"label":"PrtSc", "x":15.25, "y":0},
|
||||||
|
{"label":"Scroll Lock", "x":16.25, "y":0},
|
||||||
|
{"label":"Pause", "x":17.25, "y":0},
|
||||||
|
|
||||||
|
{"label":"~", "x":0, "y":1.5},
|
||||||
|
{"label":"!", "x":1, "y":1.5},
|
||||||
|
{"label":"@", "x":2, "y":1.5},
|
||||||
|
{"label":"#", "x":3, "y":1.5},
|
||||||
|
{"label":"$", "x":4, "y":1.5},
|
||||||
|
{"label":"%", "x":5, "y":1.5},
|
||||||
|
{"label":"^", "x":6, "y":1.5},
|
||||||
|
{"label":"&", "x":7, "y":1.5},
|
||||||
|
{"label":"*", "x":8, "y":1.5},
|
||||||
|
{"label":"(", "x":9, "y":1.5},
|
||||||
|
{"label":")", "x":10, "y":1.5},
|
||||||
|
{"label":"_", "x":11, "y":1.5},
|
||||||
|
{"label":"+", "x":12, "y":1.5},
|
||||||
|
{"label":"Bksp", "x":13, "y":1.5, "w":2},
|
||||||
|
{"label":"Insert", "x":15.25, "y":1.5},
|
||||||
|
{"label":"Home", "x":16.25, "y":1.5},
|
||||||
|
{"label":"PgUp", "x":17.25, "y":1.5},
|
||||||
|
|
||||||
|
{"label":"Tab", "x":0, "y":2.5, "w":1.5},
|
||||||
|
{"label":"Q", "x":1.5, "y":2.5},
|
||||||
|
{"label":"W", "x":2.5, "y":2.5},
|
||||||
|
{"label":"E", "x":3.5, "y":2.5},
|
||||||
|
{"label":"R", "x":4.5, "y":2.5},
|
||||||
|
{"label":"T", "x":5.5, "y":2.5},
|
||||||
|
{"label":"Y", "x":6.5, "y":2.5},
|
||||||
|
{"label":"U", "x":7.5, "y":2.5},
|
||||||
|
{"label":"I", "x":8.5, "y":2.5},
|
||||||
|
{"label":"O", "x":9.5, "y":2.5},
|
||||||
|
{"label":"P", "x":10.5, "y":2.5},
|
||||||
|
{"label":"{", "x":11.5, "y":2.5},
|
||||||
|
{"label":"}", "x":12.5, "y":2.5},
|
||||||
|
{"label":"Delete", "x":15.25, "y":2.5},
|
||||||
|
{"label":"End", "x":16.25, "y":2.5},
|
||||||
|
{"label":"PgDn", "x":17.25, "y":2.5},
|
||||||
|
|
||||||
|
{"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
|
||||||
|
{"label":"A", "x":1.75, "y":3.5},
|
||||||
|
{"label":"S", "x":2.75, "y":3.5},
|
||||||
|
{"label":"D", "x":3.75, "y":3.5},
|
||||||
|
{"label":"F", "x":4.75, "y":3.5},
|
||||||
|
{"label":"G", "x":5.75, "y":3.5},
|
||||||
|
{"label":"H", "x":6.75, "y":3.5},
|
||||||
|
{"label":"J", "x":7.75, "y":3.5},
|
||||||
|
{"label":"K", "x":8.75, "y":3.5},
|
||||||
|
{"label":"L", "x":9.75, "y":3.5},
|
||||||
|
{"label":":", "x":10.75, "y":3.5},
|
||||||
|
{"label":"\"", "x":11.75, "y":3.5},
|
||||||
|
{"label":"~", "x":12.75, "y":3.5},
|
||||||
|
{"label":"Enter", "x":13.75, "y":2.5, "w":1.25, "h":2},
|
||||||
|
|
||||||
|
{"label":"Shift", "x":0, "y":4.5, "w":1.25},
|
||||||
|
{"label":"NUBS", "x":1.25, "y":4.5},
|
||||||
|
{"label":"Z", "x":2.25, "y":4.5},
|
||||||
|
{"label":"X", "x":3.25, "y":4.5},
|
||||||
|
{"label":"C", "x":4.25, "y":4.5},
|
||||||
|
{"label":"V", "x":5.25, "y":4.5},
|
||||||
|
{"label":"B", "x":6.25, "y":4.5},
|
||||||
|
{"label":"N", "x":7.25, "y":4.5},
|
||||||
|
{"label":"M", "x":8.25, "y":4.5},
|
||||||
|
{"label":"<", "x":9.25, "y":4.5},
|
||||||
|
{"label":">", "x":10.25, "y":4.5},
|
||||||
|
{"label":"?", "x":11.25, "y":4.5},
|
||||||
|
{"label":"Shift", "x":12.25, "y":4.5, "w":2.75},
|
||||||
|
{"label":"\u2191", "x":16.25, "y":4.5},
|
||||||
|
|
||||||
|
{"label":"Ctrl", "x":0, "y":5.5, "w":1.5},
|
||||||
|
{"label":"Alt", "x":2.5, "y":5.5, "w":1.5},
|
||||||
|
{"label":"Space", "x":4, "y":5.5, "w":7},
|
||||||
|
{"label":"Alt", "x":11, "y":5.5, "w":1.5},
|
||||||
|
{"label":"Ctrl", "x":13.5, "y":5.5, "w":1.5},
|
||||||
|
{"label":"\u2190", "x":15.25, "y":5.5},
|
||||||
|
{"label":"\u2193", "x":16.25, "y":5.5},
|
||||||
|
{"label":"\u2192", "x":17.25, "y":5.5}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,20 +17,20 @@
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
[0] = LAYOUT_all(
|
[0] = LAYOUT_all(
|
||||||
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_PSCR, KC_SLCK, KC_PAUS,
|
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_PSCR, KC_SLCK, KC_PAUS,
|
||||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, KC_INS, KC_HOME, KC_PGUP,
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, KC_INS, KC_HOME, KC_PGUP,
|
||||||
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_BSPC, KC_DEL, KC_END, KC_PGDN,
|
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_BSPC, KC_DEL, KC_END, KC_PGDN,
|
||||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_TRNS, KC_UP,
|
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_TRNS, KC_UP,
|
||||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
[1] = LAYOUT_all(
|
[1] = LAYOUT_all(
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, BL_TOGG, BL_DEC, BL_INC,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, BL_TOGG, BL_DEC, BL_INC,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,36 +17,36 @@
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
[0] = LAYOUT_all(
|
[0] = LAYOUT_all(
|
||||||
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_PSCR, KC_SLCK, KC_PAUS,
|
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_PSCR, KC_SLCK, KC_PAUS,
|
||||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_GRV, KC_INS, KC_HOME, KC_PGUP,
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, KC_INS, KC_HOME, KC_PGUP,
|
||||||
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_BSLS, KC_DEL, KC_END, KC_PGDN,
|
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_BSPC, KC_DEL, KC_END, KC_PGDN,
|
||||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_TRNS, KC_UP,
|
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_TRNS, KC_UP,
|
||||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
[1] = LAYOUT_all(
|
[1] = LAYOUT_all(
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, BL_TOGG, BL_DEC, BL_INC,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, BL_TOGG, BL_DEC, BL_INC,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
[2] = LAYOUT_all(
|
[2] = LAYOUT_all(
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, BL_TOGG, BL_DEC, BL_INC,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, BL_TOGG, BL_DEC, BL_INC,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
[3] = LAYOUT_all(
|
[3] = LAYOUT_all(
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, BL_TOGG, BL_DEC, BL_INC,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, BL_TOGG, BL_DEC, BL_INC,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,29 +17,185 @@
|
||||||
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define ___ KC_NO
|
||||||
|
|
||||||
|
/* LAYOUT_all
|
||||||
|
* ┌───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┐
|
||||||
|
* │00 │ │01 │11 │02 │12 │ │03 │13 │04 │14 │ │05 │15 │06 │16 │ │07 │17 │08 │
|
||||||
|
* └───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┘
|
||||||
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┐ ┌───────┐
|
||||||
|
* │20 │30 │21 │31 │22 │32 │23 │33 │24 │34 │25 │35 │26 │36 │66 │ │27 │37 │28 │ │36 │ 2u Backspace
|
||||||
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤ ├───┼───┼───┤ └─┬─────┤
|
||||||
|
* │40 │50 │41 │51 │42 │52 │43 │53 │44 │54 │45 │55 │46 │56 │ │47 │57 │48 │ │ │
|
||||||
|
* 2.25u ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ └───┴───┴───┘ ┌──┴┐76 │ ISO Enter
|
||||||
|
* LShift │60 │70 │61 │71 │62 │72 │63 │73 │64 │74 │65 │75 │76 │ │56 │ │
|
||||||
|
* ┌────────┐ ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤ ┌───┐ ┌─┴───┴────┤
|
||||||
|
* │80 │ │80 │90 │81 │91 │82 │92 │83 │93 │84 │94 │85 │95 │86 │96 │ │97 │ │86 │ 2.75u RShift
|
||||||
|
* └────────┘ ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬┴───┤ ┌───┼───┼───┐ └──────────┘
|
||||||
|
* │A0 │B0 │A1 │A3 │A5 │B5 │A6 │B6 │ │A7 │B7 │A8 │
|
||||||
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘ └───┴───┴───┘
|
||||||
|
* ┌─────┬───┬─────┬───────────────────────────┬─────┬───┬─────┐
|
||||||
|
* │A0 │B0 │A1 │A3 │B5 │A6 │B6 │ Tsangan
|
||||||
|
* └─────┴───┴─────┴───────────────────────────┴─────┴───┴─────┘
|
||||||
|
* ┌─────┬───┬─────┬───────────────────────────┬─────┬───┬─────┐
|
||||||
|
* │A0 │ │A1 │A3 │B5 │ │B6 │ WKL
|
||||||
|
* └─────┘ └─────┴───────────────────────────┴─────┘ └─────┘
|
||||||
|
*/
|
||||||
|
|
||||||
// This a shortcut to help you visually see your layout.
|
// This a shortcut to help you visually see your layout.
|
||||||
// The following is an example using the Planck MIT layout
|
|
||||||
// The first section contains all of the arguments
|
// The first section contains all of the arguments
|
||||||
// The second converts the arguments into a two-dimensional array
|
// The second converts the arguments into a two-dimensional array
|
||||||
|
|
||||||
#define LAYOUT_all(\
|
#define LAYOUT_all(\
|
||||||
K000, K001, K011, K002, K012, K003, K013, K004, K014, K005, K015, K006, K016, K007, K017, K008, \
|
K00, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07, K17, K08, \
|
||||||
K020, K030, K021, K031, K022, K032, K023, K033, K024, K034, K025, K035, K026, K036, K066, K027, K037, K028, \
|
K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K66, K27, K37, K28, \
|
||||||
K040, K050, K041, K051, K042, K052, K043, K053, K044, K054, K045, K055, K046, K056, K047, K057, K048, \
|
K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K56, K47, K57, K48, \
|
||||||
K060, K070, K061, K071, K062, K072, K063, K073, K064, K074, K065, K075, K076, \
|
K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K76, \
|
||||||
K080, K090, K081, K091, K082, K092, K083, K093, K084, K094, K085, K095, K086, K096, K097, \
|
K80, K90, K81, K91, K82, K92, K83, K93, K84, K94, K85, K95, K86, K96, K97, \
|
||||||
K100, K110, K101, K103, K105, K115, K106, K116, K107, K117, K108 \
|
KA0, KB0, KA1, KA3, KA5, KB5, KA6, KB6, KA7, KB7, KA8 \
|
||||||
) { \
|
) { \
|
||||||
{ K000, K001, K002, K003, K004, K005, K006, K007, K008 }, \
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08 }, \
|
||||||
{ KC_NO, K011, K012, K013, K014, K015, K016, K017, KC_NO }, \
|
{ ___, K11, K12, K13, K14, K15, K16, K17, ___ }, \
|
||||||
{ K020, K021, K022, K023, K024, K025, K026, K027, K028 }, \
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28 }, \
|
||||||
{ K030, K031, K032, K033, K034, K035, K036, K037, KC_NO }, \
|
{ K30, K31, K32, K33, K34, K35, K36, K37, ___ }, \
|
||||||
{ K040, K041, K042, K043, K044, K045, K046, K047, K048 }, \
|
{ K40, K41, K42, K43, K44, K45, K46, K47, K48 }, \
|
||||||
{ K050, K051, K052, K053, K054, K055, K056, K057, KC_NO }, \
|
{ K50, K51, K52, K53, K54, K55, K56, K57, ___ }, \
|
||||||
{ K060, K061, K062, K063, K064, K065, K066, KC_NO, KC_NO }, \
|
{ K60, K61, K62, K63, K64, K65, K66, ___, ___ }, \
|
||||||
{ K070, K071, K072, K073, K074, K075, K076, KC_NO, KC_NO }, \
|
{ K70, K71, K72, K73, K74, K75, K76, ___, ___ }, \
|
||||||
{ K080, K081, K082, K083, K084, K085, K086, KC_NO, KC_NO }, \
|
{ K80, K81, K82, K83, K84, K85, K86, ___, ___ }, \
|
||||||
{ K090, K091, K092, K093, K094, K095, K096, K097, KC_NO }, \
|
{ K90, K91, K92, K93, K94, K95, K96, K97, ___ }, \
|
||||||
{ K100, K101, KC_NO, K103, KC_NO, K105, K106, K107, K108 }, \
|
{ KA0, KA1, ___, KA3, ___, KA5, KA6, KA7, KA8 }, \
|
||||||
{ K110, KC_NO, KC_NO, KC_NO, KC_NO, K115, K116, K117, KC_NO } \
|
{ KB0, ___, ___, ___, ___, KB5, KB6, KB7, ___ } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_tkl_ansi(\
|
||||||
|
K00, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07, K17, K08, \
|
||||||
|
K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27, K37, K28, \
|
||||||
|
K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K56, K47, K57, K48, \
|
||||||
|
K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K76, \
|
||||||
|
K80, K81, K91, K82, K92, K83, K93, K84, K94, K85, K95, K86, K97, \
|
||||||
|
KA0, KB0, KA1, KA3, KA5, KB5, KA6, KB6, KA7, KB7, KA8 \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08 }, \
|
||||||
|
{ ___, K11, K12, K13, K14, K15, K16, K17, ___ }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28 }, \
|
||||||
|
{ K30, K31, K32, K33, K34, K35, K36, K37, ___ }, \
|
||||||
|
{ K40, K41, K42, K43, K44, K45, K46, K47, K48 }, \
|
||||||
|
{ K50, K51, K52, K53, K54, K55, K56, K57, ___ }, \
|
||||||
|
{ K60, K61, K62, K63, K64, K65, ___, ___, ___ }, \
|
||||||
|
{ K70, K71, K72, K73, K74, K75, K76, ___, ___ }, \
|
||||||
|
{ K80, K81, K82, K83, K84, K85, K86, ___, ___ }, \
|
||||||
|
{ ___, K91, K92, K93, K94, K95, ___, K97, ___ }, \
|
||||||
|
{ KA0, KA1, ___, KA3, ___, KA5, KA6, KA7, KA8 }, \
|
||||||
|
{ KB0, ___, ___, ___, ___, KB5, KB6, KB7, ___ } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_tkl_ansi_tsangan(\
|
||||||
|
K00, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07, K17, K08, \
|
||||||
|
K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27, K37, K28, \
|
||||||
|
K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K56, K47, K57, K48, \
|
||||||
|
K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K76, \
|
||||||
|
K80, K81, K91, K82, K92, K83, K93, K84, K94, K85, K95, K86, K97, \
|
||||||
|
KA0, KB0, KA1, KA3, KB5, KA6, KB6, KA7, KB7, KA8 \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08 }, \
|
||||||
|
{ ___, K11, K12, K13, K14, K15, K16, K17, ___ }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28 }, \
|
||||||
|
{ K30, K31, K32, K33, K34, K35, K36, K37, ___ }, \
|
||||||
|
{ K40, K41, K42, K43, K44, K45, K46, K47, K48 }, \
|
||||||
|
{ K50, K51, K52, K53, K54, K55, K56, K57, ___ }, \
|
||||||
|
{ K60, K61, K62, K63, K64, K65, ___, ___, ___ }, \
|
||||||
|
{ K70, K71, K72, K73, K74, K75, K76, ___, ___ }, \
|
||||||
|
{ K80, K81, K82, K83, K84, K85, K86, ___, ___ }, \
|
||||||
|
{ ___, K91, K92, K93, K94, K95, ___, K97, ___ }, \
|
||||||
|
{ KA0, KA1, ___, KA3, ___, ___, KA6, KA7, KA8 }, \
|
||||||
|
{ KB0, ___, ___, ___, ___, KB5, KB6, KB7, ___ } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_tkl_ansi_wkl(\
|
||||||
|
K00, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07, K17, K08, \
|
||||||
|
K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27, K37, K28, \
|
||||||
|
K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K56, K47, K57, K48, \
|
||||||
|
K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K76, \
|
||||||
|
K80, K81, K91, K82, K92, K83, K93, K84, K94, K85, K95, K86, K97, \
|
||||||
|
KA0, KA1, KA3, KB5, KB6, KA7, KB7, KA8 \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08 }, \
|
||||||
|
{ ___, K11, K12, K13, K14, K15, K16, K17, ___ }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28 }, \
|
||||||
|
{ K30, K31, K32, K33, K34, K35, K36, K37, ___ }, \
|
||||||
|
{ K40, K41, K42, K43, K44, K45, K46, K47, K48 }, \
|
||||||
|
{ K50, K51, K52, K53, K54, K55, K56, K57, ___ }, \
|
||||||
|
{ K60, K61, K62, K63, K64, K65, ___, ___, ___ }, \
|
||||||
|
{ K70, K71, K72, K73, K74, K75, K76, ___, ___ }, \
|
||||||
|
{ K80, K81, K82, K83, K84, K85, K86, ___, ___ }, \
|
||||||
|
{ ___, K91, K92, K93, K94, K95, ___, K97, ___ }, \
|
||||||
|
{ KA0, KA1, ___, KA3, ___, ___, ___, KA7, KA8 }, \
|
||||||
|
{ ___, ___, ___, ___, ___, KB5, KB6, KB7, ___ } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_tkl_iso(\
|
||||||
|
K00, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07, K17, K08, \
|
||||||
|
K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27, K37, K28, \
|
||||||
|
K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K47, K57, K48, \
|
||||||
|
K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K56, K76, \
|
||||||
|
K80, K90, K81, K91, K82, K92, K83, K93, K84, K94, K85, K95, K86, K97, \
|
||||||
|
KA0, KB0, KA1, KA3, KA5, KB5, KA6, KB6, KA7, KB7, KA8 \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08 }, \
|
||||||
|
{ ___, K11, K12, K13, K14, K15, K16, K17, ___ }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28 }, \
|
||||||
|
{ K30, K31, K32, K33, K34, K35, K36, K37, ___ }, \
|
||||||
|
{ K40, K41, K42, K43, K44, K45, K46, K47, K48 }, \
|
||||||
|
{ K50, K51, K52, K53, K54, K55, K56, K57, ___ }, \
|
||||||
|
{ K60, K61, K62, K63, K64, K65, ___, ___, ___ }, \
|
||||||
|
{ K70, K71, K72, K73, K74, K75, K76, ___, ___ }, \
|
||||||
|
{ K80, K81, K82, K83, K84, K85, K86, ___, ___ }, \
|
||||||
|
{ K90, K91, K92, K93, K94, K95, ___, K97, ___ }, \
|
||||||
|
{ KA0, KA1, ___, KA3, ___, KA5, KA6, KA7, KA8 }, \
|
||||||
|
{ KB0, ___, ___, ___, ___, KB5, KB6, KB7, ___ } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_tkl_iso_tsangan(\
|
||||||
|
K00, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07, K17, K08, \
|
||||||
|
K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27, K37, K28, \
|
||||||
|
K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K47, K57, K48, \
|
||||||
|
K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K56, K76, \
|
||||||
|
K80, K90, K81, K91, K82, K92, K83, K93, K84, K94, K85, K95, K86, K97, \
|
||||||
|
KA0, KB0, KA1, KA3, KB5, KA6, KB6, KA7, KB7, KA8 \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08 }, \
|
||||||
|
{ ___, K11, K12, K13, K14, K15, K16, K17, ___ }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28 }, \
|
||||||
|
{ K30, K31, K32, K33, K34, K35, K36, K37, ___ }, \
|
||||||
|
{ K40, K41, K42, K43, K44, K45, K46, K47, K48 }, \
|
||||||
|
{ K50, K51, K52, K53, K54, K55, K56, K57, ___ }, \
|
||||||
|
{ K60, K61, K62, K63, K64, K65, ___, ___, ___ }, \
|
||||||
|
{ K70, K71, K72, K73, K74, K75, K76, ___, ___ }, \
|
||||||
|
{ K80, K81, K82, K83, K84, K85, K86, ___, ___ }, \
|
||||||
|
{ K90, K91, K92, K93, K94, K95, ___, K97, ___ }, \
|
||||||
|
{ KA0, KA1, ___, KA3, ___, ___, KA6, KA7, KA8 }, \
|
||||||
|
{ KB0, ___, ___, ___, ___, KB5, KB6, KB7, ___ } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_tkl_iso_wkl(\
|
||||||
|
K00, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07, K17, K08, \
|
||||||
|
K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27, K37, K28, \
|
||||||
|
K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K47, K57, K48, \
|
||||||
|
K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K56, K76, \
|
||||||
|
K80, K90, K81, K91, K82, K92, K83, K93, K84, K94, K85, K95, K86, K97, \
|
||||||
|
KA0, KA1, KA3, KB5, KB6, KA7, KB7, KA8 \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08 }, \
|
||||||
|
{ ___, K11, K12, K13, K14, K15, K16, K17, ___ }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28 }, \
|
||||||
|
{ K30, K31, K32, K33, K34, K35, K36, K37, ___ }, \
|
||||||
|
{ K40, K41, K42, K43, K44, K45, K46, K47, K48 }, \
|
||||||
|
{ K50, K51, K52, K53, K54, K55, K56, K57, ___ }, \
|
||||||
|
{ K60, K61, K62, K63, K64, K65, ___, ___, ___ }, \
|
||||||
|
{ K70, K71, K72, K73, K74, K75, K76, ___, ___ }, \
|
||||||
|
{ K80, K81, K82, K83, K84, K85, K86, ___, ___ }, \
|
||||||
|
{ K90, K91, K92, K93, K94, K95, ___, K97, ___ }, \
|
||||||
|
{ KA0, KA1, ___, KA3, ___, ___, ___, KA7, KA8 }, \
|
||||||
|
{ ___, ___, ___, ___, ___, KB5, KB6, KB7, ___ } \
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,43 +1,49 @@
|
||||||
oxalys80
|
# OXALYS80
|
||||||
===
|
|
||||||
|
|
||||||
A QMK-powered replacement PCB for custom TKL keyboards. This PCB has the same size of the b.87 PCB, Hiney H87a, KBD8X.
|
A QMK-powered replacement PCB for custom TKL keyboards. This PCB has the same size of the b.87 PCB, Hiney H87a, and KBD8X.
|
||||||
|
|
||||||
Keyboard Maintainer: [Nix Studio](https://github.com/Nix-Studio)
|
* Keyboard Maintainer: [Nix Studio](https://github.com/Nix-Studio)
|
||||||
Hardware Supported: oxalys80 ver. 1.0
|
* Hardware Supported: oxalys80 ver. 1.0
|
||||||
Hardware Availability: [Nix Studio](https://www.instagram.com/nix.studio/)
|
* Hardware Availability: [Nix Studio](https://www.instagram.com/nix.studio/)
|
||||||
|
|
||||||
Make example for this keyboard (after setting up your build environment):
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
make nix_studio/oxalys80:default
|
make nix_studio/oxalys80:default
|
||||||
|
|
||||||
|
Flashing example for this keyboard:
|
||||||
|
|
||||||
|
make nix_studio/oxalys80:default:flash
|
||||||
|
|
||||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
|
|
||||||
## oxalys80 hardware information
|
## OXALYS80 Hardware Information
|
||||||
|
|
||||||
Controller: Atmega32u4
|
Controller: ATmega32U4
|
||||||
|
|
||||||
/* Column pin configuration
|
### Column Pin Configuration
|
||||||
* col: 0 1 2 3 4 5 6 7 8
|
|
||||||
* pin: F0 F1 F4 F5 F6 F7 C7 B0 B1
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Row pin configuration
|
|
||||||
* row: 0 1 2 3 4 5 6 7 8 9 10 11
|
|
||||||
* pin: C6 B6 B5 B4 D7 D6 D4 D5 D3 D2 D1 D0
|
|
||||||
*/
|
|
||||||
|
|
||||||
The oxalys PCB utilizes duplex matrix organization.
|
|
||||||
|
|
||||||
Caps Lock LED: E6
|
| col: | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|
||||||
Scroll Lock LED: B2
|
|------|----|----|----|----|----|----|----|----|----|
|
||||||
Num Lock LED: not supported
|
| pin: | F0 | F1 | F4 | F5 | F6 | F7 | C7 | B0 | B1 |
|
||||||
Backlight Pin: B7
|
|
||||||
RGB Data Pin: B3
|
|
||||||
|
|
||||||
|
|
||||||
|
### Row Pin Configuration
|
||||||
|
|
||||||
|
| row: | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
|
||||||
|
|------|----|----|----|----|----|----|----|----|----|----|----|----|
|
||||||
|
| pin: | C6 | B6 | B5 | B4 | D7 | D6 | D4 | D5 | D3 | D2 | D1 | D0 |
|
||||||
|
|
||||||
|
The OXALYS80 PCB utilizes duplex matrix organization.
|
||||||
|
|
||||||
|
### LED Pins
|
||||||
|
|
||||||
|
* Caps Lock LED: E6
|
||||||
|
* Scroll Lock LED: B2
|
||||||
|
* Num Lock LED: not supported
|
||||||
|
* Backlight Pin: B7
|
||||||
|
* RGB Data Pin: B3
|
||||||
|
|
||||||
|
## In-switch Indicators
|
||||||
|
|
||||||
In-switch indicators:
|
|
||||||
To connect the Caps Lock LED to the main backlight matrix, turn switch to top position on SW3. To use the Caps Lock LED as an indicator, turn switch to bottom position on SW3.
|
To connect the Caps Lock LED to the main backlight matrix, turn switch to top position on SW3. To use the Caps Lock LED as an indicator, turn switch to bottom position on SW3.
|
||||||
|
|
||||||
To connect the Scroll Lock LED to the main backlight matrix, turn switch to left position on SW2. To use the Scroll Lock LED as an indicator, turn switch to right position on SW2.
|
To connect the Scroll Lock LED to the main backlight matrix, turn switch to left position on SW2. To use the Scroll Lock LED as an indicator, turn switch to right position on SW2.
|
||||||
|
|
|
@ -10,14 +10,16 @@ BOOTLOADER = atmel-dfu
|
||||||
BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite
|
BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
NKRO_ENABLE = no # USB Nkey Rollover
|
NKRO_ENABLE = no # USB Nkey Rollover
|
||||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default
|
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||||
RGBLIGHT_ENABLE = yes # Enable RGB underglow
|
RGBLIGHT_ENABLE = yes # Enable RGB underglow
|
||||||
UNICODE_ENABLE = no # Unicode
|
BLUETOOTH_ENABLE = no # Enable Bluetooth
|
||||||
AUDIO_ENABLE = no # Audio output
|
AUDIO_ENABLE = no # Audio output
|
||||||
LTO_ENABLE = yes
|
LTO_ENABLE = yes
|
||||||
|
|
||||||
|
LAYOUTS = tkl_ansi tkl_iso
|
||||||
|
|
23
keyboards/planck/ez/halconf.h
Normal file
23
keyboards/planck/ez/halconf.h
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
/* Copyright 2021 QMK
|
||||||
|
*
|
||||||
|
* 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 3 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define HAL_USE_I2C TRUE
|
||||||
|
#define HAL_USE_GPT TRUE
|
||||||
|
#define HAL_USE_DAC TRUE
|
||||||
|
#define HAL_USE_PWM TRUE
|
||||||
|
|
||||||
|
#include_next <halconf.h>
|
41
keyboards/planck/ez/mcuconf.h
Normal file
41
keyboards/planck/ez/mcuconf.h
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
/* Copyright 2021 QMK
|
||||||
|
*
|
||||||
|
* 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 3 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 <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include_next "mcuconf.h"
|
||||||
|
|
||||||
|
// for i2c expander, and ISSI
|
||||||
|
#undef STM32_I2C_USE_I2C1
|
||||||
|
#define STM32_I2C_USE_I2C1 TRUE
|
||||||
|
|
||||||
|
// for indicator LEDs
|
||||||
|
#undef STM32_PWM_USE_TIM3
|
||||||
|
#define STM32_PWM_USE_TIM3 TRUE
|
||||||
|
#undef STM32_PWM_USE_TIM4
|
||||||
|
#define STM32_PWM_USE_TIM4 TRUE
|
||||||
|
|
||||||
|
// for audio
|
||||||
|
#undef STM32_DAC_USE_DAC1_CH1
|
||||||
|
#define STM32_DAC_USE_DAC1_CH1 TRUE
|
||||||
|
#undef STM32_DAC_USE_DAC1_CH2
|
||||||
|
#define STM32_DAC_USE_DAC1_CH2 TRUE
|
||||||
|
#undef STM32_GPT_USE_TIM6
|
||||||
|
#define STM32_GPT_USE_TIM6 TRUE
|
||||||
|
#undef STM32_GPT_USE_TIM7
|
||||||
|
#define STM32_GPT_USE_TIM7 TRUE
|
||||||
|
#undef STM32_GPT_USE_TIM8
|
||||||
|
#define STM32_GPT_USE_TIM8 TRUE
|
|
@ -1,6 +1,5 @@
|
||||||
# MCU name
|
# MCU name
|
||||||
MCU = STM32F303
|
MCU = STM32F303
|
||||||
BOARD = QMK_PROTON_C
|
|
||||||
|
|
||||||
# Bootloader selection
|
# Bootloader selection
|
||||||
BOOTLOADER = stm32-dfu
|
BOOTLOADER = stm32-dfu
|
||||||
|
@ -9,23 +8,25 @@ BOOTLOADER = stm32-dfu
|
||||||
# change to "no" to disable the options, or define them in the Makefile in
|
# change to "no" to disable the options, or define them in the Makefile in
|
||||||
# the appropriate keymap folder that will get included automatically
|
# the appropriate keymap folder that will get included automatically
|
||||||
#
|
#
|
||||||
BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite
|
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = yes # Console for debug
|
CONSOLE_ENABLE = yes # Console for debug
|
||||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||||
NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
AUDIO_ENABLE = yes # Audio output on port C6
|
AUDIO_ENABLE = yes # Audio output
|
||||||
UNICODE_ENABLE = no # Unicode
|
|
||||||
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
||||||
|
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
#SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
|
||||||
|
|
||||||
ENCODER_ENABLE = yes
|
ENCODER_ENABLE = yes
|
||||||
RGB_MATRIX_DRIVER = IS31FL3737
|
RGB_MATRIX_DRIVER = IS31FL3737
|
||||||
|
|
||||||
LAYOUTS = ortho_4x12 planck_mit
|
LAYOUTS = ortho_4x12 planck_mit
|
||||||
LAYOUTS_HAS_RGB = no
|
LAYOUTS_HAS_RGB = no
|
||||||
|
|
||||||
|
RGB_MATRIX_SUPPORTED = yes
|
||||||
|
RGBLIGHT_SUPPORTED = no
|
||||||
|
BAKCLIGHT_SUPPORTED = no
|
||||||
|
|
58
keyboards/sauce/mild/config.h
Normal file
58
keyboards/sauce/mild/config.h
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
/* Copyright 2021 Andy Yong (Sauce)
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0x8367 // "SC"
|
||||||
|
#define PRODUCT_ID 0x7783 // "MS"
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Sauce
|
||||||
|
#define PRODUCT Mild
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 6
|
||||||
|
#define MATRIX_COLS 17
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Keyboard Matrix Assignments
|
||||||
|
*
|
||||||
|
* Change this to how you wired your keyboard
|
||||||
|
* COLS: AVR pins used for columns, left to right
|
||||||
|
* ROWS: AVR pins used for rows, top to bottom
|
||||||
|
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||||
|
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#define MATRIX_ROW_PINS { C13, C14, C15, A15, F0, F1 }
|
||||||
|
#define MATRIX_COL_PINS { A10, A9, A8, B11, B10, B2, B1, B0, A7, A5, A4, A3, A2, A1, B6, B5, B4 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL*/
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
/* Locking resynchronize hack */
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
|
||||||
|
#define LED_CAPS_LOCK_PIN A6
|
||||||
|
#define LED_SCROLL_LOCK_PIN B14
|
17
keyboards/sauce/mild/info.json
Normal file
17
keyboards/sauce/mild/info.json
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"keyboard_name": "Sauce - Mild",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "Sauce",
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_all": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6.5, "y":0}, {"x":7.5, "y":0}, {"x":8.5, "y":0}, {"x":9.5, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":15.25, "y":0}, {"x":16.25, "y":0}, {"x":17.25, "y":0},
|
||||||
|
{"x":0, "y":1.25}, {"x":1, "y":1.25}, {"x":2, "y":1.25}, {"x":3, "y":1.25}, {"x":4, "y":1.25}, {"x":5, "y":1.25}, {"x":6, "y":1.25}, {"x":7, "y":1.25}, {"x":8, "y":1.25}, {"x":9, "y":1.25}, {"x":10, "y":1.25}, {"x":11, "y":1.25}, {"x":12, "y":1.25}, {"x":13, "y":1.25}, {"x":14, "y":1.25}, {"x":15.25, "y":1.25}, {"x":16.25, "y":1.25}, {"x":17.25, "y":1.25},
|
||||||
|
{"x":0, "y":2.25, "w":1.5}, {"x":1.5, "y":2.25}, {"x":2.5, "y":2.25}, {"x":3.5, "y":2.25}, {"x":4.5, "y":2.25}, {"x":5.5, "y":2.25}, {"x":6.5, "y":2.25}, {"x":7.5, "y":2.25}, {"x":8.5, "y":2.25}, {"x":9.5, "y":2.25}, {"x":10.5, "y":2.25}, {"x":11.5, "y":2.25}, {"x":12.5, "y":2.25}, {"x":13.5, "y":2.25, "w":1.5}, {"x":15.25, "y":2.25}, {"x":16.25, "y":2.25}, {"x":17.25, "y":2.25},
|
||||||
|
{"x":0, "y":3.25, "w":1.75}, {"x":1.75, "y":3.25}, {"x":2.75, "y":3.25}, {"x":3.75, "y":3.25}, {"x":4.75, "y":3.25}, {"x":5.75, "y":3.25}, {"x":6.75, "y":3.25}, {"x":7.75, "y":3.25}, {"x":8.75, "y":3.25}, {"x":9.75, "y":3.25}, {"x":10.75, "y":3.25}, {"x":11.75, "y":3.25}, {"x":12.75, "y":3.25, "w":2.25},
|
||||||
|
{"x":0, "y":4.25, "w":1.25}, {"x":1.25, "y":4.25}, {"x":2.25, "y":4.25}, {"x":3.25, "y":4.25}, {"x":4.25, "y":4.25}, {"x":5.25, "y":4.25}, {"x":6.25, "y":4.25}, {"x":7.25, "y":4.25}, {"x":8.25, "y":4.25}, {"x":9.25, "y":4.25}, {"x":10.25, "y":4.25}, {"x":11.25, "y":4.25}, {"x":12.25, "y":4.25, "w":1.75}, {"x":14, "y":4.25}, {"x":16.25, "y":4.25},
|
||||||
|
{"x":0, "y":5.25, "w":1.5}, {"x":2.5, "y":5.25, "w":1.5}, {"x":4, "y":5.25, "w":7}, {"x":11, "y":5.25, "w":1.5}, {"x":13.5, "y":5.25, "w":1.5}, {"x":15.25, "y":5.25}, {"x":16.25, "y":5.25}, {"x":17.25, "y":5.25}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
36
keyboards/sauce/mild/keymaps/default/keymap.c
Normal file
36
keyboards/sauce/mild/keymaps/default/keymap.c
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
/* Copyright 2021 Andy Yong (Sauce)
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[0] = LAYOUT_all(
|
||||||
|
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_PSCR, KC_SLCK, KC_PAUS,
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||||
|
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_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
|
KC_LSFT, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[1] = LAYOUT_all(
|
||||||
|
RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MUTE, KC_VOLU,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MNXT, KC_VOLD,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
|
};
|
52
keyboards/sauce/mild/keymaps/via/keymap.c
Normal file
52
keyboards/sauce/mild/keymaps/via/keymap.c
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
/* Copyright 2021 Andy Yong (Sauce)
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[0] = LAYOUT_all(
|
||||||
|
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_PSCR, KC_SLCK, KC_PAUS,
|
||||||
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||||
|
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_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
|
KC_LSFT, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[1] = LAYOUT_all(
|
||||||
|
RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MUTE, KC_VOLU,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MNXT, KC_VOLD,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
|
[2] = LAYOUT_all(
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
|
[3] = LAYOUT_all(
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
|
};
|
1
keyboards/sauce/mild/keymaps/via/rules.mk
Normal file
1
keyboards/sauce/mild/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
VIA_ENABLE = yes
|
17
keyboards/sauce/mild/mild.c
Normal file
17
keyboards/sauce/mild/mild.c
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
/* Copyright 2021 Andy Yong (Sauce)
|
||||||
|
*
|
||||||
|
* 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 "mild.h"
|
37
keyboards/sauce/mild/mild.h
Normal file
37
keyboards/sauce/mild/mild.h
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
/* Copyright 2021 Andy Yong (Sauce)
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define ____ KC_NO
|
||||||
|
|
||||||
|
#define LAYOUT_all( \
|
||||||
|
K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, K015, K016, \
|
||||||
|
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K412, K114, K115, K116, \
|
||||||
|
K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \
|
||||||
|
K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K314, \
|
||||||
|
K400, K501, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K415, \
|
||||||
|
K500, K503, K505, K510, K513, K514, K515, K516 \
|
||||||
|
) { \
|
||||||
|
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, ____, K014, K015, K016 }, \
|
||||||
|
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116 }, \
|
||||||
|
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216 }, \
|
||||||
|
{ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, ____, K314, ____, ____, ____ }, \
|
||||||
|
{ K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, ____, K415, ____ }, \
|
||||||
|
{ K500, K501, ____, K503, ____, K505, ____, ____, ____, ____, K510, ____, ____, K513, K514, K515, K516 } \
|
||||||
|
}
|
17
keyboards/sauce/mild/readme.md
Normal file
17
keyboards/sauce/mild/readme.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# Sauce Mild
|
||||||
|
|
||||||
|
Mild is a basic TKL keyboard
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [Sauce](https://github.com/andyywz)
|
||||||
|
* Hardware Supported: Mild pcb
|
||||||
|
* Hardware Availability: -
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make sauce/mild:default
|
||||||
|
|
||||||
|
Flashing example for this keyboard:
|
||||||
|
|
||||||
|
make sauce/mild:default:flash
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
24
keyboards/sauce/mild/rules.mk
Normal file
24
keyboards/sauce/mild/rules.mk
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# MCU name
|
||||||
|
MCU = STM32F072
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
BOOTLOADER = stm32-dfu
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
AUDIO_ENABLE = no # Audio output
|
||||||
|
|
||||||
|
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||||
|
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
|
@ -13,7 +13,7 @@ EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
NKRO_ENABLE = yes # USB Nkey Rollover
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
|
|
@ -13,7 +13,7 @@ EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
NKRO_ENABLE = yes # USB Nkey Rollover
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
|
|
@ -13,7 +13,7 @@ EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
NKRO_ENABLE = yes # USB Nkey Rollover
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
|
Loading…
Reference in New Issue
Block a user