aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortakashicompany <t@kashi.company>2021-10-31 17:17:38 +0900
committerGitHub <noreply@github.com>2021-10-31 01:17:38 -0700
commit53d614955db8b1cc57aeac9b036ca2816c54d486 (patch)
treee9259169527dcb5cb6cd9069dee0d05247cde52d
parentba69c47bb896a7354d1c6f58b4e43626fb329b72 (diff)
downloadqmk_firmware-53d614955db8b1cc57aeac9b036ca2816c54d486.tar.gz
qmk_firmware-53d614955db8b1cc57aeac9b036ca2816c54d486.zip
[Keyboard] Add new keyboard "QooLee" (#14977)
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/takashicompany/qoolee/config.h153
-rw-r--r--keyboards/takashicompany/qoolee/info.json156
-rw-r--r--keyboards/takashicompany/qoolee/keymaps/default/keymap.c79
-rw-r--r--keyboards/takashicompany/qoolee/keymaps/via/config.h20
-rw-r--r--keyboards/takashicompany/qoolee/keymaps/via/keymap.c79
-rw-r--r--keyboards/takashicompany/qoolee/keymaps/via/rules.mk1
-rw-r--r--keyboards/takashicompany/qoolee/qoolee.c17
-rw-r--r--keyboards/takashicompany/qoolee/qoolee.h37
-rw-r--r--keyboards/takashicompany/qoolee/readme.md30
-rw-r--r--keyboards/takashicompany/qoolee/rules.mk23
10 files changed, 595 insertions, 0 deletions
diff --git a/keyboards/takashicompany/qoolee/config.h b/keyboards/takashicompany/qoolee/config.h
new file mode 100644
index 000000000..99c8ce014
--- /dev/null
+++ b/keyboards/takashicompany/qoolee/config.h
@@ -0,0 +1,153 @@
1/*
2Copyright 2021 takashicompany
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 0x7463 // tc = takashicompany
24#define PRODUCT_ID 0x0013
25#define DEVICE_VER 0x0001
26#define MANUFACTURER takashicompany
27#define PRODUCT QooLee
28
29/* key matrix size */
30#define MATRIX_ROWS 3
31#define MATRIX_COLS 12
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 { E6, B4, B5 }
44#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, D0, D4, C6, D7}
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50#define ENCODER_RESOLUTION 1
51#define ENCODERS_PAD_A { D2 }
52#define ENCODERS_PAD_B { D1 }
53
54/*
55 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
56 */
57#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
58
59//#define LED_NUM_LOCK_PIN B0
60//#define LED_CAPS_LOCK_PIN B1
61//#define LED_SCROLL_LOCK_PIN B2
62//#define LED_COMPOSE_PIN B3
63//#define LED_KANA_PIN B4
64
65//#define BACKLIGHT_PIN B7
66//#define BACKLIGHT_LEVELS 3
67//#define BACKLIGHT_BREATHING
68
69#define RGB_DI_PIN D3
70#ifdef RGB_DI_PIN
71# define RGBLED_NUM 16
72# define RGBLIGHT_HUE_STEP 8
73# define RGBLIGHT_SAT_STEP 8
74# define RGBLIGHT_VAL_STEP 8
75# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
76# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
77# define RGBLIGHT_EFFECT_BREATHING
78# define RGBLIGHT_EFFECT_RAINBOW_MOOD
79# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
80# define RGBLIGHT_EFFECT_SNAKE
81# define RGBLIGHT_EFFECT_KNIGHT
82# define RGBLIGHT_EFFECT_CHRISTMAS
83# define RGBLIGHT_EFFECT_STATIC_GRADIENT
84# define RGBLIGHT_EFFECT_RGB_TEST
85# define RGBLIGHT_EFFECT_ALTERNATING
86/*== customize breathing effect ==*/
87/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
88//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
89/*==== use exp() and sin() ====*/
90//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
91//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
92#endif
93
94/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
95#define DEBOUNCE 5
96
97/* define if matrix has ghost (lacks anti-ghosting diodes) */
98//#define MATRIX_HAS_GHOST
99
100/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
101#define LOCKING_SUPPORT_ENABLE
102/* Locking resynchronize hack */
103#define LOCKING_RESYNC_ENABLE
104
105/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
106 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
107 */
108//#define GRAVE_ESC_CTRL_OVERRIDE
109
110/*
111 * Force NKRO
112 *
113 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
114 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
115 * makefile for this to work.)
116 *
117 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
118 * until the next keyboard reset.
119 *
120 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
121 * fully operational during normal computer usage.
122 *
123 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
124 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
125 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
126 * power-up.
127 *
128 */
129//#define FORCE_NKRO
130
131/*
132 * Feature disable options
133 * These options are also useful to firmware size reduction.
134 */
135
136/* disable debug print */
137//#define NO_DEBUG
138
139/* disable print */
140//#define NO_PRINT
141
142/* disable action features */
143//#define NO_ACTION_LAYER
144//#define NO_ACTION_TAPPING
145//#define NO_ACTION_ONESHOT
146
147/* disable these deprecated features by default */
148#define NO_ACTION_MACRO
149#define NO_ACTION_FUNCTION
150
151/* Bootmagic Lite key configuration */
152//#define BOOTMAGIC_LITE_ROW 0
153//#define BOOTMAGIC_LITE_COLUMN 0 \ No newline at end of file
diff --git a/keyboards/takashicompany/qoolee/info.json b/keyboards/takashicompany/qoolee/info.json
new file mode 100644
index 000000000..b2245a91c
--- /dev/null
+++ b/keyboards/takashicompany/qoolee/info.json
@@ -0,0 +1,156 @@
1{
2 "keyboard_name": "QooLee",
3 "url": "https://github.com/takashicompany/qoolee",
4 "maintainer": "takachicompany",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {
9 "x": 0,
10 "y": 0,
11 "w": 1.5
12 },
13 {
14 "x": 1.5,
15 "y": 0
16 },
17 {
18 "x": 2.5,
19 "y": 0
20 },
21 {
22 "x": 3.5,
23 "y": 0
24 },
25 {
26 "x": 4.5,
27 "y": 0
28 },
29 {
30 "x": 5.5,
31 "y": 0
32 },
33 {
34 "x": 6.5,
35 "y": 0
36 },
37 {
38 "x": 7.5,
39 "y": 0
40 },
41 {
42 "x": 8.5,
43 "y": 0
44 },
45 {
46 "x": 9.5,
47 "y": 0
48 },
49 {
50 "x": 10.5,
51 "y": 0
52 },
53 {
54 "x": 11.75,
55 "y": 0,
56 "w": 1.25,
57 "h": 2
58 },
59 {
60 "x": 0,
61 "y": 1,
62 "w": 1.75
63 },
64 {
65 "x": 1.75,
66 "y": 1
67 },
68 {
69 "x": 2.75,
70 "y": 1
71 },
72 {
73 "x": 3.75,
74 "y": 1
75 },
76 {
77 "x": 4.75,
78 "y": 1
79 },
80 {
81 "x": 5.75,
82 "y": 1
83 },
84 {
85 "x": 6.75,
86 "y": 1
87 },
88 {
89 "x": 7.75,
90 "y": 1
91 },
92 {
93 "x": 8.75,
94 "y": 1
95 },
96 {
97 "x": 9.75,
98 "y": 1
99 },
100 {
101 "x": 10.75,
102 "y": 1
103 },
104 {
105 "x": 0,
106 "y": 2,
107 "w": 2
108 },
109 {
110 "x": 2,
111 "y": 2
112 },
113 {
114 "x": 3,
115 "y": 2
116 },
117 {
118 "x": 4,
119 "y": 2
120 },
121 {
122 "x": 5,
123 "y": 2
124 },
125 {
126 "x": 6,
127 "y": 2
128 },
129 {
130 "x": 7,
131 "y": 2
132 },
133 {
134 "x": 8,
135 "y": 2
136 },
137 {
138 "x": 9,
139 "y": 2
140 },
141 {
142 "x": 10,
143 "y": 2
144 },
145 {
146 "x": 11,
147 "y": 2
148 },
149 {
150 "x": 12,
151 "y": 2
152 }
153 ]
154 }
155 }
156} \ No newline at end of file
diff --git a/keyboards/takashicompany/qoolee/keymaps/default/keymap.c b/keyboards/takashicompany/qoolee/keymaps/default/keymap.c
new file mode 100644
index 000000000..64d6ff7ae
--- /dev/null
+++ b/keyboards/takashicompany/qoolee/keymaps/default/keymap.c
@@ -0,0 +1,79 @@
1/* Copyright 2021 takashicompany
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
20 LAYOUT(
21 KC_TAB, LT(2, KC_Q), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, GUI_T(KC_O), ALT_T(KC_P),
22 KC_LCTL, KC_A, KC_S, LT(2, KC_D), KC_F, KC_G, KC_H, KC_J, LT(2, KC_K), KC_L, KC_SCLN, KC_ENT,
23 KC_LSFT, KC_Z, GUI_T(KC_X), ALT_T(KC_C), LT(1, KC_V), KC_B, KC_N, LT(1, KC_M), KC_COMM, CTL_T(KC_DOT), KC_SLSH, KC_BSPC
24 ),
25
26 LAYOUT(
27 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
28 KC_TRNS, KC_EQL, KC_LBRC, KC_SLSH, KC_MINS, KC_RO, KC_SCLN, KC_QUOT, KC_RBRC, KC_NUHS, KC_JYEN, KC_TRNS,
29 KC_TRNS, KC_LSFT, KC_LGUI, KC_LALT, KC_LANG2, KC_LSFT, KC_SPC, KC_LANG1, KC_TRNS, KC_TRNS, KC_DEL, KC_TRNS
30 ),
31
32 LAYOUT(
33 KC_TRNS, KC_ESC, KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO,
34 KC_TRNS, KC_LCTL, LALT(KC_C), KC_QUES, KC_EXLM, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_TRNS,
35 KC_TRNS, KC_LSFT, KC_LGUI, KC_LALT, KC_LANG2, KC_TRNS, KC_TRNS, KC_LANG1, KC_NO, MO(3), KC_DEL, KC_TRNS
36 ),
37
38 LAYOUT(
39 KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5,
40 KC_TRNS, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_TRNS,
41 KC_TRNS, RGB_M_K, RGB_M_X, RGB_M_G, RGB_M_T, RGB_M_T, KC_F11, KC_F12, KC_CAPS, KC_NO, KC_NO, KC_TRNS
42 ),
43
44 LAYOUT(
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
47 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
48 ),
49
50 LAYOUT(
51 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
52 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
53 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
54 ),
55
56 LAYOUT(
57 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
58 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
59 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
60 ),
61
62 LAYOUT(
63 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
64 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
65 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
66 )
67};
68
69bool encoder_update_user(uint8_t index, bool clockwise) {
70
71 if (clockwise) {
72 tap_code(KC_MS_WH_UP);
73 } else {
74 tap_code(KC_MS_WH_DOWN);
75 }
76
77 return true;
78}
79
diff --git a/keyboards/takashicompany/qoolee/keymaps/via/config.h b/keyboards/takashicompany/qoolee/keymaps/via/config.h
new file mode 100644
index 000000000..ed834d1ae
--- /dev/null
+++ b/keyboards/takashicompany/qoolee/keymaps/via/config.h
@@ -0,0 +1,20 @@
1/*
2Copyright 2021 takashicompany
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#define DYNAMIC_KEYMAP_LAYER_COUNT 8 \ No newline at end of file
diff --git a/keyboards/takashicompany/qoolee/keymaps/via/keymap.c b/keyboards/takashicompany/qoolee/keymaps/via/keymap.c
new file mode 100644
index 000000000..64d6ff7ae
--- /dev/null
+++ b/keyboards/takashicompany/qoolee/keymaps/via/keymap.c
@@ -0,0 +1,79 @@
1/* Copyright 2021 takashicompany
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
20 LAYOUT(
21 KC_TAB, LT(2, KC_Q), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, GUI_T(KC_O), ALT_T(KC_P),
22 KC_LCTL, KC_A, KC_S, LT(2, KC_D), KC_F, KC_G, KC_H, KC_J, LT(2, KC_K), KC_L, KC_SCLN, KC_ENT,
23 KC_LSFT, KC_Z, GUI_T(KC_X), ALT_T(KC_C), LT(1, KC_V), KC_B, KC_N, LT(1, KC_M), KC_COMM, CTL_T(KC_DOT), KC_SLSH, KC_BSPC
24 ),
25
26 LAYOUT(
27 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
28 KC_TRNS, KC_EQL, KC_LBRC, KC_SLSH, KC_MINS, KC_RO, KC_SCLN, KC_QUOT, KC_RBRC, KC_NUHS, KC_JYEN, KC_TRNS,
29 KC_TRNS, KC_LSFT, KC_LGUI, KC_LALT, KC_LANG2, KC_LSFT, KC_SPC, KC_LANG1, KC_TRNS, KC_TRNS, KC_DEL, KC_TRNS
30 ),
31
32 LAYOUT(
33 KC_TRNS, KC_ESC, KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO,
34 KC_TRNS, KC_LCTL, LALT(KC_C), KC_QUES, KC_EXLM, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_TRNS,
35 KC_TRNS, KC_LSFT, KC_LGUI, KC_LALT, KC_LANG2, KC_TRNS, KC_TRNS, KC_LANG1, KC_NO, MO(3), KC_DEL, KC_TRNS
36 ),
37
38 LAYOUT(
39 KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5,
40 KC_TRNS, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_TRNS,
41 KC_TRNS, RGB_M_K, RGB_M_X, RGB_M_G, RGB_M_T, RGB_M_T, KC_F11, KC_F12, KC_CAPS, KC_NO, KC_NO, KC_TRNS
42 ),
43
44 LAYOUT(
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
47 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
48 ),
49
50 LAYOUT(
51 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
52 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
53 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
54 ),
55
56 LAYOUT(
57 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
58 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
59 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
60 ),
61
62 LAYOUT(
63 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
64 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
65 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
66 )
67};
68
69bool encoder_update_user(uint8_t index, bool clockwise) {
70
71 if (clockwise) {
72 tap_code(KC_MS_WH_UP);
73 } else {
74 tap_code(KC_MS_WH_DOWN);
75 }
76
77 return true;
78}
79
diff --git a/keyboards/takashicompany/qoolee/keymaps/via/rules.mk b/keyboards/takashicompany/qoolee/keymaps/via/rules.mk
new file mode 100644
index 000000000..036bd6d1c
--- /dev/null
+++ b/keyboards/takashicompany/qoolee/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/takashicompany/qoolee/qoolee.c b/keyboards/takashicompany/qoolee/qoolee.c
new file mode 100644
index 000000000..5a86c3c5b
--- /dev/null
+++ b/keyboards/takashicompany/qoolee/qoolee.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 takashicompany
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
17#include "qoolee.h"
diff --git a/keyboards/takashicompany/qoolee/qoolee.h b/keyboards/takashicompany/qoolee/qoolee.h
new file mode 100644
index 000000000..986e7e3ec
--- /dev/null
+++ b/keyboards/takashicompany/qoolee/qoolee.h
@@ -0,0 +1,37 @@
1/* Copyright 2021 takashicompany
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
17#pragma once
18
19#include "quantum.h"
20
21/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT( \
30 k00, k01, k02, k03, k04, k05, k07, k08, k09, k0a, k0b, \
31 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
32 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b \
33) { \
34 { k00, k01, k02, k03, k04, k05, k07, k08, k09, k0a, k0b, KC_NO }, \
35 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \
36 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b } \
37}
diff --git a/keyboards/takashicompany/qoolee/readme.md b/keyboards/takashicompany/qoolee/readme.md
new file mode 100644
index 000000000..35ee431c1
--- /dev/null
+++ b/keyboards/takashicompany/qoolee/readme.md
@@ -0,0 +1,30 @@
1# qoolee
2
3![qoolee](https://github.com/takashicompany/qoolee/raw/master/images/qmk.jpg?raw=true)
4
5QooLee is a keyboard with a 30% layout with ISO Enter.
6It can also be equipped with a rotary encoder.
7It supports hot-swapping of keyswitches with MX sockets and mounting of LEDs.
8VIA (Remap) firmware is also available.
9
10* Keyboard Maintainer: [takashicompany](https://github.com/takashicompany)
11* Hardware Supported: PCB, Pro Micro
12* Hardware Availability: https://github.com/takashicompany/qoolee
13
14Make example for this keyboard (after setting up your build environment):
15
16 make takashicomoany/qoolee:default
17
18Flashing example for this keyboard:
19
20 make takashicompany/qoolee:default:flash
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).
23
24## Bootloader
25
26Enter the bootloader in 3 ways:
27
28* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
29* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
30* **Keycode in layout**: Press the key mapped to `RESET` if it is available
diff --git a/keyboards/takashicompany/qoolee/rules.mk b/keyboards/takashicompany/qoolee/rules.mk
new file mode 100644
index 000000000..314fa9811
--- /dev/null
+++ b/keyboards/takashicompany/qoolee/rules.mk
@@ -0,0 +1,23 @@
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 = yes # 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
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 = yes # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output
22
23ENCODER_ENABLE = yes \ No newline at end of file