aboutsummaryrefslogtreecommitdiff
path: root/keyboards/rart
diff options
context:
space:
mode:
authorlabahuy <68632528+labahuy@users.noreply.github.com>2021-03-04 03:38:16 +0700
committerGitHub <noreply@github.com>2021-03-03 12:38:16 -0800
commit018b8e1d62f8c067bd556492b7e8cf8407eb6036 (patch)
tree9b542cae9eb808d44a44086939b282c5306e7943 /keyboards/rart
parentba3c346195ef96d8c464ba14d6cc05837b7560e1 (diff)
downloadqmk_firmware-018b8e1d62f8c067bd556492b7e8cf8407eb6036.tar.gz
qmk_firmware-018b8e1d62f8c067bd556492b7e8cf8407eb6036.zip
[Keyboard] Add Keyboard Rartlite (#11866)
Diffstat (limited to 'keyboards/rart')
-rw-r--r--keyboards/rart/rartlite/config.h53
-rw-r--r--keyboards/rart/rartlite/info.json133
-rw-r--r--keyboards/rart/rartlite/keymaps/default/keymap.c37
-rw-r--r--keyboards/rart/rartlite/keymaps/via/keymap.c51
-rw-r--r--keyboards/rart/rartlite/keymaps/via/rules.mk1
-rw-r--r--keyboards/rart/rartlite/rartlite.c26
-rw-r--r--keyboards/rart/rartlite/rartlite.h50
-rw-r--r--keyboards/rart/rartlite/readme.md22
-rw-r--r--keyboards/rart/rartlite/rules.mk22
9 files changed, 395 insertions, 0 deletions
diff --git a/keyboards/rart/rartlite/config.h b/keyboards/rart/rartlite/config.h
new file mode 100644
index 000000000..a11592d39
--- /dev/null
+++ b/keyboards/rart/rartlite/config.h
@@ -0,0 +1,53 @@
1/*
2Copyright 2021 Alabahuy
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x414C
24#define PRODUCT_ID 0x4040
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Alabahuy
27#define PRODUCT RARTLITE
28
29/* key matrix size */
30#define MATRIX_ROWS 8
31#define MATRIX_COLS 7
32
33/* key matrix pins */
34#define MATRIX_ROW_PINS { F4, D2, B2, B4, B6, B5, D0, D1 }
35#define MATRIX_COL_PINS { D4, C6, D7, E6, B3, F7, D3 }
36#define UNUSED_PINS
37
38/* COL2ROW or ROW2COL */
39#define DIODE_DIRECTION COL2ROW
40
41/* Set 0 if debouncing isn't needed */
42#define DEBOUNCE 5
43
44#define LED_CAPS_LOCK_PIN F5
45#define LED_NUM_LOCK_PIN F6
46
47#define LED_PIN_ON_STATE 0
48
49/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
50#define LOCKING_SUPPORT_ENABLE
51
52/* Locking resynchronize hack */
53#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/rart/rartlite/info.json b/keyboards/rart/rartlite/info.json
new file mode 100644
index 000000000..0659957de
--- /dev/null
+++ b/keyboards/rart/rartlite/info.json
@@ -0,0 +1,133 @@
1{
2 "keyboard_name": "RART4X4",
3 "url": "",
4 "maintainer": "Alabahuy",
5 "width": 15.25,
6 "height": 4.25,
7 "layouts": {
8 "LAYOUT_right_numpad": {
9 "layout": [
10 {"x": 0, "y": 0},
11 {"x": 1, "y": 0},
12 {"x": 2, "y": 0},
13 {"x": 3, "y": 0},
14 {"x": 4, "y": 0},
15 {"x": 5, "y": 0},
16 {"x": 6, "y": 0},
17 {"x": 7, "y": 0},
18 {"x": 8, "y": 0},
19 {"x": 9, "y": 0},
20 {"x": 10, "y": 0},
21 {"x": 11, "y": 0},
22 {"x": 12.25, "y": 0},
23 {"x": 13.25, "y": 0},
24 {"x": 14.25, "y": 0},
25
26 {"x": 0, "y": 1, "w":1.5},
27 {"x": 1.5, "y": 1},
28 {"x": 2.5, "y": 1},
29 {"x": 3.5, "y": 1},
30 {"x": 4.5, "y": 1},
31 {"x": 5.5, "y": 1},
32 {"x": 6.5, "y": 1},
33 {"x": 7.5, "y": 1},
34 {"x": 8.5, "y": 1},
35 {"x": 9.5, "y": 1},
36 {"x": 10.5, "y": 1, "w":1.5},
37 {"x": 12.25, "y": 1},
38 {"x": 13.25, "y": 1},
39 {"x": 14.25, "y": 1},
40
41 {"x": 0, "y": 2, "w":1.75},
42 {"x": 1.75, "y": 2},
43 {"x": 2.75, "y": 2},
44 {"x": 3.75, "y": 2},
45 {"x": 4.75, "y": 2},
46 {"x": 5.75, "y": 2},
47 {"x": 6.75, "y": 2},
48 {"x": 7.75, "y": 2},
49 {"x": 8.75, "y": 2},
50 {"x": 9.75, "y": 2},
51 {"x": 11, "y": 2.25},
52 {"x": 12.25, "y": 2},
53 {"x": 13.25, "y": 2},
54 {"x": 14.25, "y": 2},
55
56 {"x": 0, "y": 3, "w":1.25},
57 {"x": 1.25, "y": 3},
58 {"x": 2.25, "y": 3, "w":2.75},
59 {"x": 5, "y": 3, "w":1.25},
60 {"x": 6.25, "y": 3, "w":2.25},
61 {"x": 8.5, "y": 3, "w":1.25},
62 {"x": 10, "y": 3.25},
63 {"x": 11, "y": 3.25},
64 {"x": 12, "y": 3.25},
65 {"x": 13.25, "y": 3},
66 {"x": 14.25, "y": 3}
67 ]
68 },
69
70 "LAYOUT_left_numpad": {
71 "layout": [
72 {"x": 0, "y": 0},
73 {"x": 1, "y": 0},
74 {"x": 2, "y": 0},
75 {"x": 3.25, "y": 0},
76 {"x": 4.25, "y": 0},
77 {"x": 5.25, "y": 0},
78 {"x": 6.25, "y": 0},
79 {"x": 7.25, "y": 0},
80 {"x": 8.25, "y": 0},
81 {"x": 9.25, "y": 0},
82 {"x": 10.25, "y": 0},
83 {"x": 11.25, "y": 0},
84 {"x": 12.25, "y": 0},
85 {"x": 13.25, "y": 0},
86 {"x": 14.25, "y": 0},
87
88 {"x": 0, "y": 1},
89 {"x": 1, "y": 1},
90 {"x": 2, "y": 1},
91 {"x": 3.25, "y": 1, "w":1.5},
92 {"x": 4.75, "y": 1},
93 {"x": 5.75, "y": 1},
94 {"x": 6.75, "y": 1},
95 {"x": 7.75, "y": 1},
96 {"x": 8.75, "y": 1},
97 {"x": 9.75, "y": 1},
98 {"x": 10.75, "y": 1},
99 {"x": 11.75, "y": 1},
100 {"x": 12.75, "y": 1},
101 {"x": 13.75, "y": 1, "w":1.5},
102
103 {"x": 0, "y": 2},
104 {"x": 1, "y": 2},
105 {"x": 2, "y": 2},
106 {"x": 3.25, "y": 2.25},
107 {"x": 4.5, "y": 2},
108 {"x": 5.5, "y": 2},
109 {"x": 6.5, "y": 2},
110 {"x": 7.5, "y": 2},
111 {"x": 8.5, "y": 2},
112 {"x": 9.5, "y": 2},
113 {"x": 10.5, "y": 2},
114 {"x": 11.5, "y": 2},
115 {"x": 12.5, "y": 2},
116 {"x": 13.5, "y": 2, "w":1.75},
117
118 {"x": 0, "y": 3},
119 {"x": 1, "y": 3},
120 {"x": 2.25, "y": 3.25},
121 {"x": 3.25, "y": 3.25},
122 {"x": 4.25, "y": 3.25},
123 {"x": 5.5, "y": 3, "w":1.25},
124 {"x": 6.75, "y": 3, "w":2.25},
125 {"x": 9, "y": 3, "w":1.25},
126 {"x": 10.25, "y": 3, "w":2.75},
127 {"x": 13, "y": 3},
128 {"x": 14, "y": 3, "w":1.25}
129 ]
130 }
131
132 }
133}
diff --git a/keyboards/rart/rartlite/keymaps/default/keymap.c b/keyboards/rart/rartlite/keymaps/default/keymap.c
new file mode 100644
index 000000000..730aad990
--- /dev/null
+++ b/keyboards/rart/rartlite/keymaps/default/keymap.c
@@ -0,0 +1,37 @@
1/*
2Copyright 2021 Alabahuy
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17#include QMK_KEYBOARD_H
18
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21
22 [0] = LAYOUT_right_numpad(
23 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_P7, KC_P8, KC_P9,
24 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, KC_P4, KC_P5, KC_P6,
25 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_P1, KC_P2, KC_P3,
26 KC_RCTL, KC_LALT, KC_SPC, KC_SPC, KC_SPC, MO(1), KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
27 ),
28
29 [1] = LAYOUT_right_numpad(
30 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_INS, RESET,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, KC_PGDN, _______,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_END, _______,
33 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
34 ),
35
36};
37
diff --git a/keyboards/rart/rartlite/keymaps/via/keymap.c b/keyboards/rart/rartlite/keymaps/via/keymap.c
new file mode 100644
index 000000000..9cb23f8a5
--- /dev/null
+++ b/keyboards/rart/rartlite/keymaps/via/keymap.c
@@ -0,0 +1,51 @@
1/*
2Copyright 2021 Alabahuy
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17#include QMK_KEYBOARD_H
18
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21
22 [0] = LAYOUT_right_numpad(
23 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_P7, KC_P8, KC_P9,
24 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, KC_P4, KC_P5, KC_P6,
25 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_P1, KC_P2, KC_P3,
26 KC_RCTL, KC_LALT, KC_SPC, KC_SPC, KC_SPC, MO(1), KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
27 ),
28
29 [1] = LAYOUT_right_numpad(
30 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_INS, RESET,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, KC_PGDN, _______,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_END, _______,
33 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
34 ),
35
36 [2] = LAYOUT_right_numpad(
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
40 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
41 ),
42
43 [3] = LAYOUT_right_numpad(
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
48 )
49
50};
51
diff --git a/keyboards/rart/rartlite/keymaps/via/rules.mk b/keyboards/rart/rartlite/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/rart/rartlite/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/rart/rartlite/rartlite.c b/keyboards/rart/rartlite/rartlite.c
new file mode 100644
index 000000000..1f431f928
--- /dev/null
+++ b/keyboards/rart/rartlite/rartlite.c
@@ -0,0 +1,26 @@
1/* Copyright 2021 Alabahuy
2 * This program is free software: you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation, either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15#include "rartlite.h"
16
17void keyboard_pre_init_kb(void) {
18 setPinOutput(B1);
19
20 keyboard_pre_init_user();
21}
22
23layer_state_t layer_state_set_kb(layer_state_t state) {
24 writePin(B1, layer_state_cmp(state, 1));
25 return layer_state_set_user(state);
26}
diff --git a/keyboards/rart/rartlite/rartlite.h b/keyboards/rart/rartlite/rartlite.h
new file mode 100644
index 000000000..a602de224
--- /dev/null
+++ b/keyboards/rart/rartlite/rartlite.h
@@ -0,0 +1,50 @@
1/*
2Copyright 2021 Alabahuy
3This program is free software: you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation, either version 2 of the License, or
6(at your option) any later version.
7This program is distributed in the hope that it will be useful,
8but WITHOUT ANY WARRANTY; without even the implied warranty of
9MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10GNU General Public License for more details.
11You should have received a copy of the GNU General Public License
12along with this program. If not, see <http://www.gnu.org/licenses/>.
13*/
14#pragma once
15
16#include "quantum.h"
17
18#define LAYOUT_right_numpad( \
19 K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K34, K05, K15, K06, K16, \
20 K20, K30, K21, K31, K22, K32, K23, K33, K24, K54, K25, K35, K26, K36, \
21 K40, K50, K41, K51, K42, K52, K43, K53, K44, K74, K45, K55, K46, K56, \
22 K60, K70, K61, K62, K63, K73, K64, K65, K75, K66, K76 \
23) \
24{ \
25 { K00, K01, K02, K03, K04, K05, K06 }, \
26 { K10, K11, K12, K13, K14, K15, K16 }, \
27 { K20, K21, K22, K23, K24, K25, K26 }, \
28 { K30, K31, K32, K33, K34, K35, K36 }, \
29 { K40, K41, K42, K43, K44, K45, K46 }, \
30 { K50, K51, K52, K53, K54, K55, K56 }, \
31 { K60, K61, K62, K63, K64, K65, K66 }, \
32 { K70, KC_NO, KC_NO, K73, K74, K75, K76 }, \
33}
34
35#define LAYOUT_left_numpad( \
36 K16, K06, K15, K05, K34, K14, K04, K13, K03, K12, K02, K11, K01, K10, K00, \
37 K36, K26, K35, K25, K54, K24, K33, K23, K32, K22, K31, K21, K30, K20, \
38 K56, K46, K55, K45, K74, K44, K53, K43, K52, K42, K51, K41, K50, K40, \
39 K76, K66, K75, K65, K64, K73, K63, K62, K61, K70, K60 \
40) \
41{ \
42 { K00, K01, K02, K03, K04, K05, K06 }, \
43 { K10, K11, K12, K13, K14, K15, K16 }, \
44 { K20, K21, K22, K23, K24, K25, K26 }, \
45 { K30, K31, K32, K33, K34, K35, K36 }, \
46 { K40, K41, K42, K43, K44, K45, K46 }, \
47 { K50, K51, K52, K53, K54, K55, K56 }, \
48 { K60, K61, K62, K63, K64, K65, K66 }, \
49 { K70, KC_NO, KC_NO, K73, K74, K75, K76 }, \
50}
diff --git a/keyboards/rart/rartlite/readme.md b/keyboards/rart/rartlite/readme.md
new file mode 100644
index 000000000..b9f107fb0
--- /dev/null
+++ b/keyboards/rart/rartlite/readme.md
@@ -0,0 +1,22 @@
1# [RARTLITE](https://github.com/alabahuy/RART/tree/master/RARTLITE)
2
3![Top](https://user-images.githubusercontent.com/30220306/107148534-4212e200-6986-11eb-824d-dd7fbe10d333.png)
440% Layout mechanical keyboard with support left and right numpad. based on IMKG (Indonesia Mechanical Keyboard Group)
5
6* Keyboard Maintainer: [Alabahuy](https://github.com/alabahuy)
7* Hardware Supported: RARTLITE PCB, Promicro, Mini USB
8* Hardware Availability: Private GB
9
10Make example for this keyboard (after setting up your build environment):
11
12 make rart/rartlite:default
13
14Flashing example for this keyboard:
15
16 make rart/rartlite:default:flash
17
18## Bootloader
19
20To Enter the bootloader you can double click reset button on board when you flash the firmware
21
22See 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).
diff --git a/keyboards/rart/rartlite/rules.mk b/keyboards/rart/rartlite/rules.mk
new file mode 100644
index 000000000..e6a4d762d
--- /dev/null
+++ b/keyboards/rart/rartlite/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output