aboutsummaryrefslogtreecommitdiff
path: root/keyboards/takashicompany
diff options
context:
space:
mode:
authortakashicompany <t@kashi.company>2021-11-29 17:20:15 +0900
committerGitHub <noreply@github.com>2021-11-29 00:20:15 -0800
commit47764132f1fb30c24585cfbebb800e9c8b433c64 (patch)
tree0afb42a33164d8b0502b213ebec4248d9b77a5e7 /keyboards/takashicompany
parenta7bc02bf69b6973ee031662a0b8a705d8cd83193 (diff)
downloadqmk_firmware-47764132f1fb30c24585cfbebb800e9c8b433c64.tar.gz
qmk_firmware-47764132f1fb30c24585cfbebb800e9c8b433c64.zip
[Keyboard] Add "DogTag" (#15259)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/takashicompany')
-rw-r--r--keyboards/takashicompany/dogtag/config.h152
-rw-r--r--keyboards/takashicompany/dogtag/dogtag.c28
-rw-r--r--keyboards/takashicompany/dogtag/dogtag.h37
-rw-r--r--keyboards/takashicompany/dogtag/info.json83
-rw-r--r--keyboards/takashicompany/dogtag/keymaps/default/keymap.c30
-rw-r--r--keyboards/takashicompany/dogtag/keymaps/via/config.h20
-rw-r--r--keyboards/takashicompany/dogtag/keymaps/via/keymap.c30
-rw-r--r--keyboards/takashicompany/dogtag/keymaps/via/rules.mk1
-rw-r--r--keyboards/takashicompany/dogtag/readme.md37
-rw-r--r--keyboards/takashicompany/dogtag/rules.mk24
10 files changed, 442 insertions, 0 deletions
diff --git a/keyboards/takashicompany/dogtag/config.h b/keyboards/takashicompany/dogtag/config.h
new file mode 100644
index 000000000..542a44ce6
--- /dev/null
+++ b/keyboards/takashicompany/dogtag/config.h
@@ -0,0 +1,152 @@
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 0x0018
25#define DEVICE_VER 0x0001
26#define MANUFACTURER takashicompany
27#define PRODUCT DogTag
28
29/* key matrix size */
30#define MATRIX_ROWS 2 * 2
31#define MATRIX_COLS 5
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 { B2, B6 }
44#define MATRIX_COL_PINS { F4, F5, F6, F7, B1 }
45#define MATRIX_ROW_PINS_RIGHT { B2, B6 }
46#define MATRIX_COL_PINS_RIGHT { B1, F7, F6, F5, F4 }
47
48#define UNUSED_PINS
49
50/* COL2ROW, ROW2COL */
51#define DIODE_DIRECTION COL2ROW
52
53#define ENCODER_RESOLUTION 1
54#define ENCODERS_PAD_A { D4 }
55#define ENCODERS_PAD_B { C6 }
56
57/*
58 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
59 */
60#define SOFT_SERIAL_PIN D2 // or D1, D2, D3, E6
61
62//#define LED_NUM_LOCK_PIN B0
63//#define LED_CAPS_LOCK_PIN B1
64//#define LED_SCROLL_LOCK_PIN B2
65//#define LED_COMPOSE_PIN B3
66//#define LED_KANA_PIN B4
67
68//#define BACKLIGHT_PIN B7
69//#define BACKLIGHT_LEVELS 3
70//#define BACKLIGHT_BREATHING
71
72#define RGB_DI_PIN D3
73#ifdef RGB_DI_PIN
74# define RGBLED_NUM 3 * 2
75# define RGBLED_SPLIT {3, 3}
76# define RGBLIGHT_HUE_STEP 8
77# define RGBLIGHT_SAT_STEP 8
78# define RGBLIGHT_VAL_STEP 8
79# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
80# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
81#define RGBLIGHT_EFFECT_BREATHING
82#define RGBLIGHT_EFFECT_RAINBOW_MOOD
83#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
84#define RGBLIGHT_EFFECT_SNAKE
85#define RGBLIGHT_EFFECT_KNIGHT
86#define RGBLIGHT_EFFECT_CHRISTMAS
87#define RGBLIGHT_EFFECT_STATIC_GRADIENT
88#define RGBLIGHT_EFFECT_RGB_TEST
89#define RGBLIGHT_EFFECT_ALTERNATING
90#define RGBLIGHT_EFFECT_TWINKLE
91#endif
92
93/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
94#define DEBOUNCE 5
95
96/* define if matrix has ghost (lacks anti-ghosting diodes) */
97//#define MATRIX_HAS_GHOST
98
99/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
100#define LOCKING_SUPPORT_ENABLE
101/* Locking resynchronize hack */
102#define LOCKING_RESYNC_ENABLE
103
104/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
105 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
106 */
107//#define GRAVE_ESC_CTRL_OVERRIDE
108
109/*
110 * Force NKRO
111 *
112 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
113 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
114 * makefile for this to work.)
115 *
116 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
117 * until the next keyboard reset.
118 *
119 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
120 * fully operational during normal computer usage.
121 *
122 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
123 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
124 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
125 * power-up.
126 *
127 */
128//#define FORCE_NKRO
129
130/*
131 * Feature disable options
132 * These options are also useful to firmware size reduction.
133 */
134
135/* disable debug print */
136//#define NO_DEBUG
137
138/* disable print */
139//#define NO_PRINT
140
141/* disable action features */
142//#define NO_ACTION_LAYER
143//#define NO_ACTION_TAPPING
144//#define NO_ACTION_ONESHOT
145
146/* disable these deprecated features by default */
147#define NO_ACTION_MACRO
148#define NO_ACTION_FUNCTION
149
150/* Bootmagic Lite key configuration */
151//#define BOOTMAGIC_LITE_ROW 0
152//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/takashicompany/dogtag/dogtag.c b/keyboards/takashicompany/dogtag/dogtag.c
new file mode 100644
index 000000000..459ca9d3f
--- /dev/null
+++ b/keyboards/takashicompany/dogtag/dogtag.c
@@ -0,0 +1,28 @@
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 "dogtag.h"
18
19bool encoder_update_kb(uint8_t index, bool clockwise) {
20 if (!encoder_update_user(index, clockwise)) { return false; }
21 if (clockwise) {
22 tap_code(KC_MS_WH_DOWN);
23 } else {
24 tap_code(KC_MS_WH_UP);
25 }
26
27 return true;
28}
diff --git a/keyboards/takashicompany/dogtag/dogtag.h b/keyboards/takashicompany/dogtag/dogtag.h
new file mode 100644
index 000000000..f2b7f5f60
--- /dev/null
+++ b/keyboards/takashicompany/dogtag/dogtag.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 l01, l02, l03, l04, r01, r02, r03, r04,\
31 l05, l06, l07, l08, l09, r05, r06, r07, r08, r09 \
32) { \
33 { l01, l02, l03, l04, KC_NO }, \
34 { l05, l06, l07, l08, l09 }, \
35 { KC_NO, r01, r02, r03, r04,}, \
36 { r05, r06, r07, r08, r09 } \
37}
diff --git a/keyboards/takashicompany/dogtag/info.json b/keyboards/takashicompany/dogtag/info.json
new file mode 100644
index 000000000..9dad380b7
--- /dev/null
+++ b/keyboards/takashicompany/dogtag/info.json
@@ -0,0 +1,83 @@
1{
2 "keyboard_name": "DogTag",
3 "url": "https://github.com/takashicompany/dogtag",
4 "maintainer": "takashicompany",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {
9 "x": 0,
10 "y": 0
11 },
12 {
13 "x": 1,
14 "y": 0
15 },
16 {
17 "x": 2,
18 "y": 0
19 },
20 {
21 "x": 3,
22 "y": 0
23 },
24 {
25 "x": 7,
26 "y": 0
27 },
28 {
29 "x": 8,
30 "y": 0
31 },
32 {
33 "x": 9,
34 "y": 0
35 },
36 {
37 "x": 10,
38 "y": 0
39 },
40 {
41 "x": 0,
42 "y": 1
43 },
44 {
45 "x": 1,
46 "y": 1
47 },
48 {
49 "x": 2,
50 "y": 1
51 },
52 {
53 "x": 3,
54 "y": 1
55 },
56 {
57 "x": 7,
58 "y": 1
59 },
60 {
61 "x": 8,
62 "y": 1
63 },
64 {
65 "x": 9,
66 "y": 1
67 },
68 {
69 "x": 10,
70 "y": 1
71 },
72 {
73 "x": 4,
74 "y": 2
75 },
76 {
77 "x": 6,
78 "y": 2
79 }
80 ]
81 }
82 }
83} \ No newline at end of file
diff --git a/keyboards/takashicompany/dogtag/keymaps/default/keymap.c b/keyboards/takashicompany/dogtag/keymaps/default/keymap.c
new file mode 100644
index 000000000..790d1b812
--- /dev/null
+++ b/keyboards/takashicompany/dogtag/keymaps/default/keymap.c
@@ -0,0 +1,30 @@
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 LT(1, KC_ESC), KC_Q, KC_W, KC_E, KC_Y, KC_U, KC_I, KC_O,
22 KC_LSFT, KC_A, KC_S, KC_D, KC_SPC, KC_TAB, KC_H, KC_J, KC_K, KC_L
23 ),
24
25 LAYOUT(
26 KC_TRNS, RGB_MOD, RGB_HUI, RGB_SAI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
27 KC_TRNS, RGB_M_P, RGB_M_K, RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
28 )
29
30};
diff --git a/keyboards/takashicompany/dogtag/keymaps/via/config.h b/keyboards/takashicompany/dogtag/keymaps/via/config.h
new file mode 100644
index 000000000..2ae708b32
--- /dev/null
+++ b/keyboards/takashicompany/dogtag/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 16 \ No newline at end of file
diff --git a/keyboards/takashicompany/dogtag/keymaps/via/keymap.c b/keyboards/takashicompany/dogtag/keymaps/via/keymap.c
new file mode 100644
index 000000000..790d1b812
--- /dev/null
+++ b/keyboards/takashicompany/dogtag/keymaps/via/keymap.c
@@ -0,0 +1,30 @@
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 LT(1, KC_ESC), KC_Q, KC_W, KC_E, KC_Y, KC_U, KC_I, KC_O,
22 KC_LSFT, KC_A, KC_S, KC_D, KC_SPC, KC_TAB, KC_H, KC_J, KC_K, KC_L
23 ),
24
25 LAYOUT(
26 KC_TRNS, RGB_MOD, RGB_HUI, RGB_SAI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
27 KC_TRNS, RGB_M_P, RGB_M_K, RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
28 )
29
30};
diff --git a/keyboards/takashicompany/dogtag/keymaps/via/rules.mk b/keyboards/takashicompany/dogtag/keymaps/via/rules.mk
new file mode 100644
index 000000000..036bd6d1c
--- /dev/null
+++ b/keyboards/takashicompany/dogtag/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/takashicompany/dogtag/readme.md b/keyboards/takashicompany/dogtag/readme.md
new file mode 100644
index 000000000..a68ea6f53
--- /dev/null
+++ b/keyboards/takashicompany/dogtag/readme.md
@@ -0,0 +1,37 @@
1# DogTag
2
3![dogtag](https://github.com/takashicompany/dogtag/blob/master/images/qmk.jpg?raw=true)
4
5DogTag is a compact macro pad with 9 keys.
6It is assembled from a PCB no larger than 100mm x 100mm.
7It is reversible and can be used as a split macro pad by connecting two units with a TRRS cable.
8Other features include a rotary encoder and MX sockets for hot-swapping of keyswitches.
9LED underglow is also available.
10
11DogTagは9キーのコンパクトなマクロパッドです。
12100mm x 100mm 以内のPCBから組み立てます。
13リバーシブルに対応しており、2台をTRRSケーブルで接続することで分割型のマクロパッドとしても使用できます。
14その他にもロータリーエンコーダの搭載やMXソケットによるキースイッチの付け替え(ホットスワップ)も可能です。
15LEDによるアンダーグロウも可能です。
16
17* Keyboard Maintainer: [takashicompany](https://github.com/takashicompany)
18* Hardware Supported: PCB, Pro Micro
19* Hardware Availability: https://github.com/takashicompany/dogtag
20
21Make example for this keyboard (after setting up your build environment):
22
23 make takashicompany/dogtag:default
24
25Flashing example for this keyboard:
26
27 make takashicompany/dogtag:default:flash
28
29See 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).
30
31## Bootloader
32
33Enter the bootloader in 3 ways:
34
35* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
36* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
37* **Keycode in layout**: Press the key mapped to `RESET` if it is available
diff --git a/keyboards/takashicompany/dogtag/rules.mk b/keyboards/takashicompany/dogtag/rules.mk
new file mode 100644
index 000000000..6e8fc94f1
--- /dev/null
+++ b/keyboards/takashicompany/dogtag/rules.mk
@@ -0,0 +1,24 @@
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
24SPLIT_KEYBOARD = yes