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 14 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 "keymap.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
};
50 changes: 50 additions & 0 deletions keyboards/royal_kludge/rk61/keymaps/default/keymap.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
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 */

// default layer
#define BASE_KEYMAP_(caps, nuhs, nubs) { \
{ 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) { \
{ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, }, \
{ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, }, \
{ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, }, \
{ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_SLSH, _______, _______, }, \
{ _______, _______, _______, _______, _______, _______, _______, _______, _______, ralt, KC_APP, KC_RCTL, _______, _______, } \
}

#define RMODS_KEYMAP RMODS_KEYMAP_(KC_RALT)

// functional layer (F1-F10, backlight controls etc.)
#define FN_KEYMAP { \
{ 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/keymap.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"
102 changes: 102 additions & 0 deletions keyboards/royal_kludge/rk61/rgb/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
/* Copyright 2020 euwbah <[email protected]>
*
* 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

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0x0C45
#define PRODUCT_ID 0x024F
#define DEVICE_VER 0x0121

#define MANUFACTURER Royal Kludge
#define PRODUCT RK61 RGB
#define DESCRIPTION RK61 QMK OpenRGB

/* key matrix size */
#define MATRIX_ROWS 5
#define MATRIX_COLS 14

/* The rk 61 retrieves all columns at once, scanning one row at a time */
#define DIODE_DIRECTION COL2ROW

#define MATRIX_COL_PINS { A8, A9, A10, A11, A12, A13, A14, A15, B0, B1, B2, B3, B4, B5 }
#define MATRIX_ROW_PINS { D11, D10, D9, D8, D7 }

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5

/* Enable NKRO - Up to 248 keys at the same time. */
#define FORCE_NKRO

/* RGB Non-Reactive Effects */
#define ENABLE_RGB_MATRIX_ALPHAS_MODS
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
#define ENABLE_RGB_MATRIX_BREATHING
#define ENABLE_RGB_MATRIX_BAND_SAT
#define ENABLE_RGB_MATRIX_BAND_VAL
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
#define ENABLE_RGB_MATRIX_CYCLE_ALL
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
#define ENABLE_RGB_MATRIX_DUAL_BEACON
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
#define ENABLE_RGB_MATRIX_RAINDROPS
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
#define ENABLE_RGB_MATRIX_HUE_BREATHING
#define ENABLE_RGB_MATRIX_HUE_PENDULUM
#define ENABLE_RGB_MATRIX_HUE_WAVE
#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
#define ENABLE_RGB_MATRIX_PIXEL_RAIN
#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN

/* RGB Reactive Effects Toggle */
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES
//#define RGB_MATRIX_KEYRELEASES

/* RGB Reactive Effects */
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
#define ENABLE_RGB_MATRIX_SPLASH
#define ENABLE_RGB_MATRIX_MULTISPLASH
#define ENABLE_RGB_MATRIX_SOLID_SPLASH
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH

#include "config_led.h"

/* Enable RGB sleep */
#define RGB_DISABLE_WHEN_USB_SUSPENDED true
Loading