diff options
author | Amber Holly <halcyonsilver@gmail.com> | 2019-10-01 02:34:12 +0100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-09-30 18:34:12 -0700 |
commit | c7b28bffc13d405bea2e0c0243437920659232f2 (patch) | |
tree | 6e141d4a1f6b40525c075ec0448ba3cec8ba4cc1 /keyboards/cutie_club | |
parent | c47fa31a0031a911eb4d97a043fe32792a57eba6 (diff) | |
download | qmk_firmware-c7b28bffc13d405bea2e0c0243437920659232f2.tar.gz qmk_firmware-c7b28bffc13d405bea2e0c0243437920659232f2.zip |
[Keyboard] Add Wraith keyboard (#6810)
* start wraith firmware
* completed initial setup
* added amber keymap to wraith
* fixed LEDs, wrote readme files
* reverted bootloader type after troubleshooting
* decapitalised files and directory as per qmk standards
* Update Wraith keyboard folder
- Add timer keymap with documentation
- Remove boilerplate in rules.mk, ready for pull request
- Update info.json with ISO and ANSI layouts, ready for QMK Configurator
* Add Wraith image to readme.md
* Fix Wraith keyboard's QMK Configurator support
- Update info.json
- Add layout macros in wraith.h
- Update keymap.c files to use LAYOUT_all
- Fix readme formatting
Diffstat (limited to 'keyboards/cutie_club')
-rw-r--r-- | keyboards/cutie_club/wraith/config.h | 249 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/info.json | 15 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/keymaps/amber/config.h | 19 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/keymaps/amber/keymap.c | 59 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/keymaps/amber/readme.md | 1 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/keymaps/default/config.h | 19 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/keymaps/default/keymap.c | 59 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/keymaps/default/readme.md | 1 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/keymaps/timer/config.h | 25 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/keymaps/timer/keymap.c | 90 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/keymaps/timer/readme.md | 30 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/readme.md | 15 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/rules.mk | 30 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/wraith.c | 43 | ||||
-rw-r--r-- | keyboards/cutie_club/wraith/wraith.h | 84 |
15 files changed, 739 insertions, 0 deletions
diff --git a/keyboards/cutie_club/wraith/config.h b/keyboards/cutie_club/wraith/config.h new file mode 100644 index 000000000..4908f7d8c --- /dev/null +++ b/keyboards/cutie_club/wraith/config.h | |||
@@ -0,0 +1,249 @@ | |||
1 | /* | ||
2 | Copyright 2019 Amber Holly | ||
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 0x0000 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Amber | ||
27 | #define PRODUCT Wraith | ||
28 | #define DESCRIPTION A WKL, 75% keyboard with staggered F-row. | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 12 | ||
32 | #define MATRIX_COLS 8 | ||
33 | |||
34 | /* | ||
35 | * Keyboard Matrix Assignments | ||
36 | * | ||
37 | * Change this to how you wired your keyboard | ||
38 | * COLS: AVR pins used for columns, left to right | ||
39 | * ROWS: AVR pins used for rows, top to bottom | ||
40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
42 | * | ||
43 | */ | ||
44 | #define MATRIX_ROW_PINS { B6, B5, B4, D7, D6, D4, D5, D3, D2, D1, D0, B7 } | ||
45 | #define MATRIX_COL_PINS { C6, C7, F7, F6, F5, F4, F1, F0 } | ||
46 | #define UNUSED_PINS | ||
47 | |||
48 | /* COL2ROW, ROW2COL*/ | ||
49 | #define DIODE_DIRECTION COL2ROW | ||
50 | |||
51 | /* | ||
52 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
53 | */ | ||
54 | #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
55 | |||
56 | // #define BACKLIGHT_PIN B7 | ||
57 | // #define BACKLIGHT_BREATHING | ||
58 | // #define BACKLIGHT_LEVELS 3 | ||
59 | |||
60 | // #define RGB_DI_PIN E2 | ||
61 | // #ifdef RGB_DI_PIN | ||
62 | // #define RGBLED_NUM 16 | ||
63 | // #define RGBLIGHT_HUE_STEP 8 | ||
64 | // #define RGBLIGHT_SAT_STEP 8 | ||
65 | // #define RGBLIGHT_VAL_STEP 8 | ||
66 | // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
67 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
68 | // /*== all animations enable ==*/ | ||
69 | // #define RGBLIGHT_ANIMATIONS | ||
70 | // /*== or choose animations ==*/ | ||
71 | // #define RGBLIGHT_EFFECT_BREATHING | ||
72 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
73 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
74 | // #define RGBLIGHT_EFFECT_SNAKE | ||
75 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
76 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
77 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
78 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
79 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
80 | // /*== customize breathing effect ==*/ | ||
81 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
82 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
83 | // /*==== use exp() and sin() ====*/ | ||
84 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
85 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
86 | // #endif | ||
87 | |||
88 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
89 | #define DEBOUNCE 5 | ||
90 | |||
91 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
92 | //#define MATRIX_HAS_GHOST | ||
93 | |||
94 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
95 | #define LOCKING_SUPPORT_ENABLE | ||
96 | /* Locking resynchronize hack */ | ||
97 | #define LOCKING_RESYNC_ENABLE | ||
98 | |||
99 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
100 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
101 | */ | ||
102 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
103 | |||
104 | /* | ||
105 | * Force NKRO | ||
106 | * | ||
107 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
108 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
109 | * makefile for this to work.) | ||
110 | * | ||
111 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
112 | * until the next keyboard reset. | ||
113 | * | ||
114 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
115 | * fully operational during normal computer usage. | ||
116 | * | ||
117 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
118 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
119 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
120 | * power-up. | ||
121 | * | ||
122 | */ | ||
123 | //#define FORCE_NKRO | ||
124 | |||
125 | /* | ||
126 | * Magic Key Options | ||
127 | * | ||
128 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
129 | * the keyboard. They are best used in combination with the HID Listen program, | ||
130 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
131 | * | ||
132 | * The options below allow the magic key functionality to be changed. This is | ||
133 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
134 | * | ||
135 | */ | ||
136 | |||
137 | /* key combination for magic key command */ | ||
138 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
139 | // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) | ||
140 | |||
141 | /* control how magic key switches layers */ | ||
142 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
143 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
144 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
145 | |||
146 | /* override magic key keymap */ | ||
147 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
148 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
149 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
150 | //#define MAGIC_KEY_HELP H | ||
151 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
152 | //#define MAGIC_KEY_DEBUG D | ||
153 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
154 | //#define MAGIC_KEY_DEBUG_KBD K | ||
155 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
156 | //#define MAGIC_KEY_VERSION V | ||
157 | //#define MAGIC_KEY_STATUS S | ||
158 | //#define MAGIC_KEY_CONSOLE C | ||
159 | //#define MAGIC_KEY_LAYER0 0 | ||
160 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
161 | //#define MAGIC_KEY_LAYER1 1 | ||
162 | //#define MAGIC_KEY_LAYER2 2 | ||
163 | //#define MAGIC_KEY_LAYER3 3 | ||
164 | //#define MAGIC_KEY_LAYER4 4 | ||
165 | //#define MAGIC_KEY_LAYER5 5 | ||
166 | //#define MAGIC_KEY_LAYER6 6 | ||
167 | //#define MAGIC_KEY_LAYER7 7 | ||
168 | //#define MAGIC_KEY_LAYER8 8 | ||
169 | //#define MAGIC_KEY_LAYER9 9 | ||
170 | //#define MAGIC_KEY_BOOTLOADER B | ||
171 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
172 | //#define MAGIC_KEY_LOCK CAPS | ||
173 | //#define MAGIC_KEY_EEPROM E | ||
174 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
175 | //#define MAGIC_KEY_NKRO N | ||
176 | //#define MAGIC_KEY_SLEEP_LED Z | ||
177 | |||
178 | /* | ||
179 | * Feature disable options | ||
180 | * These options are also useful to firmware size reduction. | ||
181 | */ | ||
182 | |||
183 | /* disable debug print */ | ||
184 | //#define NO_DEBUG | ||
185 | |||
186 | /* disable print */ | ||
187 | //#define NO_PRINT | ||
188 | |||
189 | /* disable action features */ | ||
190 | //#define NO_ACTION_LAYER | ||
191 | //#define NO_ACTION_TAPPING | ||
192 | //#define NO_ACTION_ONESHOT | ||
193 | //#define NO_ACTION_MACRO | ||
194 | //#define NO_ACTION_FUNCTION | ||
195 | |||
196 | /* | ||
197 | * MIDI options | ||
198 | */ | ||
199 | |||
200 | /* Prevent use of disabled MIDI features in the keymap */ | ||
201 | //#define MIDI_ENABLE_STRICT 1 | ||
202 | |||
203 | /* enable basic MIDI features: | ||
204 | - MIDI notes can be sent when in Music mode is on | ||
205 | */ | ||
206 | //#define MIDI_BASIC | ||
207 | |||
208 | /* enable advanced MIDI features: | ||
209 | - MIDI notes can be added to the keymap | ||
210 | - Octave shift and transpose | ||
211 | - Virtual sustain, portamento, and modulation wheel | ||
212 | - etc. | ||
213 | */ | ||
214 | //#define MIDI_ADVANCED | ||
215 | |||
216 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
217 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
218 | |||
219 | /* | ||
220 | * HD44780 LCD Display Configuration | ||
221 | */ | ||
222 | /* | ||
223 | #define LCD_LINES 2 //< number of visible lines of the display | ||
224 | #define LCD_DISP_LENGTH 16 //< visibles characters per line of the display | ||
225 | |||
226 | #define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode | ||
227 | |||
228 | #if LCD_IO_MODE | ||
229 | #define LCD_PORT PORTB //< port for the LCD lines | ||
230 | #define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0 | ||
231 | #define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1 | ||
232 | #define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2 | ||
233 | #define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3 | ||
234 | #define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0 | ||
235 | #define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1 | ||
236 | #define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2 | ||
237 | #define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3 | ||
238 | #define LCD_RS_PORT LCD_PORT //< port for RS line | ||
239 | #define LCD_RS_PIN 3 //< pin for RS line | ||
240 | #define LCD_RW_PORT LCD_PORT //< port for RW line | ||
241 | #define LCD_RW_PIN 2 //< pin for RW line | ||
242 | #define LCD_E_PORT LCD_PORT //< port for Enable line | ||
243 | #define LCD_E_PIN 1 //< pin for Enable line | ||
244 | #endif | ||
245 | */ | ||
246 | |||
247 | /* Bootmagic Lite key configuration */ | ||
248 | // #define BOOTMAGIC_LITE_ROW 0 | ||
249 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/cutie_club/wraith/info.json b/keyboards/cutie_club/wraith/info.json new file mode 100644 index 000000000..c75f925d3 --- /dev/null +++ b/keyboards/cutie_club/wraith/info.json | |||
@@ -0,0 +1,15 @@ | |||
1 | { | ||
2 | "keyboard_name": "wraith", | ||
3 | "url": "", | ||
4 | "maintainer": "amberstarlight", | ||
5 | "width": 16, | ||
6 | "height": 6, | ||
7 | "layouts": { | ||
8 | "LAYOUT_ansi": { | ||
9 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":1.25, "y":0}, {"label":"F2", "x":2.25, "y":0}, {"label":"F3", "x":3.25, "y":0}, {"label":"F4", "x":4.25, "y":0}, {"label":"F5", "x":5.5, "y":0}, {"label":"F6", "x":6.5, "y":0}, {"label":"F7", "x":7.5, "y":0}, {"label":"F8", "x":8.5, "y":0}, {"label":"F9", "x":9.75, "y":0}, {"label":"F10", "x":10.75, "y":0}, {"label":"F11", "x":11.75, "y":0}, {"label":"F12", "x":12.75, "y":0}, {"label":"Prt Sc", "x":14, "y":0}, {"label":"Fn", "x":15, "y":0}, {"label":"~", "x":0, "y":1}, {"label":"!", "x":1, "y":1}, {"label":"@", "x":2, "y":1}, {"label":"#", "x":3, "y":1}, {"label":"$", "x":4, "y":1}, {"label":"%", "x":5, "y":1}, {"label":"^", "x":6, "y":1}, {"label":"&", "x":7, "y":1}, {"label":"*", "x":8, "y":1}, {"label":"(", "x":9, "y":1}, {"label":")", "x":10, "y":1}, {"label":"_", "x":11, "y":1}, {"label":"+", "x":12, "y":1}, {"label":"Backspace", "x":13, "y":1, "w":2}, {"label":"Insert", "x":15, "y":1}, {"label":"Tab", "x":0, "y":2, "w":1.5}, {"label":"Q", "x":1.5, "y":2}, {"label":"W", "x":2.5, "y":2}, {"label":"E", "x":3.5, "y":2}, {"label":"R", "x":4.5, "y":2}, {"label":"T", "x":5.5, "y":2}, {"label":"Y", "x":6.5, "y":2}, {"label":"U", "x":7.5, "y":2}, {"label":"I", "x":8.5, "y":2}, {"label":"O", "x":9.5, "y":2}, {"label":"P", "x":10.5, "y":2}, {"label":"{", "x":11.5, "y":2}, {"label":"}", "x":12.5, "y":2}, {"label":"|", "x":13.5, "y":2, "w":1.5}, {"label":"Delete", "x":15, "y":2}, {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, {"label":"A", "x":1.75, "y":3}, {"label":"S", "x":2.75, "y":3}, {"label":"D", "x":3.75, "y":3}, {"label":"F", "x":4.75, "y":3}, {"label":"G", "x":5.75, "y":3}, {"label":"H", "x":6.75, "y":3}, {"label":"J", "x":7.75, "y":3}, {"label":"K", "x":8.75, "y":3}, {"label":"L", "x":9.75, "y":3}, {"label":":", "x":10.75, "y":3}, {"label":"\"", "x":11.75, "y":3}, {"label":"Enter", "x":12.75, "y":3, "w":2.25}, {"label":"Pg Up", "x":15, "y":3}, {"label":"Shift", "x":0, "y":4, "w":2.25}, {"label":"Z", "x":2.25, "y":4}, {"label":"X", "x":3.25, "y":4}, {"label":"C", "x":4.25, "y":4}, {"label":"V", "x":5.25, "y":4}, {"label":"B", "x":6.25, "y":4}, {"label":"N", "x":7.25, "y":4}, {"label":"M", "x":8.25, "y":4}, {"label":"<", "x":9.25, "y":4}, {"label":">", "x":10.25, "y":4}, {"label":"?", "x":11.25, "y":4}, {"label":"Shift", "x":12.25, "y":4, "w":1.75}, {"label":"\u2191", "x":14, "y":4}, {"label":"Pg Dn", "x":15, "y":4}, {"label":"Ctrl", "x":0, "y":5, "w":1.5}, {"label":"Alt", "x":2.25, "y":5, "w":1.5}, {"x":3.75, "y":5, "w":7}, {"label":"Alt", "x":10.75, "y":5, "w":1.5}, {"label":"\u2190", "x":13, "y":5}, {"label":"\u2193", "x":14, "y":5}, {"label":"\u2192", "x":15, "y":5}] | ||
10 | }, | ||
11 | "LAYOUT_iso": { | ||
12 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":1.25, "y":0}, {"label":"F2", "x":2.25, "y":0}, {"label":"F3", "x":3.25, "y":0}, {"label":"F4", "x":4.25, "y":0}, {"label":"F5", "x":5.5, "y":0}, {"label":"F6", "x":6.5, "y":0}, {"label":"F7", "x":7.5, "y":0}, {"label":"F8", "x":8.5, "y":0}, {"label":"F9", "x":9.75, "y":0}, {"label":"F10", "x":10.75, "y":0}, {"label":"F11", "x":11.75, "y":0}, {"label":"F12", "x":12.75, "y":0}, {"label":"Prt Sc", "x":14, "y":0}, {"label":"Fn", "x":15, "y":0}, {"label":"~", "x":0, "y":1}, {"label":"!", "x":1, "y":1}, {"label":"\"", "x":2, "y":1}, {"label":"\u00a3", "x":3, "y":1}, {"label":"$", "x":4, "y":1}, {"label":"%", "x":5, "y":1}, {"label":"^", "x":6, "y":1}, {"label":"&", "x":7, "y":1}, {"label":"*", "x":8, "y":1}, {"label":"(", "x":9, "y":1}, {"label":")", "x":10, "y":1}, {"label":"_", "x":11, "y":1}, {"label":"+", "x":12, "y":1}, {"label":"Backspace", "x":13, "y":1, "w":2}, {"label":"Insert", "x":15, "y":1}, {"label":"Tab", "x":0, "y":2, "w":1.5}, {"label":"Q", "x":1.5, "y":2}, {"label":"W", "x":2.5, "y":2}, {"label":"E", "x":3.5, "y":2}, {"label":"R", "x":4.5, "y":2}, {"label":"T", "x":5.5, "y":2}, {"label":"Y", "x":6.5, "y":2}, {"label":"U", "x":7.5, "y":2}, {"label":"I", "x":8.5, "y":2}, {"label":"O", "x":9.5, "y":2}, {"label":"P", "x":10.5, "y":2}, {"label":"{", "x":11.5, "y":2}, {"label":"}", "x":12.5, "y":2}, {"label":"Enter", "x":13.75, "y":2, "w":1.25, "h":2}, {"label":"Delete", "x":15, "y":2}, {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, {"label":"A", "x":1.75, "y":3}, {"label":"S", "x":2.75, "y":3}, {"label":"D", "x":3.75, "y":3}, {"label":"F", "x":4.75, "y":3}, {"label":"G", "x":5.75, "y":3}, {"label":"H", "x":6.75, "y":3}, {"label":"J", "x":7.75, "y":3}, {"label":"K", "x":8.75, "y":3}, {"label":"L", "x":9.75, "y":3}, {"label":":", "x":10.75, "y":3}, {"label":"@", "x":11.75, "y":3}, {"label":"~", "x":12.75, "y":3}, {"label":"Pg Up", "x":15, "y":3}, {"label":"Shift", "x":0, "y":4, "w":1.25}, {"label":"|", "x":1.25, "y":4}, {"label":"Z", "x":2.25, "y":4}, {"label":"X", "x":3.25, "y":4}, {"label":"C", "x":4.25, "y":4}, {"label":"V", "x":5.25, "y":4}, {"label":"B", "x":6.25, "y":4}, {"label":"N", "x":7.25, "y":4}, {"label":"M", "x":8.25, "y":4}, {"label":"<", "x":9.25, "y":4}, {"label":">", "x":10.25, "y":4}, {"label":"?", "x":11.25, "y":4}, {"label":"Shift", "x":12.25, "y":4, "w":1.75}, {"label":"\u2191", "x":14, "y":4}, {"label":"Pg Dn", "x":15, "y":4}, {"label":"Ctrl", "x":0, "y":5, "w":1.5}, {"label":"Alt", "x":2.25, "y":5, "w":1.5}, {"x":3.75, "y":5, "w":7}, {"label":"Alt", "x":10.75, "y":5, "w":1.5}, {"label":"\u2190", "x":13, "y":5}, {"label":"\u2193", "x":14, "y":5}, {"label":"\u2192", "x":15, "y":5}] | ||
13 | } | ||
14 | } | ||
15 | } | ||
diff --git a/keyboards/cutie_club/wraith/keymaps/amber/config.h b/keyboards/cutie_club/wraith/keymaps/amber/config.h new file mode 100644 index 000000000..b825835bb --- /dev/null +++ b/keyboards/cutie_club/wraith/keymaps/amber/config.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* Copyright 2019 Amber Holly | ||
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 | // place overrides here | ||
diff --git a/keyboards/cutie_club/wraith/keymaps/amber/keymap.c b/keyboards/cutie_club/wraith/keymaps/amber/keymap.c new file mode 100644 index 000000000..f953b5e19 --- /dev/null +++ b/keyboards/cutie_club/wraith/keymaps/amber/keymap.c | |||
@@ -0,0 +1,59 @@ | |||
1 | /* Copyright 2019 Amber Holly | ||
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 the keycodes used by our macros in process_record_user | ||
19 | enum custom_keycodes { | ||
20 | QMKBEST = SAFE_RANGE, | ||
21 | QMKURL | ||
22 | }; | ||
23 | |||
24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
25 | [0] = LAYOUT_all( | ||
26 | KC_ESC, 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_PSCR, KC_BRK, | ||
27 | KC_GRV, 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, KC_INS, | ||
28 | 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_DEL, | ||
29 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_ENT, MO(1), | ||
30 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_RGUI, | ||
31 | KC_CAPS, KC_LALT, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT | ||
32 | ), | ||
33 | [1] = LAYOUT_all( | ||
34 | RESET, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, _______, _______, | ||
35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_TRNS, | ||
38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
39 | _______, _______, _______, _______, KC_MPRV, _______, KC_MNXT | ||
40 | ) | ||
41 | }; | ||
42 | |||
43 | |||
44 | void matrix_init_user(void) { | ||
45 | |||
46 | } | ||
47 | |||
48 | void matrix_scan_user(void) { | ||
49 | // escape LED on layer 1 | ||
50 | if (IS_LAYER_ON(1)) { | ||
51 | writePinLow(B0); | ||
52 | } else { | ||
53 | writePinHigh(B0); | ||
54 | } | ||
55 | } | ||
56 | |||
57 | void led_set_user(uint8_t usb_led) { | ||
58 | |||
59 | } | ||
diff --git a/keyboards/cutie_club/wraith/keymaps/amber/readme.md b/keyboards/cutie_club/wraith/keymaps/amber/readme.md new file mode 100644 index 000000000..013ae7f10 --- /dev/null +++ b/keyboards/cutie_club/wraith/keymaps/amber/readme.md | |||
@@ -0,0 +1 @@ | |||
# Amber's personal keymap | |||
diff --git a/keyboards/cutie_club/wraith/keymaps/default/config.h b/keyboards/cutie_club/wraith/keymaps/default/config.h new file mode 100644 index 000000000..6f4dc6741 --- /dev/null +++ b/keyboards/cutie_club/wraith/keymaps/default/config.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* Copyright 2019 Amber | ||
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 | // place overrides here | ||
diff --git a/keyboards/cutie_club/wraith/keymaps/default/keymap.c b/keyboards/cutie_club/wraith/keymaps/default/keymap.c new file mode 100644 index 000000000..342a411ef --- /dev/null +++ b/keyboards/cutie_club/wraith/keymaps/default/keymap.c | |||
@@ -0,0 +1,59 @@ | |||
1 | /* Copyright 2019 Amber Holly | ||
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 the keycodes used by our macros in process_record_user | ||
19 | enum custom_keycodes { | ||
20 | QMKBEST = SAFE_RANGE, | ||
21 | QMKURL | ||
22 | }; | ||
23 | |||
24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
25 | [0] = LAYOUT_all( | ||
26 | KC_ESC, 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_PSCR, MO(1), | ||
27 | KC_GRV, 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, KC_INS, | ||
28 | 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_DEL, | ||
29 | 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_BSLS, KC_ENT, KC_PGUP, | ||
30 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, | ||
31 | KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT | ||
32 | ), | ||
33 | [1] = LAYOUT_all( | ||
34 | RESET, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, _______, KC_TRNS, | ||
35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
39 | _______, _______, _______, _______, _______, _______, _______ | ||
40 | ) | ||
41 | }; | ||
42 | |||
43 | |||
44 | void matrix_init_user(void) { | ||
45 | |||
46 | } | ||
47 | |||
48 | void matrix_scan_user(void) { | ||
49 | // escape LED on layer 1 | ||
50 | if (IS_LAYER_ON(1)) { | ||
51 | writePinLow(B0); | ||
52 | } else { | ||
53 | writePinHigh(B0); | ||
54 | } | ||
55 | } | ||
56 | |||
57 | void led_set_user(uint8_t usb_led) { | ||
58 | |||
59 | } | ||
diff --git a/keyboards/cutie_club/wraith/keymaps/default/readme.md b/keyboards/cutie_club/wraith/keymaps/default/readme.md new file mode 100644 index 000000000..cdf6376c2 --- /dev/null +++ b/keyboards/cutie_club/wraith/keymaps/default/readme.md | |||
@@ -0,0 +1 @@ | |||
# The default keymap for the Wraith | |||
diff --git a/keyboards/cutie_club/wraith/keymaps/timer/config.h b/keyboards/cutie_club/wraith/keymaps/timer/config.h new file mode 100644 index 000000000..f6f1af659 --- /dev/null +++ b/keyboards/cutie_club/wraith/keymaps/timer/config.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* Copyright 2019 Amber Holly | ||
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 | #define LAYER_TIMEOUT 10000 | ||
20 | #define TIMEOUT_WARNING 3000 | ||
21 | #define FLASH_PERIOD 250 | ||
22 | #define SPEED_SCALE 2 | ||
23 | #define TIMEOUT_SCALE 4 | ||
24 | #define LAYER_SWITCH 1 // the layer to switch to | ||
25 | #define GET_FLASH_PERIOD ((layer_time_remaining <= TIMEOUT_WARNING/TIMEOUT_SCALE) ? FLASH_PERIOD/SPEED_SCALE : FLASH_PERIOD) | ||
diff --git a/keyboards/cutie_club/wraith/keymaps/timer/keymap.c b/keyboards/cutie_club/wraith/keymaps/timer/keymap.c new file mode 100644 index 000000000..e57c62103 --- /dev/null +++ b/keyboards/cutie_club/wraith/keymaps/timer/keymap.c | |||
@@ -0,0 +1,90 @@ | |||
1 | /* Copyright 2019 Amber Holly | ||
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 | int layer_time_remaining; | ||
19 | uint16_t prev_loop_time; | ||
20 | |||
21 | // Defines the keycodes used by our macros in process_record_user | ||
22 | enum custom_keycodes { | ||
23 | TIME_TOGGLE = SAFE_RANGE | ||
24 | }; | ||
25 | |||
26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
27 | [0] = LAYOUT_all( | ||
28 | KC_ESC, 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_PSCR, KC_BRK, | ||
29 | KC_GRV, 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, KC_INS, | ||
30 | 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_DEL, | ||
31 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_ENT, TIME_TOGGLE, | ||
32 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_RGUI, | ||
33 | KC_CAPS, KC_LALT, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT | ||
34 | ), | ||
35 | [1] = LAYOUT_all( | ||
36 | RESET, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, _______, _______, | ||
37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_TRNS, | ||
40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
41 | _______, _______, _______, KC_MPLY, KC_MPRV, _______, KC_MNXT | ||
42 | ) | ||
43 | }; | ||
44 | |||
45 | |||
46 | void matrix_init_user(void) { | ||
47 | |||
48 | } | ||
49 | |||
50 | void matrix_scan_user(void) { | ||
51 | layer_time_remaining -= timer_read()-prev_loop_time; //amount of time elapsed since the start of the previous loop | ||
52 | prev_loop_time = timer_read(); //start counting the time to check at the next iteration | ||
53 | |||
54 | if (layer_time_remaining <= 0) { | ||
55 | // once timer run out | ||
56 | layer_off(LAYER_SWITCH); | ||
57 | } | ||
58 | |||
59 | // escape LED on layer 1 | ||
60 | if (IS_LAYER_ON(LAYER_SWITCH)) { | ||
61 | if (layer_time_remaining <= TIMEOUT_WARNING) { | ||
62 | if ((int)(layer_time_remaining/GET_FLASH_PERIOD % 2 == 0)) { | ||
63 | // if even led on | ||
64 | writePinLow(B0); | ||
65 | } else { | ||
66 | writePinHigh(B0); | ||
67 | } | ||
68 | } else { | ||
69 | writePinLow(B0); | ||
70 | } | ||
71 | } else { | ||
72 | writePinHigh(B0); | ||
73 | } | ||
74 | } | ||
75 | |||
76 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
77 | switch (keycode) { | ||
78 | case TIME_TOGGLE: | ||
79 | // get the time when time toggle pressed | ||
80 | layer_time_remaining = LAYER_TIMEOUT; | ||
81 | // set the layer | ||
82 | layer_on(LAYER_SWITCH); | ||
83 | break; | ||
84 | } | ||
85 | return true; | ||
86 | }; | ||
87 | |||
88 | void led_set_user(uint8_t usb_led) { | ||
89 | |||
90 | } | ||
diff --git a/keyboards/cutie_club/wraith/keymaps/timer/readme.md b/keyboards/cutie_club/wraith/keymaps/timer/readme.md new file mode 100644 index 000000000..1e812f3ae --- /dev/null +++ b/keyboards/cutie_club/wraith/keymaps/timer/readme.md | |||
@@ -0,0 +1,30 @@ | |||
1 | # Timed function layer keymap | ||
2 | |||
3 | Amber's personal keymap for the Wraith, but with a custom timed function layer keycode. `config.h` contains defines that you can edit to control various aspects of this function. | ||
4 | |||
5 | ## How does it work? | ||
6 | We are reading QMK's software timer in `matrix_scan_user()`. | ||
7 | |||
8 | Once the `TIME_TOGGLE` key is pressed, `layer_time_remaining` is set equal to `LAYER_TIMEOUT`, the layer defined in `LAYER_SWITCH` becomes active, and the LED on the Escape key (pin B0) will light up. | ||
9 | |||
10 | Each time the matrix is scanned, the software timer is read, and the value of `layer_time_remaining` is decreased by `prev_loop_time` - the amount of time elapsed since the last matrix scan. | ||
11 | |||
12 | When there are `TIMEOUT_WARNING`ms left in `LAYER_TIMEOUT`, the LED will begin to flash at intervals of `FLASH_PERIOD`ms. | ||
13 | |||
14 | When there are `TIMEOUT_WARNING/TIMEOUT_SCALE`ms left, the LED will begin to flash at intervals of `FLASH_PERIOD/SPEED_SCALE`ms. | ||
15 | |||
16 | When `layer_time_remaining` is equal to or less than 0, the layer defined in `LAYER_SWITCH` is removed from the layer stack. | ||
17 | |||
18 | |||
19 | ## What are the defaults? | ||
20 | `LAYER_TIMEOUT` controls how long the layer will stay active for. The default is 10 seconds. | ||
21 | |||
22 | `TIMEOUT_WARNING` controls how long the warning (LED flash) will occur before the layer becomes inactive. The default is 3 seconds. | ||
23 | |||
24 | `FLASH_PERIOD` controls how long each LED flash interval is in the warning time. The default flash period is 250ms. | ||
25 | |||
26 | `SPEED_SCALE` controls how many times faster the LED will flash in the second flash period. The default scale is 2, twice as fast. | ||
27 | |||
28 | `TIMEOUT_SCALE` controls the length of the second flash period, relative to `TIMEOUT_WARNING`. The default scale is 4; for 750ms of the secondary flash period. | ||
29 | |||
30 | `LAYER_SWITCH` is the layer that will be activated by the key. The default is layer 1. | ||
diff --git a/keyboards/cutie_club/wraith/readme.md b/keyboards/cutie_club/wraith/readme.md new file mode 100644 index 000000000..66d138b00 --- /dev/null +++ b/keyboards/cutie_club/wraith/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # Wraith | ||
2 | |||
3 |  | ||
4 | |||
5 | Custom PCB for the Wraith keyboard. | ||
6 | |||
7 | Keyboard Maintainer: [Amber](https://github.com/amberstarlight) | ||
8 | Hardware Supported: Wraith PCB | ||
9 | Hardware Availability: private group buy | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make cutie_club/wraith: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/cutie_club/wraith/rules.mk b/keyboards/cutie_club/wraith/rules.mk new file mode 100644 index 000000000..1737728fc --- /dev/null +++ b/keyboards/cutie_club/wraith/rules.mk | |||
@@ -0,0 +1,30 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | # Teensy halfkay | ||
6 | # Pro Micro caterina | ||
7 | # Atmel DFU atmel-dfu | ||
8 | # LUFA DFU lufa-dfu | ||
9 | # QMK DFU qmk-dfu | ||
10 | # ATmega32A bootloadHID | ||
11 | # ATmega328P USBasp | ||
12 | BOOTLOADER = atmel-dfu | ||
13 | |||
14 | # Build Options | ||
15 | # change yes to no to disable | ||
16 | # | ||
17 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
18 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
20 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
21 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
22 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
23 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
24 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
25 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
26 | UNICODE_ENABLE = no # Unicode | ||
27 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
28 | AUDIO_ENABLE = no # Audio output on port C6 | ||
29 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
30 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | ||
diff --git a/keyboards/cutie_club/wraith/wraith.c b/keyboards/cutie_club/wraith/wraith.c new file mode 100644 index 000000000..95265384e --- /dev/null +++ b/keyboards/cutie_club/wraith/wraith.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /* Copyright 2019 Amber Holly | ||
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 "wraith.h" | ||
17 | |||
18 | // Optional override functions below. | ||
19 | // You can leave any or all of these undefined. | ||
20 | // These are only required if you want to perform custom actions. | ||
21 | |||
22 | void matrix_init_kb(void) { | ||
23 | setPinOutput(B3); | ||
24 | setPinOutput(B0); | ||
25 | matrix_init_user(); | ||
26 | } | ||
27 | |||
28 | void matrix_scan_kb(void) { | ||
29 | matrix_scan_user(); | ||
30 | } | ||
31 | |||
32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
33 | return process_record_user(keycode, record); | ||
34 | } | ||
35 | |||
36 | void led_set_kb(uint8_t usb_led) { | ||
37 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||
38 | writePinLow(B3); | ||
39 | } else { | ||
40 | writePinHigh(B3); | ||
41 | } | ||
42 | led_set_user(usb_led); | ||
43 | } | ||
diff --git a/keyboards/cutie_club/wraith/wraith.h b/keyboards/cutie_club/wraith/wraith.h new file mode 100644 index 000000000..156937a1f --- /dev/null +++ b/keyboards/cutie_club/wraith/wraith.h | |||
@@ -0,0 +1,84 @@ | |||
1 | /* Copyright 2019 Amber Holly | ||
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 | #define LAYOUT_all( \ | ||
21 | K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07,\ | ||
22 | K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27,\ | ||
23 | K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K47,\ | ||
24 | K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K66, K76, K67,\ | ||
25 | K80, K90, K81, K91, K82, K92, K83, K93, K84, K94, K85, K95, K86, K96, K87,\ | ||
26 | KA0, KA1, KA3, KB5, KA6, KB6, KA7\ | ||
27 | ) { \ | ||
28 | { K00, K01, K02, K03, K04, K05, K06, K07 }, \ | ||
29 | { K10, K11, K12, K13, K14, K15, K16 }, \ | ||
30 | { K20, K21, K22, K23, K24, K25, K26, K27 }, \ | ||
31 | { K30, K31, K32, K33, K34, K35, K36 }, \ | ||
32 | { K40, K41, K42, K43, K44, K45, K46, K47}, \ | ||
33 | { K50, K51, K52, K53, K54, K55, KC_NO }, \ | ||
34 | { K60, K61, K62, K63, K64, K65, K66, K67 }, \ | ||
35 | { K70, K71, K72, K73, K74, K75, K76 }, \ | ||
36 | { K80, K81, K82, K83, K84, K85, K86, K87 }, \ | ||
37 | { K90, K91, K92, K93, K94, K95, K96 }, \ | ||
38 | { KA0, KA1, KC_NO, KA3, KC_NO, KC_NO, KA6, KA7 }, \ | ||
39 | { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KB5, KB6 } \ | ||
40 | } | ||
41 | |||
42 | #define LAYOUT_iso( \ | ||
43 | K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07,\ | ||
44 | K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27,\ | ||
45 | K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K47,\ | ||
46 | K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K66, K76, K67,\ | ||
47 | K80, K90, K81, K91, K82, K92, K83, K93, K84, K94, K85, K95, K86, K96, K87,\ | ||
48 | KA0, KA1, KA3, KB5, KA6, KB6, KA7\ | ||
49 | ) { \ | ||
50 | { K00, K01, K02, K03, K04, K05, K06, K07 }, \ | ||
51 | { K10, K11, K12, K13, K14, K15, K16 }, \ | ||
52 | { K20, K21, K22, K23, K24, K25, K26, K27 }, \ | ||
53 | { K30, K31, K32, K33, K34, K35, K36 }, \ | ||
54 | { K40, K41, K42, K43, K44, K45, K46, K47}, \ | ||
55 | { K50, K51, K52, K53, K54, K55, KC_NO }, \ | ||
56 | { K60, K61, K62, K63, K64, K65, K66, K67 }, \ | ||
57 | { K70, K71, K72, K73, K74, K75, K76 }, \ | ||
58 | { K80, K81, K82, K83, K84, K85, K86, K87 }, \ | ||
59 | { K90, K91, K92, K93, K94, K95, K96 }, \ | ||
60 | { KA0, KA1, KC_NO, KA3, KC_NO, KC_NO, KA6, KA7 }, \ | ||
61 | { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KB5, KB6 } \ | ||
62 | } | ||
63 | |||
64 | #define LAYOUT_ansi( \ | ||
65 | K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07,\ | ||
66 | K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27,\ | ||
67 | K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, K66, K47,\ | ||
68 | K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K76, K67,\ | ||
69 | K80, K81, K91, K82, K92, K83, K93, K84, K94, K85, K95, K86, K96, K87,\ | ||
70 | KA0, KA1, KA3, KB5, KA6, KB6, KA7\ | ||
71 | ) { \ | ||
72 | { K00, K01, K02, K03, K04, K05, K06, K07 }, \ | ||
73 | { K10, K11, K12, K13, K14, K15, K16 }, \ | ||
74 | { K20, K21, K22, K23, K24, K25, K26, K27 }, \ | ||
75 | { K30, K31, K32, K33, K34, K35, K36 }, \ | ||
76 | { K40, K41, K42, K43, K44, K45, K46, K47}, \ | ||
77 | { K50, K51, K52, K53, K54, K55, KC_NO }, \ | ||
78 | { K60, K61, K62, K63, K64, K65, K66, K67 }, \ | ||
79 | { K70, K71, K72, K73, K74, K75, K76 }, \ | ||
80 | { K80, K81, K82, K83, K84, K85, K86, K87 }, \ | ||
81 | { KC_NO, K91, K92, K93, K94, K95, K96 }, \ | ||
82 | { KA0, KA1, KC_NO, KA3, KC_NO, KC_NO, KA6, KA7 }, \ | ||
83 | { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KB5, KB6 } \ | ||
84 | } | ||