aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIbnu Daru Aji <ibnuda@users.noreply.github.com>2021-12-25 08:22:46 +0700
committerGitHub <noreply@github.com>2021-12-24 17:22:46 -0800
commit95d08b463654c0e614abadb5a552dc49b4395d7e (patch)
tree786c6af566d1c26408bee9442394e1e73f818cb2
parent34a7b435cd70f71b8fa1556f05f705a3497b2eb2 (diff)
downloadqmk_firmware-95d08b463654c0e614abadb5a552dc49b4395d7e.tar.gz
qmk_firmware-95d08b463654c0e614abadb5a552dc49b4395d7e.zip
[Keyboard] Add Gurindam (#15540)
Co-authored-by: Drashna Jaelre <drashna@live.com>
-rw-r--r--keyboards/gurindam/config.h117
-rw-r--r--keyboards/gurindam/gurindam.c16
-rw-r--r--keyboards/gurindam/gurindam.h46
-rw-r--r--keyboards/gurindam/info.json82
-rw-r--r--keyboards/gurindam/keymaps/default/keymap.c34
-rw-r--r--keyboards/gurindam/keymaps/default/readme.md1
-rw-r--r--keyboards/gurindam/keymaps/via/keymap.c49
-rw-r--r--keyboards/gurindam/keymaps/via/rules.mk1
-rw-r--r--keyboards/gurindam/readme.md23
-rw-r--r--keyboards/gurindam/rules.mk18
10 files changed, 387 insertions, 0 deletions
diff --git a/keyboards/gurindam/config.h b/keyboards/gurindam/config.h
new file mode 100644
index 000000000..9262bdbcd
--- /dev/null
+++ b/keyboards/gurindam/config.h
@@ -0,0 +1,117 @@
1/*
2Copyright 2021 Ibnu D. Aji
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 0x1209
24#define PRODUCT_ID 0x6974
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Ibnu D. Aji
27#define PRODUCT Gurindam
28
29/* key matrix size */
30#define MATRIX_ROWS 9
31#define MATRIX_COLS 8
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42*/
43#define MATRIX_ROW_PINS { B5, B4, E6, D7, C6, D4, D0, D1, D2}
44#define MATRIX_COL_PINS { F6, F5, F4, F7, B1, B3, B2, B6 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL*/
48#define DIODE_DIRECTION COL2ROW
49
50#define RGB_DI_PIN D3
51#define RGBLED_NUM 10
52#define RGBLIGHT_EFFECT_BREATHING
53#define RGBLIGHT_EFFECT_RAINBOW_MOOD
54#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
55#define RGBLIGHT_EFFECT_SNAKE
56#define RGBLIGHT_EFFECT_KNIGHT
57#define RGBLIGHT_EFFECT_CHRISTMAS
58#define RGBLIGHT_EFFECT_STATIC_GRADIENT
59#define RGBLIGHT_EFFECT_RGB_TEST
60#define RGBLIGHT_EFFECT_ALTERNATING
61
62/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
63#define DEBOUNCE 5
64
65/* define if matrix has ghost (lacks anti-ghosting diodes) */
66//#define MATRIX_HAS_GHOST
67
68/* number of backlight levels */
69
70/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
71#define LOCKING_SUPPORT_ENABLE
72/* Locking resynchronize hack */
73#define LOCKING_RESYNC_ENABLE
74
75/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
76 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
77 */
78// #define GRAVE_ESC_CTRL_OVERRIDE
79
80/*
81 * Force NKRO
82 *
83 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
84 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
85 * makefile for this to work.)
86 *
87 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
88 * until the next keyboard reset.
89 *
90 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
91 * fully operational during normal computer usage.
92 *
93 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
94 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
95 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
96 * power-up.
97 *
98 */
99//#define FORCE_NKRO
100
101/*
102 * Feature disable options
103 * These options are also useful to firmware size reduction.
104 */
105
106/* disable debug print */
107//#define NO_DEBUG
108
109/* disable print */
110//#define NO_PRINT
111
112/* disable action features */
113//#define NO_ACTION_LAYER
114//#define NO_ACTION_TAPPING
115//#define NO_ACTION_ONESHOT
116//#define NO_ACTION_MACRO
117//#define NO_ACTION_FUNCTION
diff --git a/keyboards/gurindam/gurindam.c b/keyboards/gurindam/gurindam.c
new file mode 100644
index 000000000..bdca0269c
--- /dev/null
+++ b/keyboards/gurindam/gurindam.c
@@ -0,0 +1,16 @@
1/* Copyright 2021 Ibnu D. Aji
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include "gurindam.h"
diff --git a/keyboards/gurindam/gurindam.h b/keyboards/gurindam/gurindam.h
new file mode 100644
index 000000000..9967bcf52
--- /dev/null
+++ b/keyboards/gurindam/gurindam.h
@@ -0,0 +1,46 @@
1/* Copyright 2021 Ibnu D. Aji
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#include "quantum.h"
19
20/* This a shortcut to help you visually see your layout.
21 *
22 * The first section contains all of the arguments representing the physical
23 * layout of the board and position of the keys.
24 *
25 * The second converts the arguments into a two-dimensional array which
26 * represents the switch matrix.
27 */
28#define XXX KC_NO
29#define LAYOUT( \
30 k1, k6, k10, k15, k19, k24, k28, k33, k37, k42, k46, k51, k55, k60, k64, k65, \
31 k2, k7, k11, k16, k20, k25, k29, k34, k38, k43, k47, k52, k56, k61, k66, \
32 k3, k8, k12, k17, k21, k26, k30, k35, k39, k44, k48, k53, k57, k62, \
33 k4, k9, k13, k18, k22, k27, k31, k36, k40, k45, k49, k54, k58, \
34 k5, k14, k23, k32, k41, k50, k59, k63, k67 \
35) \
36{ \
37 { k1, k10, k19, k28, k37, k46, k55, k64 }, \
38 { k6, k15, k24, k33, k42, k51, k60, XXX }, \
39 { k2, k11, k20, k29, k38, k47, k56, k65 }, \
40 { k7, k16, k25, k34, k43, k52, k61, XXX }, \
41 { k3, k12, k21, k30, k39, k48, k57, k66 }, \
42 { k8, k17, k26, k35, k44, k53, k62, XXX }, \
43 { k4, k13, k22, k31, k40, k49, k58, k67 }, \
44 { k9, k18, k27, k36, k45, k54, k63, XXX }, \
45 { k5, k14, k23, k32, k41, k50, k59, XXX } \
46}
diff --git a/keyboards/gurindam/info.json b/keyboards/gurindam/info.json
new file mode 100644
index 000000000..a196f066e
--- /dev/null
+++ b/keyboards/gurindam/info.json
@@ -0,0 +1,82 @@
1{
2 "keyboard_name": "gurindam",
3 "url": "https://github.com/ibnuda/gurindam",
4 "maintainer": "Ibnu D. Aji",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {"x":0, "y":0},
9 {"x":1, "y":0},
10 {"x":2, "y":0},
11 {"x":3, "y":0},
12 {"x":4, "y":0},
13 {"x":5, "y":0},
14 {"x":6, "y":0},
15 {"x":9, "y":0},
16 {"x":10, "y":0},
17 {"x":11, "y":0},
18 {"x":12, "y":0},
19 {"x":13, "y":0},
20 {"x":14, "y":0},
21 {"x":15, "y":0},
22 {"x":16, "y":0},
23 {"x":17.3, "y":0},
24
25 {"x":0, "y":1, "w":1.5},
26 {"x":1.5, "y":1},
27 {"x":2.5, "y":1},
28 {"x":3.5, "y":1},
29 {"x":4.5, "y":1},
30 {"x":5.5, "y":1},
31 {"x":8.5, "y":1},
32 {"x":9.5, "y":1},
33 {"x":10.5, "y":1},
34 {"x":11.5, "y":1},
35 {"x":12.5, "y":1},
36 {"x":13.5, "y":1},
37 {"x":14.5, "y":1},
38 {"x":15.5, "y":1, "w":1.5},
39 {"x":17.3, "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":8.75, "y":2},
48 {"x":9.75, "y":2},
49 {"x":10.75, "y":2},
50 {"x":11.75, "y":2},
51 {"x":12.75, "y":2},
52 {"x":13.75, "y":2},
53 {"x":14.75, "y":2, "w":2.25},
54 {"x":17.3, "y":2},
55
56 {"x":0, "y":3, "w":2.25},
57 {"x":2.25, "y":3},
58 {"x":3.25, "y":3},
59 {"x":4.25, "y":3},
60 {"x":5.25, "y":3},
61 {"x":6.25, "y":3},
62 {"x":9.25, "y":3},
63 {"x":10.25, "y":3},
64 {"x":11.25, "y":3},
65 {"x":12.25, "y":3},
66 {"x":13.25, "y":3},
67 {"x":14.25, "y":3, "w":1.75},
68 {"x":16.3, "y":3.25},
69
70 {"x":0, "y":4, "w":1.5},
71 {"x":3.25, "y":4, "w":1.5},
72 {"x":4.75, "y":4, "w":2},
73 {"x":6.75, "y":4, "w":1.25},
74 {"x":8.75, "y":4, "w":2.75},
75 {"x":11.5, "y":4, "w":1.5},
76 {"x":15.3, "y":4.25},
77 {"x":16.3, "y":4.25},
78 {"x":17.3, "y":4.25}
79 ]
80 }
81 }
82}
diff --git a/keyboards/gurindam/keymaps/default/keymap.c b/keyboards/gurindam/keymaps/default/keymap.c
new file mode 100644
index 000000000..b451bbf05
--- /dev/null
+++ b/keyboards/gurindam/keymaps/default/keymap.c
@@ -0,0 +1,34 @@
1/* Copyright 2019 Fate
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT(
20 KC_GESC, 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_BSLS, KC_GRV, KC_PGUP,
21 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_BSPC, KC_PGDN,
22 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, MO(1),
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
24 KC_LCTL, KC_LALT, KC_SPC, KC_LGUI, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT
25 ),
26
27 [1] = LAYOUT(
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 _______, _______, _______, _______, RESET, RGB_TOG, _______, _______, _______, _______, _______, _______, _______, KC_DEL, _______,
30 _______, RGB_MOD, RGB_RMOD,RGB_HUI, RGB_HUD, _______, _______, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW,RGB_M_SN,_______, _______,
31 _______, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______
33 )
34};
diff --git a/keyboards/gurindam/keymaps/default/readme.md b/keyboards/gurindam/keymaps/default/readme.md
new file mode 100644
index 000000000..52e0c72c5
--- /dev/null
+++ b/keyboards/gurindam/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for gurindam \ No newline at end of file
diff --git a/keyboards/gurindam/keymaps/via/keymap.c b/keyboards/gurindam/keymaps/via/keymap.c
new file mode 100644
index 000000000..3549a1bde
--- /dev/null
+++ b/keyboards/gurindam/keymaps/via/keymap.c
@@ -0,0 +1,49 @@
1/* Copyright 2019 Fate
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT(
20 KC_GESC, 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_BSLS, KC_GRV, KC_PGUP,
21 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_BSPC, KC_PGDN,
22 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, MO(1),
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
24 KC_LCTL, KC_LALT, KC_SPC, KC_LGUI, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT
25 ),
26
27 [1] = LAYOUT(
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 _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, _______,
30 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______
33 ),
34
35 [2] = LAYOUT(
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
40 _______, _______, _______, _______, _______, _______, _______, _______, _______
41 ),
42 [3] = LAYOUT(
43 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______
48 )
49};
diff --git a/keyboards/gurindam/keymaps/via/rules.mk b/keyboards/gurindam/keymaps/via/rules.mk
new file mode 100644
index 000000000..036bd6d1c
--- /dev/null
+++ b/keyboards/gurindam/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/gurindam/readme.md b/keyboards/gurindam/readme.md
new file mode 100644
index 000000000..0f6ae158b
--- /dev/null
+++ b/keyboards/gurindam/readme.md
@@ -0,0 +1,23 @@
1# gurindam
2
3![Gurindam](https://raw.githubusercontent.com/ibnuda/Gurindam/master-of-puppets/imgs/gurindam-finished.jpg)
4
5A keyboard inspired by Arisu which in turn by Lyn's EM7 and TGR Alice.
6
7* Keyboard Maintainer: [Ibnu D. Aji](https://github.com/ibnuda)
8* Hardware Supported: Promicro
9* Hardware Availability: [PCB & Stacked Acrylic Case](https://github.com/ibnuda/gurindam) & private group-buy.
10
11Make example for this keyboard (after setting up your build environment):
12
13 make gurindam:default
14
15See 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).
16
17## Bootloader
18
19Enter the bootloader in 2 ways:
20
21* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead.
22* **Keycode in layout**: Hold the mod key (lowest key on the right island) and then tap `R`.
23
diff --git a/keyboards/gurindam/rules.mk b/keyboards/gurindam/rules.mk
new file mode 100644
index 000000000..afcb13df4
--- /dev/null
+++ b/keyboards/gurindam/rules.mk
@@ -0,0 +1,18 @@
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 = no # Enable Bootmagic Lite
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
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output