Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

introduce support for Royal Kludge RK61 non-hotswap rgb edition (PID 0x24F) #252

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0e74521
introduce support for Royal Kludge RK61 non-hotswap rgb edition (PID …
mr-july Mar 10, 2022
c1cbd58
add missed "0" to the Neo layer 4
mr-july Mar 14, 2022
0b986ba
improve keymap definiton consistence
mr-july Mar 14, 2022
c9fe2bb
add the PCB picture with marked contacts to be shorted
mr-july Mar 20, 2022
d61df4d
Merge branch 'sn32_master' into sn32_master-royal_kludge-rk61-rgb
mr-july Mar 20, 2022
49ae2b8
change vendor ID, manufacturer and product description
mr-july Mar 20, 2022
91537aa
add the section about original firmware to the documentation
mr-july Mar 20, 2022
f9cbd3d
make the keyboard functional in some BIOSes, which do not implement B…
mr-july Mar 22, 2022
5a83076
improve keyboard description
mr-july Mar 22, 2022
8821650
add GUI toggle key to functional layer
mr-july Mar 22, 2022
7077747
change keyboard maintainer for RK61 rgb
mr-july Mar 22, 2022
9276e89
change keyboard maintainer for RK61 rgb
mr-july Mar 22, 2022
fa95a18
fix: `SonixFlasherC` is a `C` programm
mr-july Mar 22, 2022
0d77f25
implement GUI key highlighting if it is disabled
mr-july Mar 22, 2022
e1e69c0
fix `make` call for building default keymap
mr-july Mar 28, 2022
a65a8d8
rename "keymap.h" to "layout.h" to prevent compile problems
mr-july Mar 28, 2022
7c2cb28
introduce entering bootloader with the aid of Sonix Flasher
mr-july Mar 31, 2022
2fe8a3f
introduce the layout definnition macro for RK61
mr-july May 20, 2022
b310fe7
introduce custom layout inspired by "miryoku" and "neo", using just 3…
mr-july May 20, 2022
f033dcc
rename german layout specific definitions
mr-july May 23, 2022
3ceab34
add initial support for US international software layout
mr-july May 24, 2022
b40373d
improve formatting
mr-july May 24, 2022
565c696
generalie handling of '?'/'!' on home row
mr-july May 25, 2022
29ec65b
change layout definition macro name
mr-july May 25, 2022
e4a0328
use general key codes for special symbols
mr-july May 30, 2022
b1275a9
prepare new keyboard layout "KÖRKEM"
mr-july May 31, 2022
24c13fb
initial verssion of the new keyboard layout "KÖRKEM"
mr-july May 31, 2022
8c59134
Merge remote-tracking branch 'mainstream/sn32_master' into sn32_maste…
mr-july May 31, 2022
cdb76df
improve keymap configuration parameters
mr-july May 31, 2022
87a9149
small restructuring, add some comments
mr-july May 31, 2022
3129892
fix formatting
mr-july May 31, 2022
3593e4e
improve bottom row alignment
mr-july May 31, 2022
f6ce336
add "Print Screen", "Screen Lock" and "Pause" keys
mr-july May 31, 2022
65b6616
add mouse buttons to mouse layer
mr-july May 31, 2022
7df3f2c
improve thumbs cluster on symbol layer
mr-july Jun 1, 2022
84c12ea
remove unused statement
mr-july Jun 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions keyboards/royal_kludge/rk61/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
Copyright 2022 mr. JULY <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include QMK_KEYBOARD_H
#include "layout.h"

enum layer_names {
_BASE, // default layer
_RMODS, // right modifiers: Alt, context menu, Ctrl instead of arrows
_FN, // functional layer (F1-F10, backlight controls etc.)
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = BASE_KEYMAP,
[_RMODS] = RMODS_KEYMAP,
[_FN] = FN_KEYMAP
};
64 changes: 64 additions & 0 deletions keyboards/royal_kludge/rk61/keymaps/default/layout.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
Copyright 2022 mr. JULY <[email protected]>

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

/*
Row: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 */

#define LAYOUT( \
k0_00, k0_01, k0_02, k0_03, k0_04, k0_05, k0_06, k0_07, k0_08, k0_09, k0_10, k0_11, k0_12, k0_13, \
k1_00, k1_01, k1_02, k1_03, k1_04, k1_05, k1_06, k1_07, k1_08, k1_09, k1_10, k1_11, k1_12, k1_13, \
k2_00, k2_01, k2_02, k2_03, k2_04, k2_05, k2_06, k2_07, k2_08, k2_09, k2_10, k2_11, k2_12, k2_13, \
k3_00, k3_01, k3_02, k3_03, k3_04, k3_05, k3_06, k3_07, k3_08, k3_09, k3_10, k3_11, k3_12, k3_13, \
k4_00, k4_01, k4_02, k4_03, k4_04, k4_05, k4_06, k4_07, k4_08, k4_09, k4_10, k4_11, k4_12, k4_13 \
) { \
{ k0_00, k0_01, k0_02, k0_03, k0_04, k0_05, k0_06, k0_07, k0_08, k0_09, k0_10, k0_11, k0_12, k0_13, }, \
{ k1_00, k1_01, k1_02, k1_03, k1_04, k1_05, k1_06, k1_07, k1_08, k1_09, k1_10, k1_11, k1_12, k1_13, }, \
{ k2_00, k2_01, k2_02, k2_03, k2_04, k2_05, k2_06, k2_07, k2_08, k2_09, k2_10, k2_11, k2_12, k2_13, }, \
{ k3_00, k3_01, k3_02, k3_03, k3_04, k3_05, k3_06, k3_07, k3_08, k3_09, k3_10, k3_11, k3_12, k3_13, }, \
{ k4_00, k4_01, k4_02, k4_03, k4_04, k4_05, k4_06, k4_07, k4_08, k4_09, k4_10, k4_11, k4_12, k4_13, } \
}
// default layer
#define BASE_KEYMAP_(caps, nuhs, nubs) LAYOUT( \
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, \
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, \
caps, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, nuhs, KC_ENT, \
KC_LSFT, nubs, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_RSFT, XXXXXXX, \
KC_LCTL, KC_LGUI, KC_LALT, XXXXXXX, XXXXXXX, XXXXXXX, KC_SPC, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RIGHT, XXXXXXX, MO(_FN) \
)
#define BASE_KEYMAP BASE_KEYMAP_(KC_CAPS, KC_NUHS, KC_NUBS)

// snap right hand modifiers: Alt, context menu, Ctrl instead of arrows
#define RMODS_KEYMAP_(ralt) LAYOUT( \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_SLSH, _______, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, ralt, KC_APP, KC_RCTL, _______, _______ \
)

#define RMODS_KEYMAP RMODS_KEYMAP_(KC_RALT)

// functional layer (F1-F10, backlight controls etc.)
#define FN_KEYMAP LAYOUT( \
KC_GRV, 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_DEL, \
_______, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_PSCR, KC_SLCK, KC_PAUS, _______, RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD, \
RESET, KC_VOLU, KC_BRIU, _______, _______, _______, KC_INS, KC_HOME, KC_PGUP, _______, RGB_SPD, RGB_SPI, RGB_MOD, TG(_RMODS), \
_______, _______, KC_VOLD, KC_BRID, _______, _______, _______, KC_DEL, KC_END, KC_PGDN, _______, KC_SLSH, _______, _______, \
_______, GUI_TOG, _______, _______, _______, _______, _______, _______, _______, KC_RALT, KC_APP, KC_RCTL, _______, _______ \
)
29 changes: 29 additions & 0 deletions keyboards/royal_kludge/rk61/keymaps/iso-neo-l3l4/combo.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
Copyright 2022 mr. JULY <[email protected]>

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 "quantum.h"

enum combo_event {
CAPS_COMBO,
};

const uint16_t PROGMEM caps_combo[] = {KC_LSFT, KC_RSFT, COMBO_END}; // Combo: both Shift keys together for CAPS_LOCK

// Register the combo action
combo_t key_combos[COMBO_COUNT] = {
[CAPS_COMBO] = COMBO(caps_combo, KC_CAPS),
};
22 changes: 22 additions & 0 deletions keyboards/royal_kludge/rk61/keymaps/iso-neo-l3l4/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
Copyright 2022 mr. JULY <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define KEYMAP_ISO 1

#define COMBO_COUNT 1 // Number of defined combos
48 changes: 48 additions & 0 deletions keyboards/royal_kludge/rk61/keymaps/iso-neo-l3l4/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
Copyright 2022 mr. JULY <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include QMK_KEYBOARD_H
#include "keymap_german.h"
#include "../default/layout.h"

enum layer_names {
_BASE, // default layer
_RMODS, // right modifiers: Alt, context menu, Ctrl instead of arrows
_L3, // neo layout layer 3 (special symbols: punctuation, braces etc.)
_L4, // neo layout layer 4 (navigation and numbers)
_FN, // functional layer (F1-F10, backlight controls etc.)
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = BASE_KEYMAP_(MO(_L3), MO(_L3), MO(_L4)),
[_RMODS] = RMODS_KEYMAP_(MO(_L4)),
[_L3] = {
{ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, },
{ _______, RALT(KC_DOT),DE_UNDS, DE_LBRC, DE_RBRC, DE_CIRC, DE_EXLM, DE_LABK, DE_RABK, DE_EQL, DE_AMPR, _______, _______, _______, },
{ _______, DE_BSLS, DE_SLSH, DE_LCBR, DE_RCBR, DE_ASTR, DE_QUES, DE_LPRN, DE_RPRN, DE_MINS, DE_COLN, DE_AT, _______, _______, },
{ _______, _______, DE_HASH, DE_DLR, DE_PIPE, DE_TILD, DE_GRV, DE_PLUS, DE_PERC, DE_DQUO, DE_QUOT, DE_SCLN, _______, _______, },
{ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, }
},
[_L4] = {
{ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, },
{ _______, KC_PGUP, KC_BSPC, KC_UP, KC_DEL, KC_PGDN, KC_PSLS, KC_P7, KC_P8, KC_P9, KC_PMNS, _______, _______, _______, },
{ _______, KC_HOME, KC_LEFT, KC_DOWN, KC_RIGHT, KC_END, KC_PAST, KC_P4, KC_P5, KC_P6, KC_PPLS, _______, _______, _______, },
{ _______, _______, KC_ESC, KC_TAB, KC_INS, KC_ENTER, LCTL(DE_Z), KC_NLCK, KC_P1, KC_P2, KC_P3, KC_PDOT, _______, _______, },
{ _______, _______, _______, _______, _______, _______, KC_P0, _______, _______, _______, _______, _______, _______, _______, }
},
[_FN] = FN_KEYMAP
};
3 changes: 3 additions & 0 deletions keyboards/royal_kludge/rk61/keymaps/iso-neo-l3l4/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
COMBO_ENABLE = yes # Used to allow chording of keys to trigger an action

SRC += combo.c
20 changes: 20 additions & 0 deletions keyboards/royal_kludge/rk61/keymaps/iso/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
Copyright 2022 mr. JULY <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define KEYMAP_ISO 1
18 changes: 18 additions & 0 deletions keyboards/royal_kludge/rk61/keymaps/iso/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
Copyright 2022 mr. JULY <[email protected]>

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 "../default/keymap.c"
26 changes: 26 additions & 0 deletions keyboards/royal_kludge/rk61/keymaps/korkem/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
Copyright 2022 mr. JULY <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define KEYMAP_ISO 1

// allow fast typing on home row mods
#define IGNORE_MOD_TAP_INTERRUPT

// enable rapid switch from tap to hold, disables double tap hold auto-repeat
#define TAPPING_FORCE_HOLD
Loading