aboutsummaryrefslogtreecommitdiff
path: root/keyboards/longnald
diff options
context:
space:
mode:
authorSeaton Jiang <seaton@vtrois.com>2020-09-23 02:44:51 +0800
committerGitHub <noreply@github.com>2020-09-22 11:44:51 -0700
commite3395beda02d555090e6ccc9b193530351eb71f4 (patch)
tree4ae0b92fab6da6e3a2d8969629ecdec197365938 /keyboards/longnald
parent7a3a57e457aa28afa62448deca838a2582e86587 (diff)
downloadqmk_firmware-e3395beda02d555090e6ccc9b193530351eb71f4.tar.gz
qmk_firmware-e3395beda02d555090e6ccc9b193530351eb71f4.zip
[Keyboard] Add Longnald Corin Keyboard (#10280)
* [Keyboard] Add Longnald Corin * feat: optimized firmware * feat: optimized firmware * fix: keyboards/longnald/corin/rules.mk * feat: rename layout macros * feat: rename layout macros * feat: rename layout macros * feat: rename layout macros * feat: rename layout macros * feat: rename layout macros * feat: rename layout macros
Diffstat (limited to 'keyboards/longnald')
-rw-r--r--keyboards/longnald/corin/config.h52
-rw-r--r--keyboards/longnald/corin/corin.c19
-rw-r--r--keyboards/longnald/corin/corin.h35
-rw-r--r--keyboards/longnald/corin/info.json77
-rw-r--r--keyboards/longnald/corin/keymaps/default/keymap.c49
-rw-r--r--keyboards/longnald/corin/readme.md15
-rw-r--r--keyboards/longnald/corin/rules.mk22
7 files changed, 269 insertions, 0 deletions
diff --git a/keyboards/longnald/corin/config.h b/keyboards/longnald/corin/config.h
new file mode 100644
index 000000000..12be8ba27
--- /dev/null
+++ b/keyboards/longnald/corin/config.h
@@ -0,0 +1,52 @@
1/*
2 * Copyright (C) 2020 Longnald <support@longnald.com>
3 * Copyright (C) 2020 Seaton Jiang <seaton@vtrois.com>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
21#include "config_common.h"
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0x5633
25#define PRODUCT_ID 0x1024
26#define DEVICE_VER 0x0004
27#define MANUFACTURER Longnald
28#define PRODUCT Corin
29
30/* key matrix size */
31#define MATRIX_ROWS 5
32#define MATRIX_COLS 15
33
34/* Keyboard Matrix Assignments */
35#define MATRIX_ROW_PINS { F4, F0, B2, B3, D5 }
36#define MATRIX_COL_PINS { F7, F6, F1, F5, B1, E6, D4, B7, D1, D2, D0, B4, B6, C6, C7 }
37
38#define DIODE_DIRECTION COL2ROW
39
40#define RGB_DI_PIN D3
41#ifdef RGB_DI_PIN
42# define RGBLED_NUM 64
43# define RGBLIGHT_HUE_STEP 20
44# define RGBLIGHT_SAT_STEP 20
45# define RGBLIGHT_VAL_STEP 40
46# define RGBLIGHT_LIMIT_VAL 200
47# define RGBLIGHT_SLEEP
48# define RGBLIGHT_EFFECT_BREATHING
49# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
50# define RGBLIGHT_EFFECT_SNAKE
51# define RGBLIGHT_EFFECT_STATIC_GRADIENT
52#endif
diff --git a/keyboards/longnald/corin/corin.c b/keyboards/longnald/corin/corin.c
new file mode 100644
index 000000000..fabe3686d
--- /dev/null
+++ b/keyboards/longnald/corin/corin.c
@@ -0,0 +1,19 @@
1/*
2 * Copyright (C) 2020 Longnald <support@longnald.com>
3 * Copyright (C) 2020 Seaton Jiang <seaton@vtrois.com>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18
19#include "corin.h" \ No newline at end of file
diff --git a/keyboards/longnald/corin/corin.h b/keyboards/longnald/corin/corin.h
new file mode 100644
index 000000000..fa727c3c7
--- /dev/null
+++ b/keyboards/longnald/corin/corin.h
@@ -0,0 +1,35 @@
1/*
2 * Copyright (C) 2020 Longnald <support@longnald.com>
3 * Copyright (C) 2020 Seaton Jiang <seaton@vtrois.com>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18#pragma once
19
20#include "quantum.h"
21
22#define LAYOUT_64_ansi( \
23 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0E, \
24 K10, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \
25 K20, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, \
26 K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \
27 K40, K41, K43, K46, K4A, K4B, K4C, K4D, K4E \
28) \
29{ \
30 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, KC_NO, K0E }, \
31 { K10, KC_NO, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \
32 { K20, KC_NO, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, KC_NO }, \
33 { KC_NO, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
34 { K40, K41, KC_NO, K43, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D, K4E } \
35}
diff --git a/keyboards/longnald/corin/info.json b/keyboards/longnald/corin/info.json
new file mode 100644
index 000000000..e0faf2209
--- /dev/null
+++ b/keyboards/longnald/corin/info.json
@@ -0,0 +1,77 @@
1{
2 "keyboard_name": "Corin",
3 "url": "https://github.com/longnald/corin",
4 "maintainer": "Seaton Jiang <seaton@vtrois.com>",
5 "width": 15,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_64_ansi": {
9 "layout": [
10 { "label": "K00 (F4,F7)", "x": 0, "y": 0 },
11 { "label": "K01 (F4,F6)", "x": 1, "y": 0 },
12 { "label": "K02 (F4,F1)", "x": 2, "y": 0 },
13 { "label": "K03 (F4,F5)", "x": 3, "y": 0 },
14 { "label": "K04 (F4,B1)", "x": 4, "y": 0 },
15 { "label": "K05 (F4,E6)", "x": 5, "y": 0 },
16 { "label": "K06 (F4,D6)", "x": 6, "y": 0 },
17 { "label": "K07 (F4,B7)", "x": 7, "y": 0 },
18 { "label": "K08 (F4,D1)", "x": 8, "y": 0 },
19 { "label": "K09 (F4,D2)", "x": 9, "y": 0 },
20 { "label": "K0A (F4,D0)", "x": 10, "y": 0 },
21 { "label": "K0B (F4,B4)", "x": 11, "y": 0 },
22 { "label": "K0C (F4,B6)", "x": 12, "y": 0 },
23 { "label": "K0E (F4,C7)", "x": 13, "y": 0, "w": 2 },
24 { "label": "K10 (F0,F7)", "x": 0, "y": 1, "w": 1.5 },
25 { "label": "K12 (F0,F1)", "x": 1.5, "y": 1 },
26 { "label": "K13 (F0,F5)", "x": 2.5, "y": 1 },
27 { "label": "K14 (F0,B1)", "x": 3.5, "y": 1 },
28 { "label": "K15 (F0,E6)", "x": 4.5, "y": 1 },
29 { "label": "K16 (F0,D6)", "x": 5.5, "y": 1 },
30 { "label": "K17 (F0,B7)", "x": 6.5, "y": 1 },
31 { "label": "K18 (F0,D1)", "x": 7.5, "y": 1 },
32 { "label": "K19 (F0,D2)", "x": 8.5, "y": 1 },
33 { "label": "K1A (F0,D0)", "x": 9.5, "y": 1 },
34 { "label": "K1B (F0,B4)", "x": 10.5, "y": 1 },
35 { "label": "K1C (F0,B6)", "x": 11.5, "y": 1 },
36 { "label": "K1D (F0,C6)", "x": 12.5, "y": 1 },
37 { "label": "K1E (F0,C7)", "x": 13.5, "y": 1, "w": 1.5 },
38 { "label": "K20 (B2,F7)", "x": 0, "y": 2, "w": 1.75 },
39 { "label": "K22 (B2,F1)", "x": 1.75, "y": 2 },
40 { "label": "K23 (B2,F5)", "x": 2.75, "y": 2 },
41 { "label": "K24 (B2,B1)", "x": 3.75, "y": 2 },
42 { "label": "K25 (B2,E6)", "x": 4.75, "y": 2 },
43 { "label": "K26 (B2,D6)", "x": 5.75, "y": 2 },
44 { "label": "K27 (B2,B7)", "x": 6.75, "y": 2 },
45 { "label": "K28 (B2,D1)", "x": 7.75, "y": 2 },
46 { "label": "K29 (B2,D2)", "x": 8.75, "y": 2 },
47 { "label": "K2A (B2,D0)", "x": 9.75, "y": 2 },
48 { "label": "K2B (B2,B4)", "x": 10.75, "y": 2 },
49 { "label": "K2C (B2,B6)", "x": 11.75, "y": 2 },
50 { "label": "K2D (B2,C6)", "x": 12.75, "y": 2, "w": 2.25 },
51 { "label": "K31 (B3,F6)", "x": 0, "y": 3, "w": 2 },
52 { "label": "K32 (B3,F1)", "x": 2, "y": 3 },
53 { "label": "K33 (B3,F5)", "x": 3, "y": 3 },
54 { "label": "K34 (B3,B1)", "x": 4, "y": 3 },
55 { "label": "K35 (B3,E6)", "x": 5, "y": 3 },
56 { "label": "K36 (B3,D6)", "x": 6, "y": 3 },
57 { "label": "K37 (B3,B7)", "x": 7, "y": 3 },
58 { "label": "K38 (B3,D1)", "x": 8, "y": 3 },
59 { "label": "K39 (B3,D2)", "x": 9, "y": 3 },
60 { "label": "K3A (B3,D0)", "x": 10, "y": 3 },
61 { "label": "K3B (B3,B4)", "x": 11, "y": 3 },
62 { "label": "K3C (B3,B6)", "x": 12, "y": 3 },
63 { "label": "K3D (B3,C6)", "x": 13, "y": 3 },
64 { "label": "K3E (B3,C7)", "x": 14, "y": 3 },
65 { "label": "K40 (D5,F7)", "x": 0, "y": 4, "w": 1.25 },
66 { "label": "K41 (D5,F6)", "x": 1.25, "y": 4, "w": 1.25 },
67 { "label": "K43 (D5,F5)", "x": 2.5, "y": 4, "w": 1.25 },
68 { "label": "K46 (D5,D6)", "x": 3.75, "y": 4, "w": 6.25 },
69 { "label": "K4A (D5,D0)", "x": 10, "y": 4 },
70 { "label": "K4B (D5,B4)", "x": 11, "y": 4 },
71 { "label": "K4C (D5,B6)", "x": 12, "y": 4 },
72 { "label": "K4D (D5,C6)", "x": 13, "y": 4 },
73 { "label": "K4E (D5,C7)", "x": 14, "y": 4 }
74 ]
75 }
76 }
77}
diff --git a/keyboards/longnald/corin/keymaps/default/keymap.c b/keyboards/longnald/corin/keymaps/default/keymap.c
new file mode 100644
index 000000000..c8906efc5
--- /dev/null
+++ b/keyboards/longnald/corin/keymaps/default/keymap.c
@@ -0,0 +1,49 @@
1/*
2 * Copyright (C) 2020 Longnald <support@longnald.com>
3 * Copyright (C) 2020 Seaton Jiang <seaton@vtrois.com>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18#include QMK_KEYBOARD_H
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21 [0] = LAYOUT_64_ansi(
22 KC_ESC, 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_BSPC,
23 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_BSLS,
24 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,
25 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_HOME, KC_UP, KC_END,
26 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(2), MO(1), KC_LEFT, KC_DOWN, KC_RGHT
27 ),
28 [1] = LAYOUT_64_ansi(
29 KC_GRV, 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,
30 KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_INS, KC_NO, KC_PSCR, KC_SLCK, KC_PAUS, KC_NO,
31 KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
32 KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_PGUP, KC_NO, KC_PGDN,
33 KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
34 ),
35 [2] = LAYOUT_64_ansi(
36 KC_NO, RGB_TOG, RGB_M_P, RGB_M_B, RGB_M_G, RGB_M_SW, RGB_M_SN, KC_NO, KC_NO, RGB_HUD, RGB_HUI, RGB_VAD, RGB_VAI, KC_NO,
37 KC_NO, KC_NO, LAG_NRM, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
38 KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
39 KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, LAG_SWP, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
40 MO(3), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
41 ),
42 [3] = LAYOUT_64_ansi(
43 KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
44 KC_NO, KC_NO, KC_NO, KC_NO, RESET, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
45 KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
46 KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
47 KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
48 ),
49};
diff --git a/keyboards/longnald/corin/readme.md b/keyboards/longnald/corin/readme.md
new file mode 100644
index 000000000..116baa7d2
--- /dev/null
+++ b/keyboards/longnald/corin/readme.md
@@ -0,0 +1,15 @@
1# Corin
2
3![Corin view](https://github.com/longnald/corin/raw/master/view/view-1.jpg)
4
5Corin is a 64-key keyboard that adds 4 more arrow keys than a regular 60% keyboard made and sold by Seaton Jiang.
6
7- Keyboard Maintainer: [Longnald](https://github.com/longnald) & [Seaton Jiang](https://github.com/seatonjiang)
8- Hardware Supported: [Corin PCB (uses 32U4)](https://github.com/longnald/corin)
9- Hardware Availability: [wwww.longnald.com](https://wwww.longnald.com/)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make longnald/corin:default
14
15See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information.
diff --git a/keyboards/longnald/corin/rules.mk b/keyboards/longnald/corin/rules.mk
new file mode 100644
index 000000000..965087c1a
--- /dev/null
+++ b/keyboards/longnald/corin/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = no # 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 = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output