Skip to content

Commit

Permalink
Rk61 rk68 persistent default layout (#371)
Browse files Browse the repository at this point in the history
* Added support for RK61-RGB

* Added readme.md

* Fixed some typos.

* Minor changes to VIA keymap

* Added support for RK68 (RK855) with VID 0C45 and PID 024F or 8008

* Moved RESET to Fn+CTRL on RK61-RGB

* Corrected RGB LED pin order

* Updated readme.md file

* Moved readme.md images to cloud

* Keymap changes

* Moved RGB coords and flags into info.json

* Removed unnecessary define for maximum brightness (default value is identical)

* Update keyboards/royal_kludge/rk61_rgb/config_led.h

Removed outdated defines not needed.

Co-authored-by: dexter93 <d3xter93@gmail.com>

* Removed outdated defines not needed.

* Removed NKRO force option

* Removed leftover flag

* Updated license header and added missing one

* Removed empty VIA layers as they are automatically added.

* Update keyboards/royal_kludge/rk61_rgb/config_led.h

Removed obsolete flags.

Co-authored-by: dexter93 <d3xter93@gmail.com>

* Moved Led coords and flags into info.json

* Cleanup

* Moved _user function into keymaps. Small corrections

* More cleanup

* Update keyboards/royal_kludge/rk68_rgb/rules.mk

removing file no longer needed

Co-authored-by: dexter93 <d3xter93@gmail.com>

* Code cleanup

* Moved layout limits into config.h

* Moved layer count limit to specific via keymap folder.

* Added persistent default MAC/WIN layers

* Code cleanup

---------

Co-authored-by: dexter93 <d3xter93@gmail.com>
  • Loading branch information
fpb and dexter93 authored Jan 3, 2024
1 parent dc4c731 commit 297cbf3
Show file tree
Hide file tree
Showing 8 changed files with 677 additions and 85 deletions.
5 changes: 3 additions & 2 deletions keyboards/royal_kludge/rk61_rgb/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"pid": "0x8016",
"device_version": "1.0.0"
},

"dynamic_keymap": {
"layer_count": 5
},
"features": {
"audio": false,
"backlight": false,
Expand All @@ -23,7 +25,6 @@
"nkro": true,
"rgb_matrix": true
},

"debounce": 5,
"diode_direction": "COL2ROW",
"matrix_pins": {
Expand Down
197 changes: 171 additions & 26 deletions keyboards/royal_kludge/rk61_rgb/keymaps/default/keymap.c

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions keyboards/royal_kludge/rk61_rgb/keymaps/via/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* Copyright (C) 2023 Fernando Birra <fernando.birra@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define WEAR_LEVELING_SN32_EMULATION_PAGE_COUNT 32
195 changes: 170 additions & 25 deletions keyboards/royal_kludge/rk61_rgb/keymaps/via/keymap.c

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions keyboards/royal_kludge/rk68_rgb/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"pid": "0x8008",
"device_version": "1.0.0"
},

"dynamic_keymap": {
"layer_count": 5
},
"features": {
"audio": false,
"backlight": false,
Expand Down Expand Up @@ -124,7 +126,7 @@
]
},
"layouts": {
"LAYOUT": {
"LAYOUT_65_ansi": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
Expand Down
172 changes: 156 additions & 16 deletions keyboards/royal_kludge/rk68_rgb/keymaps/default/keymap.c

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion keyboards/royal_kludge/rk68_rgb/keymaps/via/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

#pragma once

#define DYNAMIC_KEYMAP_LAYER_COUNT 3
#define WEAR_LEVELING_SN32_EMULATION_PAGE_COUNT 32
166 changes: 153 additions & 13 deletions keyboards/royal_kludge/rk68_rgb/keymaps/via/keymap.c

Large diffs are not rendered by default.

0 comments on commit 297cbf3

Please sign in to comment.