aboutsummaryrefslogtreecommitdiff
path: root/keyboards/rart
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2020-12-14 22:27:09 +0000
committerQMK Bot <hello@qmk.fm>2020-12-14 22:27:09 +0000
commit9a04739b9866876bcee0ee13590488eb85891598 (patch)
tree0fb62e0adc399e84bc6266b96e816a6340c02e91 /keyboards/rart
parentac0ad5ad179b2799a1f7d97cfa685d11eb133919 (diff)
parentac8cddda22aa0abc4f41405c7f94a56dc533dfc4 (diff)
downloadqmk_firmware-9a04739b9866876bcee0ee13590488eb85891598.tar.gz
qmk_firmware-9a04739b9866876bcee0ee13590488eb85891598.zip
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/rart')
-rw-r--r--keyboards/rart/rart45/config.h47
-rw-r--r--keyboards/rart/rart45/info.json70
-rw-r--r--keyboards/rart/rart45/keymaps/default/keymap.c43
-rw-r--r--keyboards/rart/rart45/keymaps/via/keymap.c50
-rw-r--r--keyboards/rart/rart45/keymaps/via/rules.mk1
-rw-r--r--keyboards/rart/rart45/rart45.c15
-rw-r--r--keyboards/rart/rart45/rart45.h44
-rw-r--r--keyboards/rart/rart45/readme.md23
-rw-r--r--keyboards/rart/rart45/rules.mk22
9 files changed, 315 insertions, 0 deletions
diff --git a/keyboards/rart/rart45/config.h b/keyboards/rart/rart45/config.h
new file mode 100644
index 000000000..d4d7e7444
--- /dev/null
+++ b/keyboards/rart/rart45/config.h
@@ -0,0 +1,47 @@
1/* Copyright 2020 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
16#pragma once
17
18#include "config_common.h"
19
20/* USB Device descriptor parameter */
21#define VENDOR_ID 0x414C
22#define PRODUCT_ID 0x0045
23#define DEVICE_VER 0x0001
24#define MANUFACTURER Alabahuy
25#define PRODUCT Rart45
26
27/* key matrix size */
28#define MATRIX_ROWS 9
29#define MATRIX_COLS 6
30
31#define MATRIX_ROW_PINS { D1, C3, C1, B1, D0, C2, C0, D7, B0 }
32#define MATRIX_COL_PINS { D6, D4, B2, B5, B4, B3 }
33#define UNUSED_PINS
34
35/* COL2ROW, ROW2COL*/
36#define DIODE_DIRECTION COL2ROW
37
38#define LED_CAPS_LOCK_PIN D5
39#define LED_PIN_ON_STATE 0
40
41/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
42#define DEBOUNCE 5
43
44/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
45#define LOCKING_SUPPORT_ENABLE
46/* Locking resynchronize hack */
47#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/rart/rart45/info.json b/keyboards/rart/rart45/info.json
new file mode 100644
index 000000000..d3fc5aa7c
--- /dev/null
+++ b/keyboards/rart/rart45/info.json
@@ -0,0 +1,70 @@
1{
2 "keyboard_name": "Rartlice",
3 "url": "",
4 "maintainer": "Alabahuy",
5 "width": 13,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_all": {
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": 7, "y": 0 },
17 { "x": 8, "y": 0 },
18 { "x": 9, "y": 0 },
19 { "x": 10, "y": 0 },
20 { "x": 11, "y": 0 },
21 { "x": 12, "y": 0 },
22
23 {"x": 0, "y": 1 },
24 {"x": 1, "y": 1 },
25 {"x": 2, "y": 1 },
26 {"x": 3, "y": 1 },
27 {"x": 4, "y": 1 },
28 {"x": 5, "y": 1 },
29 {"x": 7, "y": 1 },
30 {"x": 8, "y": 1 },
31 {"x": 9, "y": 1 },
32 {"x": 10, "y": 1 },
33 {"x": 11, "y": 1 },
34 {"x": 12, "y": 1 },
35
36 {"x": 0, "y": 2 },
37 {"x": 1, "y": 2 },
38 {"x": 2, "y": 2 },
39 {"x": 3, "y": 2 },
40 {"x": 4, "y": 2 },
41 {"x": 5, "y": 2 },
42 {"x": 7, "y": 2 },
43 {"x": 8, "y": 2 },
44 {"x": 9, "y": 2 },
45 {"x": 10, "y": 2 },
46 {"x": 11, "y": 2 },
47 {"x": 12, "y": 2 },
48
49 {"x": 0, "y": 3 },
50 {"x": 1, "y": 3 },
51 {"x": 2, "y": 3 },
52 {"x": 3, "y": 3 },
53 {"x": 4, "y": 3 },
54 {"x": 5, "y": 3 },
55 {"x": 7, "y": 3 },
56 {"x": 8, "y": 3 },
57 {"x": 9, "y": 3 },
58 {"x": 10, "y": 3 },
59 {"x": 11, "y": 3 },
60 {"x": 12, "y": 3 },
61
62 {"x": 2.875, "y": 4, "w":1.25},
63 {"x": 4.125, "y": 4, "w":1.25 },
64 {"x": 5.375, "y": 4, "w":2.25 },
65 {"x": 7.625, "y": 4, "w":1.25 },
66 {"x": 8.875, "y": 4, "w":1.25 }
67 ]
68 }
69 }
70}
diff --git a/keyboards/rart/rart45/keymaps/default/keymap.c b/keyboards/rart/rart45/keymaps/default/keymap.c
new file mode 100644
index 000000000..c1aae5828
--- /dev/null
+++ b/keyboards/rart/rart45/keymaps/default/keymap.c
@@ -0,0 +1,43 @@
1/* Copyright 2020 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 QMK_KEYBOARD_H
16
17const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
18
19 [0] = LAYOUT_all(
20 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
21 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
22 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_BSLS,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
24 KC_LCTL, MO(1), KC_SPC, MO(2), KC_LALT
25 ),
26
27 [1] = LAYOUT_all(
28 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
29 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
32 KC_LCTL, _______, KC_SPC, _______, KC_LALT
33 ),
34
35 [2] = LAYOUT_all(
36 RESET, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
40 KC_LCTL, _______, KC_SPC, _______, KC_LALT
41 )
42
43};
diff --git a/keyboards/rart/rart45/keymaps/via/keymap.c b/keyboards/rart/rart45/keymaps/via/keymap.c
new file mode 100644
index 000000000..2147bb67c
--- /dev/null
+++ b/keyboards/rart/rart45/keymaps/via/keymap.c
@@ -0,0 +1,50 @@
1/* Copyright 2020 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 QMK_KEYBOARD_H
16
17const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
18
19 [0] = LAYOUT_all(
20 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
21 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
22 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_BSLS,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
24 KC_LCTL, MO(1), KC_SPC, MO(2), KC_LALT
25 ),
26
27 [1] = LAYOUT_all(
28 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
29 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
32 KC_LCTL, _______, KC_SPC, _______, KC_LALT
33 ),
34
35 [2] = LAYOUT_all(
36 RESET, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
40 KC_LCTL, _______, KC_SPC, _______, KC_LALT
41 ),
42
43 [3] = LAYOUT_all(
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
48 _______, _______, _______, _______, _______
49 )
50};
diff --git a/keyboards/rart/rart45/keymaps/via/rules.mk b/keyboards/rart/rart45/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/rart/rart45/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/rart/rart45/rart45.c b/keyboards/rart/rart45/rart45.c
new file mode 100644
index 000000000..480b05a80
--- /dev/null
+++ b/keyboards/rart/rart45/rart45.c
@@ -0,0 +1,15 @@
1/* Copyright 2020 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 "rart45.h"
diff --git a/keyboards/rart/rart45/rart45.h b/keyboards/rart/rart45/rart45.h
new file mode 100644
index 000000000..99ac9acd9
--- /dev/null
+++ b/keyboards/rart/rart45/rart45.h
@@ -0,0 +1,44 @@
1/* Copyright 2020 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#pragma once
16
17#include "quantum.h"
18
19/* This a shortcut to help you visually see your layout.
20 *
21 * The first section contains all of the arguments representing the physical
22 * layout of the board and position of the keys.
23 *
24 * The second converts the arguments into a two-dimensional array which
25 * represents the switch matrix.
26 */
27#define LAYOUT_all( \
28 K00, K40, K01, K41, K02, K42, K03, K43, K04, K44, K05, K45, \
29 K10, K50, K11, K51, K12, K52, K13, K53, K14, K54, K15, K55, \
30 K20, K60, K21, K61, K22, K62, K23, K63, K24, K64, K25, K65, \
31 K30, K70, K31, K71, K32, K72, K33, K73, K34, K74, K35, K75, \
32 K80, K81, K82, K83, K84 \
33) \
34{ \
35 { K00, K01, K02, K03, K04, K05 }, \
36 { K10, K11, K12, K13, K14, K15 }, \
37 { K20, K21, K22, K23, K24, K25 }, \
38 { K30, K31, K32, K33, K34, K35 }, \
39 { K40, K41, K42, K43, K44, K45 }, \
40 { K50, K51, K52, K53, K54, K55 }, \
41 { K60, K61, K62, K63, K64, K65 }, \
42 { K70, K71, K72, K73, K74, K75 }, \
43 { K80, K81, K82, K83, K84, KC_NO }, \
44}
diff --git a/keyboards/rart/rart45/readme.md b/keyboards/rart/rart45/readme.md
new file mode 100644
index 000000000..9b9821e57
--- /dev/null
+++ b/keyboards/rart/rart45/readme.md
@@ -0,0 +1,23 @@
1# Rart45
2
3![TOP](https://user-images.githubusercontent.com/30220306/100749285-0fdd8500-3417-11eb-9b06-11a04f9de264.png)
4
5A 40% Ergo Layout Mechanical Keyboard with Atmega328p inspired by the Reviung41 by gtips and the Plaid by hsgw, based on [IMKG](https://www.facebook.com/groups/indomechanicalkeyboard/) (Indonesia Mechanical Keyboard Group).
6
7* Keyboard Maintainer: [Alabahuy](https://github.com/alabahuy)
8* Hardware Supported: RART45 PCB, Mini USB, ATMEGA328p with vusb
9* Hardware Availability: Private GB
10
11Make example for this keyboard (after setting up your build environment):
12
13 make rart/rart45:default
14
15Flashing example for this keyboard:
16
17 make rart/rart45:default:flash
18
19## Bootloader
20use usbasploader in hgsw repository.
21https://github.com/hsgw/USBaspLoader/tree/plaid
22
23See 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/rart45/rules.mk b/keyboards/rart/rart45/rules.mk
new file mode 100644
index 000000000..e9a5cac27
--- /dev/null
+++ b/keyboards/rart/rart45/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega328p
3
4# Bootloader selection
5BOOTLOADER = USBasp
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 = no # 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