aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kprepublic
diff options
context:
space:
mode:
authorJames Young <18669334+noroadsleft@users.noreply.github.com>2022-01-07 13:47:49 -0800
committerGitHub <noreply@github.com>2022-01-07 13:47:49 -0800
commit4ace960b98bf50468cf560a50ce591d6de00639d (patch)
treea45903b5fa0c9b49dd4dbb1be16346d996bd10c4 /keyboards/kprepublic
parenta5afe84a121026d6b0489ee66939d954d19c9ddb (diff)
downloadqmk_firmware-4ace960b98bf50468cf560a50ce591d6de00639d.tar.gz
qmk_firmware-4ace960b98bf50468cf560a50ce591d6de00639d.zip
JJ50 Touch-Up (#15762)
* rules.mk: Build Options sorting and white space * use QMK 3-character notation * info.json: apply friendly formatting * info.json: use 3-character notation * move layout macro alias to info.json * number matrix identifiers by electrical position
Diffstat (limited to 'keyboards/kprepublic')
-rw-r--r--keyboards/kprepublic/jj50/info.json82
-rw-r--r--keyboards/kprepublic/jj50/jj50.h22
-rw-r--r--keyboards/kprepublic/jj50/rules.mk16
3 files changed, 93 insertions, 27 deletions
diff --git a/keyboards/kprepublic/jj50/info.json b/keyboards/kprepublic/jj50/info.json
index e492059e1..5d84efe24 100644
--- a/keyboards/kprepublic/jj50/info.json
+++ b/keyboards/kprepublic/jj50/info.json
@@ -1,10 +1,78 @@
1{ 1{
2 "keyboard_name": "JJ50", 2 "keyboard_name": "JJ50",
3 "url": "", 3 "url": "",
4 "maintainer": "qmk", 4 "maintainer": "qmk",
5 "layouts": { 5 "layout_aliases": {
6 "LAYOUT_ortho_5x12": { 6 "LAYOUT": "LAYOUT_ortho_5x12"
7 "layout": [{"label":"K011", "x":0, "y":0}, {"label":"K010", "x":1, "y":0}, {"label":"K009", "x":2, "y":0}, {"label":"K008", "x":3, "y":0}, {"label":"K004", "x":4, "y":0}, {"label":"K005", "x":5, "y":0}, {"label":"K006", "x":6, "y":0}, {"label":"K007", "x":7, "y":0}, {"label":"K003", "x":8, "y":0}, {"label":"K002", "x":9, "y":0}, {"label":"K201", "x":10, "y":0}, {"label":"K000", "x":11, "y":0}, {"label":"K111", "x":0, "y":1}, {"label":"K110", "x":1, "y":1}, {"label":"K109", "x":2, "y":1}, {"label":"K108", "x":3, "y":1}, {"label":"K104", "x":4, "y":1}, {"label":"K105", "x":5, "y":1}, {"label":"K106", "x":6, "y":1}, {"label":"K107", "x":7, "y":1}, {"label":"K103", "x":8, "y":1}, {"label":"K102", "x":9, "y":1}, {"label":"K001", "x":10, "y":1}, {"label":"K100", "x":11, "y":1}, {"label":"K211", "x":0, "y":2}, {"label":"K210", "x":1, "y":2}, {"label":"K209", "x":2, "y":2}, {"label":"K208", "x":3, "y":2}, {"label":"K204", "x":4, "y":2}, {"label":"K205", "x":5, "y":2}, {"label":"K206", "x":6, "y":2}, {"label":"K207", "x":7, "y":2}, {"label":"K203", "x":8, "y":2}, {"label":"K202", "x":9, "y":2}, {"label":"K101", "x":10, "y":2}, {"label":"K200", "x":11, "y":2}, {"label":"K311", "x":0, "y":3}, {"label":"K310", "x":1, "y":3}, {"label":"K309", "x":2, "y":3}, {"label":"K308", "x":3, "y":3}, {"label":"K304", "x":4, "y":3}, {"label":"K305", "x":5, "y":3}, {"label":"K306", "x":6, "y":3}, {"label":"K307", "x":7, "y":3}, {"label":"K303", "x":8, "y":3}, {"label":"K302", "x":9, "y":3}, {"label":"K301", "x":10, "y":3}, {"label":"K300", "x":11, "y":3}, {"label":"K411", "x":0, "y":4}, {"label":"K410", "x":1, "y":4}, {"label":"K409", "x":2, "y":4}, {"label":"K408", "x":3, "y":4}, {"label":"K404", "x":4, "y":4}, {"label":"K405", "x":5, "y":4}, {"label":"K406", "x":6, "y":4}, {"label":"K407", "x":7, "y":4}, {"label":"K403", "x":8, "y":4}, {"label":"K402", "x":9, "y":4}, {"label":"K401", "x":10, "y":4}, {"label":"K400", "x":11, "y":4}] 7 },
8 "layouts": {
9 "LAYOUT_ortho_5x12": {
10 "layout": [
11 {"label":"K2B", "x":0, "y":0},
12 {"label":"K2A", "x":1, "y":0},
13 {"label":"K29", "x":2, "y":0},
14 {"label":"K28", "x":3, "y":0},
15 {"label":"K24", "x":4, "y":0},
16 {"label":"K25", "x":5, "y":0},
17 {"label":"K26", "x":6, "y":0},
18 {"label":"K27", "x":7, "y":0},
19 {"label":"K23", "x":8, "y":0},
20 {"label":"K22", "x":9, "y":0},
21 {"label":"K21", "x":10, "y":0},
22 {"label":"K20", "x":11, "y":0},
23
24 {"label":"K0B", "x":0, "y":1},
25 {"label":"K0A", "x":1, "y":1},
26 {"label":"K09", "x":2, "y":1},
27 {"label":"K08", "x":3, "y":1},
28 {"label":"K04", "x":4, "y":1},
29 {"label":"K05", "x":5, "y":1},
30 {"label":"K06", "x":6, "y":1},
31 {"label":"K07", "x":7, "y":1},
32 {"label":"K03", "x":8, "y":1},
33 {"label":"K02", "x":9, "y":1},
34 {"label":"K01", "x":10, "y":1},
35 {"label":"K00", "x":11, "y":1},
36
37 {"label":"K1B", "x":0, "y":2},
38 {"label":"K1A", "x":1, "y":2},
39 {"label":"K19", "x":2, "y":2},
40 {"label":"K18", "x":3, "y":2},
41 {"label":"K14", "x":4, "y":2},
42 {"label":"K15", "x":5, "y":2},
43 {"label":"K16", "x":6, "y":2},
44 {"label":"K17", "x":7, "y":2},
45 {"label":"K13", "x":8, "y":2},
46 {"label":"K12", "x":9, "y":2},
47 {"label":"K11", "x":10, "y":2},
48 {"label":"K10", "x":11, "y":2},
49
50 {"label":"K3B", "x":0, "y":3},
51 {"label":"K3A", "x":1, "y":3},
52 {"label":"K39", "x":2, "y":3},
53 {"label":"K38", "x":3, "y":3},
54 {"label":"K34", "x":4, "y":3},
55 {"label":"K35", "x":5, "y":3},
56 {"label":"K36", "x":6, "y":3},
57 {"label":"K37", "x":7, "y":3},
58 {"label":"K33", "x":8, "y":3},
59 {"label":"K32", "x":9, "y":3},
60 {"label":"K31", "x":10, "y":3},
61 {"label":"K30", "x":11, "y":3},
62
63 {"label":"K4B", "x":0, "y":4},
64 {"label":"K4A", "x":1, "y":4},
65 {"label":"K49", "x":2, "y":4},
66 {"label":"K48", "x":3, "y":4},
67 {"label":"K44", "x":4, "y":4},
68 {"label":"K45", "x":5, "y":4},
69 {"label":"K46", "x":6, "y":4},
70 {"label":"K47", "x":7, "y":4},
71 {"label":"K43", "x":8, "y":4},
72 {"label":"K42", "x":9, "y":4},
73 {"label":"K41", "x":10, "y":4},
74 {"label":"K40", "x":11, "y":4}
75 ]
76 }
8 } 77 }
9 }
10} 78}
diff --git a/keyboards/kprepublic/jj50/jj50.h b/keyboards/kprepublic/jj50/jj50.h
index 59d5c6409..a3d42856c 100644
--- a/keyboards/kprepublic/jj50/jj50.h
+++ b/keyboards/kprepublic/jj50/jj50.h
@@ -22,17 +22,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
22#include "quantum.h" 22#include "quantum.h"
23 23
24#define LAYOUT_ortho_5x12( \ 24#define LAYOUT_ortho_5x12( \
25 K011, K010, K009, K008, K004, K005, K006, K007, K003, K002, K201, K000, \ 25 K2B, K2A, K29, K28, K24, K25, K26, K27, K23, K22, K21, K20, \
26 K111, K110, K109, K108, K104, K105, K106, K107, K103, K102, K001, K100, \ 26 K0B, K0A, K09, K08, K04, K05, K06, K07, K03, K02, K01, K00, \
27 K211, K210, K209, K208, K204, K205, K206, K207, K203, K202, K101, K200, \ 27 K1B, K1A, K19, K18, K14, K15, K16, K17, K13, K12, K11, K10, \
28 K311, K310, K309, K308, K304, K305, K306, K307, K303, K302, K301, K300, \ 28 K3B, K3A, K39, K38, K34, K35, K36, K37, K33, K32, K31, K30, \
29 K411, K410, K409, K408, K404, K405, K406, K407, K403, K402, K401, K400 \ 29 K4B, K4A, K49, K48, K44, K45, K46, K47, K43, K42, K41, K40 \
30) { \ 30) { \
31 { K100, K001, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, }, \ 31 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, }, \
32 { K200, K101, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, }, \ 32 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, }, \
33 { K000, K201, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, }, \ 33 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, }, \
34 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, }, \ 34 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, }, \
35 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411 } \ 35 { K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B } \
36} 36}
37
38#define LAYOUT LAYOUT_ortho_5x12
diff --git a/keyboards/kprepublic/jj50/rules.mk b/keyboards/kprepublic/jj50/rules.mk
index 2e510c8bb..faa1a619b 100644
--- a/keyboards/kprepublic/jj50/rules.mk
+++ b/keyboards/kprepublic/jj50/rules.mk
@@ -8,14 +8,14 @@ BOOTLOADER = bootloadhid
8# change yes to no to disable 8# change yes to no to disable
9# 9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite 10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = no # Mouse keys 11MOUSEKEY_ENABLE = no # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control 12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug 13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration 14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = no # Enable N-Key Rollover 15NKRO_ENABLE = no # Enable N-Key Rollover
16BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality 16BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = yes # Enable keyboard underlight functionality 17RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
18WS2812_DRIVER = i2c # This driver powers the RGB Lighting and RGB Matrix features 18WS2812_DRIVER = i2c # This driver powers the RGB Lighting and RGB Matrix features
19LTO_ENABLE = yes # Enable link time optimization 19LTO_ENABLE = yes # Enable link time optimization
20 20
21LAYOUTS = ortho_5x12 21LAYOUTS = ortho_5x12