diff options
author | sotoba <sotoba.s+git@gmail.com> | 2020-07-25 05:24:58 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 13:24:58 -0700 |
commit | 7fe491bb54884fdc52160cb7b64f96083ee44d85 (patch) | |
tree | f27dbc134dba1ea56cc2dbfa925128c9567b8edc | |
parent | 7675e80f5c3e161021388832a4202652c423de5d (diff) | |
download | qmk_firmware-7fe491bb54884fdc52160cb7b64f96083ee44d85.tar.gz qmk_firmware-7fe491bb54884fdc52160cb7b64f96083ee44d85.zip |
[Keyboard] Add "craftWalk" keyboard (#9689)
* Add craftWalk keyboard
* remove config.h
* Update keyboards/craftwalk/config.h
* Update keyboards/craftwalk/rules.mk
* Update keyboards/craftwalk/rules.mk
* Update keyboards/craftwalk/info.json
* Update keyboards/craftwalk/rules.mk
* Update keyboards/craftwalk/config.h
* fix bootloader
* Update keyboards/craftwalk/rules.mk
* Update keyboards/craftwalk/info.json
* Update keyboards/craftwalk/config.h
* Update keyboards/craftwalk/config.h
* Update keyboards/craftwalk/rules.mk
* Update keyboards/craftwalk/rules.mk
-rw-r--r-- | keyboards/craftwalk/config.h | 198 | ||||
-rw-r--r-- | keyboards/craftwalk/craftwalk.c | 17 | ||||
-rw-r--r-- | keyboards/craftwalk/craftwalk.h | 38 | ||||
-rw-r--r-- | keyboards/craftwalk/info.json | 27 | ||||
-rw-r--r-- | keyboards/craftwalk/keymaps/default/keymap.c | 47 | ||||
-rw-r--r-- | keyboards/craftwalk/keymaps/default/readme.md | 1 | ||||
-rw-r--r-- | keyboards/craftwalk/readme.md | 15 | ||||
-rw-r--r-- | keyboards/craftwalk/rules.mk | 22 |
8 files changed, 365 insertions, 0 deletions
diff --git a/keyboards/craftwalk/config.h b/keyboards/craftwalk/config.h new file mode 100644 index 000000000..d7f9f8a30 --- /dev/null +++ b/keyboards/craftwalk/config.h | |||
@@ -0,0 +1,198 @@ | |||
1 | /* | ||
2 | Copyright 2020 sotoba | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along 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 0xFEED | ||
24 | #define PRODUCT_ID 0x2E8F | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER sotoba | ||
27 | #define PRODUCT craftwalk | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 3 | ||
31 | #define MATRIX_COLS 7 | ||
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 { F6, B3, B5 } | ||
44 | #define MATRIX_COL_PINS { B1, F7, F5, F4, B2, E6, B4 } | ||
45 | #define UNUSED_PINS | ||
46 | |||
47 | /* COL2ROW, ROW2COL*/ | ||
48 | #define DIODE_DIRECTION COL2ROW | ||
49 | |||
50 | /* | ||
51 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
52 | */ | ||
53 | #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
54 | |||
55 | // #define BACKLIGHT_PIN B7 | ||
56 | // #define BACKLIGHT_BREATHING | ||
57 | // #define BACKLIGHT_LEVELS 3 | ||
58 | |||
59 | #define RGB_DI_PIN D3 | ||
60 | #ifdef RGB_DI_PIN | ||
61 | #define RGBLED_NUM 19 | ||
62 | #define RGBLIGHT_HUE_STEP 8 | ||
63 | #define RGBLIGHT_SAT_STEP 8 | ||
64 | #define RGBLIGHT_VAL_STEP 8 | ||
65 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
66 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
67 | // /*== all animations enable ==*/ | ||
68 | // #define RGBLIGHT_ANIMATIONS | ||
69 | // /*== or choose animations ==*/ | ||
70 | #define RGBLIGHT_EFFECT_BREATHING | ||
71 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
72 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
73 | #define RGBLIGHT_EFFECT_SNAKE | ||
74 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
75 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
76 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
77 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
78 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
79 | // /*== customize breathing effect ==*/ | ||
80 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
81 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
82 | // /*==== use exp() and sin() ====*/ | ||
83 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
84 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
85 | #endif | ||
86 | |||
87 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
88 | #define DEBOUNCE 5 | ||
89 | |||
90 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
91 | //#define MATRIX_HAS_GHOST | ||
92 | |||
93 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
94 | #define LOCKING_SUPPORT_ENABLE | ||
95 | /* Locking resynchronize hack */ | ||
96 | #define LOCKING_RESYNC_ENABLE | ||
97 | |||
98 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
99 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
100 | */ | ||
101 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
102 | |||
103 | /* | ||
104 | * Force NKRO | ||
105 | * | ||
106 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
107 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
108 | * makefile for this to work.) | ||
109 | * | ||
110 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
111 | * until the next keyboard reset. | ||
112 | * | ||
113 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
114 | * fully operational during normal computer usage. | ||
115 | * | ||
116 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
117 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
118 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
119 | * power-up. | ||
120 | * | ||
121 | */ | ||
122 | //#define FORCE_NKRO | ||
123 | |||
124 | /* | ||
125 | * Magic Key Options | ||
126 | * | ||
127 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
128 | * the keyboard. They are best used in combination with the HID Listen program, | ||
129 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
130 | * | ||
131 | * The options below allow the magic key functionality to be changed. This is | ||
132 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
133 | * | ||
134 | */ | ||
135 | |||
136 | /* key combination for magic key command */ | ||
137 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
138 | // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) | ||
139 | |||
140 | /* control how magic key switches layers */ | ||
141 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
142 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
143 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
144 | |||
145 | /* override magic key keymap */ | ||
146 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
147 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
148 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
149 | //#define MAGIC_KEY_HELP H | ||
150 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
151 | //#define MAGIC_KEY_DEBUG D | ||
152 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
153 | //#define MAGIC_KEY_DEBUG_KBD K | ||
154 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
155 | //#define MAGIC_KEY_VERSION V | ||
156 | //#define MAGIC_KEY_STATUS S | ||
157 | //#define MAGIC_KEY_CONSOLE C | ||
158 | //#define MAGIC_KEY_LAYER0 0 | ||
159 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
160 | //#define MAGIC_KEY_LAYER1 1 | ||
161 | //#define MAGIC_KEY_LAYER2 2 | ||
162 | //#define MAGIC_KEY_LAYER3 3 | ||
163 | //#define MAGIC_KEY_LAYER4 4 | ||
164 | //#define MAGIC_KEY_LAYER5 5 | ||
165 | //#define MAGIC_KEY_LAYER6 6 | ||
166 | //#define MAGIC_KEY_LAYER7 7 | ||
167 | //#define MAGIC_KEY_LAYER8 8 | ||
168 | //#define MAGIC_KEY_LAYER9 9 | ||
169 | //#define MAGIC_KEY_BOOTLOADER B | ||
170 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
171 | //#define MAGIC_KEY_LOCK CAPS | ||
172 | //#define MAGIC_KEY_EEPROM E | ||
173 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
174 | //#define MAGIC_KEY_NKRO N | ||
175 | //#define MAGIC_KEY_SLEEP_LED Z | ||
176 | |||
177 | /* | ||
178 | * Feature disable options | ||
179 | * These options are also useful to firmware size reduction. | ||
180 | */ | ||
181 | |||
182 | /* disable debug print */ | ||
183 | //#define NO_DEBUG | ||
184 | |||
185 | /* disable print */ | ||
186 | //#define NO_PRINT | ||
187 | |||
188 | /* disable action features */ | ||
189 | //#define NO_ACTION_LAYER | ||
190 | //#define NO_ACTION_TAPPING | ||
191 | //#define NO_ACTION_ONESHOT | ||
192 | |||
193 | /* disable these deprecated features by default */ | ||
194 | #define NO_ACTION_MACRO | ||
195 | #define NO_ACTION_FUNCTION | ||
196 | /* Bootmagic Lite key configuration */ | ||
197 | // #define BOOTMAGIC_LITE_ROW 0 | ||
198 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/craftwalk/craftwalk.c b/keyboards/craftwalk/craftwalk.c new file mode 100644 index 000000000..9b1ea8e2e --- /dev/null +++ b/keyboards/craftwalk/craftwalk.c | |||
@@ -0,0 +1,17 @@ | |||
1 | /* Copyright 2020 sotoba | ||
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 "craftwalk.h" | ||
diff --git a/keyboards/craftwalk/craftwalk.h b/keyboards/craftwalk/craftwalk.h new file mode 100644 index 000000000..80c32ef05 --- /dev/null +++ b/keyboards/craftwalk/craftwalk.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* Copyright 2020 sotoba | ||
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, \ | ||
31 | k10, k11, k12, k13, \ | ||
32 | k20, k21, k22, k23, k24, k25, k26 \ | ||
33 | ) \ | ||
34 | { \ | ||
35 | { KC_NO, k00, k01, k02, KC_NO, KC_NO, KC_NO }, \ | ||
36 | { k10, k11, k12, k13, KC_NO, KC_NO, KC_NO }, \ | ||
37 | { k20, k21, k22, k23, k24, k25, k26 } \ | ||
38 | } | ||
diff --git a/keyboards/craftwalk/info.json b/keyboards/craftwalk/info.json new file mode 100644 index 000000000..764af5b64 --- /dev/null +++ b/keyboards/craftwalk/info.json | |||
@@ -0,0 +1,27 @@ | |||
1 | { | ||
2 | "keyboard_name": "craftwalk", | ||
3 | "url": "https://github.com/sotoba/craftwalk", | ||
4 | "maintainer": "sotoba", | ||
5 | "width": 7.25, | ||
6 | "height": 4.5, | ||
7 | "layouts": { | ||
8 | "LAYOUT": { | ||
9 | "layout": [ | ||
10 | {"label":"Q", "x":1.25, "y":0.25}, | ||
11 | {"label":"W", "x":2.25, "y":0}, | ||
12 | {"label":"E", "x":3.25, "y":0.25}, | ||
13 | {"label":"Ctrl", "x":0, "y":1}, | ||
14 | {"label":"A", "x":1.25, "y":1.25}, | ||
15 | {"label":"S", "x":2.25, "y":1}, | ||
16 | {"label":"D", "x":3.25, "y":1.25}, | ||
17 | {"label":"Shift", "x":0, "y":2}, | ||
18 | {"label":"Adjust", "x":1.25, "y":2.25}, | ||
19 | {"label":"Mouse", "x":2.25, "y":2}, | ||
20 | {"label":"Mouse", "x":3.25, "y":2.25}, | ||
21 | {"label":"F", "x":4.25, "y":2}, | ||
22 | {"label":"Num", "x":5.25, "y":3, "h":1.5}, | ||
23 | {"label":"Space", "x":6.25, "y":3, "h":1.5} | ||
24 | ] | ||
25 | } | ||
26 | } | ||
27 | } | ||
diff --git a/keyboards/craftwalk/keymaps/default/keymap.c b/keyboards/craftwalk/keymaps/default/keymap.c new file mode 100644 index 000000000..9acd46d9b --- /dev/null +++ b/keyboards/craftwalk/keymaps/default/keymap.c | |||
@@ -0,0 +1,47 @@ | |||
1 | /* Copyright 2020 sotoba | ||
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 | |||
18 | // Defines names for use in layer keycodes and the keymap | ||
19 | enum layer_names { | ||
20 | _BASE, | ||
21 | _NUM, | ||
22 | _ADJUST | ||
23 | }; | ||
24 | |||
25 | #define KC_NUM MO(_NUM) | ||
26 | #define KC_ADJ MO(_ADJUST) | ||
27 | |||
28 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
29 | /* Base */ | ||
30 | [_BASE] = LAYOUT( | ||
31 | KC_Q, KC_W, KC_E, | ||
32 | KC_LCTL, KC_A, KC_S, KC_D, | ||
33 | KC_LSFT, KC_ADJ, KC_WH_U, KC_WH_D, KC_F, KC_NUM, KC_SPC | ||
34 | ), | ||
35 | /* Number */ | ||
36 | [_NUM] = LAYOUT( | ||
37 | KC_1, KC_2, KC_3, | ||
38 | KC_TRNS, KC_4, KC_5, KC_6, | ||
39 | KC_TRNS, KC_7, KC_8, KC_9, KC_F3, KC_TRNS, KC_TRNS | ||
40 | ), | ||
41 | /* Adjust */ | ||
42 | [_ADJUST] = LAYOUT( | ||
43 | RGB_HUI, RGB_SAI, RGB_VAI, | ||
44 | RESET, RGB_HUD, RGB_SAD, RGB_VAD, | ||
45 | RGB_M_T, KC_TRNS, RGB_MOD, RGB_RMOD,RGB_TOG, KC_TRNS, KC_TRNS | ||
46 | ) | ||
47 | }; | ||
diff --git a/keyboards/craftwalk/keymaps/default/readme.md b/keyboards/craftwalk/keymaps/default/readme.md new file mode 100644 index 000000000..7d51f51ad --- /dev/null +++ b/keyboards/craftwalk/keymaps/default/readme.md | |||
@@ -0,0 +1 @@ | |||
# The default keymap for craftwalk | |||
diff --git a/keyboards/craftwalk/readme.md b/keyboards/craftwalk/readme.md new file mode 100644 index 000000000..183dc12d1 --- /dev/null +++ b/keyboards/craftwalk/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # craftWalk | ||
2 | |||
3 | <img src="https://github.com/sotoba/craftwalk/blob/images/craftwalk_main.jpg" width="640"> | ||
4 | |||
5 | A macro pad for (mine)crafters. | ||
6 | |||
7 | * Keyboard Maintainer: [sotoba](https://github.com/sotoba) | ||
8 | * Hardware Supported: The craftWalk PCBs, Pro Micro supported | ||
9 | * Hardware Availability: [BOOTH: stupa-devices](https://stupa-devices.booth.pm/) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make craftwalk:default | ||
14 | |||
15 | See 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/craftwalk/rules.mk b/keyboards/craftwalk/rules.mk new file mode 100644 index 000000000..f5b6bc72c --- /dev/null +++ b/keyboards/craftwalk/rules.mk | |||
@@ -0,0 +1,22 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = caterina | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = no # Audio control and System control | ||
13 | CONSOLE_ENABLE = yes # Console for debug | ||
14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_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 | ||
18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||