aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonutCables <contact@donutcables.com>2021-08-13 15:30:38 -0400
committerGitHub <noreply@github.com>2021-08-13 12:30:38 -0700
commit0f0ebde0aa51b2d9bd9a817c0c6c2c5ef53e16e9 (patch)
tree72fc29a639853b8df92996dc86ccd2a88566dc3a
parent0972789e763c8cde4729dd268b48001aac8222fe (diff)
downloadqmk_firmware-0f0ebde0aa51b2d9bd9a817c0c6c2c5ef53e16e9.tar.gz
qmk_firmware-0f0ebde0aa51b2d9bd9a817c0c6c2c5ef53e16e9.zip
[Keyboard] Updates to ScrabblePad (#13177)
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/donutcables/scrabblepad/config.h143
-rw-r--r--keyboards/donutcables/scrabblepad/keymaps/default/keymap.c87
-rw-r--r--keyboards/donutcables/scrabblepad/keymaps/default/readme.md2
-rw-r--r--keyboards/donutcables/scrabblepad/keymaps/via/keymap.c92
-rw-r--r--keyboards/donutcables/scrabblepad/keymaps/via/readme.md5
-rw-r--r--keyboards/donutcables/scrabblepad/keymaps/via/rules.mk2
-rw-r--r--keyboards/donutcables/scrabblepad/rules.mk28
-rw-r--r--keyboards/donutcables/scrabblepad/scrabblepad.c29
-rw-r--r--keyboards/donutcables/scrabblepad/scrabblepad.h3
9 files changed, 204 insertions, 187 deletions
diff --git a/keyboards/donutcables/scrabblepad/config.h b/keyboards/donutcables/scrabblepad/config.h
index f792d5b1d..5543c6133 100644
--- a/keyboards/donutcables/scrabblepad/config.h
+++ b/keyboards/donutcables/scrabblepad/config.h
@@ -1,5 +1,5 @@
1/* 1/*
2Copyright 2018 MechMerlin 2Copyright 2021 DonutCables <contact@donutcables.com>
3 3
4This program is free software: you can redistribute it and/or modify 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 5it under the terms of the GNU General Public License as published by
@@ -20,10 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
20#include "config_common.h" 20#include "config_common.h"
21 21
22/* USB Device descriptor parameter */ 22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED 23#define VENDOR_ID 0x4443
24#define PRODUCT_ID 0x0000 24#define PRODUCT_ID 0x21D7
25#define DEVICE_VER 0x0001 25#define DEVICE_VER 0x0100
26#define MANUFACTURER Donut Cables 26#define MANUFACTURER DonutCables
27#define PRODUCT ScrabblePad 27#define PRODUCT ScrabblePad
28 28
29/* key matrix size */ 29/* key matrix size */
@@ -39,43 +39,72 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) 39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) 40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 * 41 *
42*/ 42 */
43#define MATRIX_ROW_PINS { D5, F1, C7, F2, C6, F3, C5, F4, C4, F5, C3, F6, C2, F7, C1 } 43#define MATRIX_ROW_PINS { D5, F1, C7, F2, C6, F3, C5, F4, C4, F5, C3, F6, C2, F7, C1 }
44#define MATRIX_COL_PINS { D6, D7, E0, E1, B7, D2, D3, D4, C0, B4, B5, B6, F0, E6, E7 } 44#define MATRIX_COL_PINS { D6, D7, E0, E1, B7, D2, D3, D4, C0, B4, B5, B6, F0, E6, E7 }
45#define UNUSED_PINS 45#define UNUSED_PINS
46 46
47/* COL2ROW, ROW2COL*/ 47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW 48#define DIODE_DIRECTION COL2ROW
49 49
50// #define BACKLIGHT_PIN 50/*
51// #define BACKLIGHT_BREATHING 51 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
52// #define BACKLIGHT_LEVELS 3 52 */
53 53
54// ws2812 options 54//#define LED_NUM_LOCK_PIN B0
55//#define RGB_DI_PIN A0 // pin the DI on the ws2812 is hooked-up to 55//#define LED_CAPS_LOCK_PIN B1
56//#define RGBLIGHT_ANIMATIONS // run RGB animations 56//#define LED_SCROLL_LOCK_PIN B2
57//#define RGBLED_NUM 6 // number of LEDs 57//#define LED_COMPOSE_PIN B3
58//#define RGBLIGHT_HUE_STEP 12 // units to step when in/decreasing hue 58//#define LED_KANA_PIN B4
59//#define RGBLIGHT_SAT_STEP 25 // units to step when in/decresing saturation 59
60//#define RGBLIGHT_VAL_STEP 12 // units to step when in/decreasing value (brightness) 60//#define BACKLIGHT_PIN B7
61//#define BACKLIGHT_LEVELS 3
62//#define BACKLIGHT_BREATHING
63
64//#define RGB_DI_PIN E2
65//#ifdef RGB_DI_PIN
66//# define RGBLED_NUM 16
67//# define RGBLIGHT_HUE_STEP 8
68//# define RGBLIGHT_SAT_STEP 8
69//# define RGBLIGHT_VAL_STEP 8
70//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
71//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
72/*== all animations enable ==*/
73//# define RGBLIGHT_ANIMATIONS
74/*== or choose animations ==*/
75//# define RGBLIGHT_EFFECT_BREATHING
76//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
77//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
78//# define RGBLIGHT_EFFECT_SNAKE
79//# define RGBLIGHT_EFFECT_KNIGHT
80//# define RGBLIGHT_EFFECT_CHRISTMAS
81//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
82//# define RGBLIGHT_EFFECT_RGB_TEST
83//# define RGBLIGHT_EFFECT_ALTERNATING
84/*== customize breathing effect ==*/
85/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
86//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
87/*==== use exp() and sin() ====*/
88//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
89//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
90//#endif
61 91
62/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ 92/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
63#define DEBOUNCE 5 93#define DEBOUNCE 5
64 94
95
65/* define if matrix has ghost (lacks anti-ghosting diodes) */ 96/* define if matrix has ghost (lacks anti-ghosting diodes) */
66//#define MATRIX_HAS_GHOST 97//#define MATRIX_HAS_GHOST
67 98
68/* number of backlight levels */
69
70/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ 99/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
71#define LOCKING_SUPPORT_ENABLE 100#define LOCKING_SUPPORT_ENABLE
72/* Locking resynchronize hack */ 101/* Locking resynchronize hack */
73#define LOCKING_RESYNC_ENABLE 102#define LOCKING_RESYNC_ENABLE
74 103
75/* If defined, GRAVE_ESC will always act as ESC when CTRL is held. 104/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
76 * This is userful for the Windows task manager shortcut (ctrl+shift+esc). 105 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
77 */ 106 */
78// #define GRAVE_ESC_CTRL_OVERRIDE 107//#define GRAVE_ESC_CTRL_OVERRIDE
79 108
80/* 109/*
81 * Force NKRO 110 * Force NKRO
@@ -99,54 +128,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
99//#define FORCE_NKRO 128//#define FORCE_NKRO
100 129
101/* 130/*
102 * Magic Key Options
103 *
104 * Magic keys are hotkey commands that allow control over firmware functions of
105 * the keyboard. They are best used in combination with the HID Listen program,
106 * found here: https://www.pjrc.com/teensy/hid_listen.html
107 *
108 * The options below allow the magic key functionality to be changed. This is
109 * useful if your keyboard/keypad is missing keys and you want magic key support.
110 *
111 */
112
113/* control how magic key switches layers */
114//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
115//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
116//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
117
118/* override magic key keymap */
119//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
120//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
121//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
122//#define MAGIC_KEY_HELP1 H
123//#define MAGIC_KEY_HELP2 SLASH
124//#define MAGIC_KEY_DEBUG D
125//#define MAGIC_KEY_DEBUG_MATRIX X
126//#define MAGIC_KEY_DEBUG_KBD K
127//#define MAGIC_KEY_DEBUG_MOUSE M
128//#define MAGIC_KEY_VERSION V
129//#define MAGIC_KEY_STATUS S
130//#define MAGIC_KEY_CONSOLE C
131//#define MAGIC_KEY_LAYER0_ALT1 ESC
132//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
133//#define MAGIC_KEY_LAYER0 0
134//#define MAGIC_KEY_LAYER1 1
135//#define MAGIC_KEY_LAYER2 2
136//#define MAGIC_KEY_LAYER3 3
137//#define MAGIC_KEY_LAYER4 4
138//#define MAGIC_KEY_LAYER5 5
139//#define MAGIC_KEY_LAYER6 6
140//#define MAGIC_KEY_LAYER7 7
141//#define MAGIC_KEY_LAYER8 8
142//#define MAGIC_KEY_LAYER9 9
143//#define MAGIC_KEY_BOOTLOADER PAUSE
144//#define MAGIC_KEY_LOCK CAPS
145//#define MAGIC_KEY_EEPROM E
146//#define MAGIC_KEY_NKRO N
147//#define MAGIC_KEY_SLEEP_LED Z
148
149/*
150 * Feature disable options 131 * Feature disable options
151 * These options are also useful to firmware size reduction. 132 * These options are also useful to firmware size reduction.
152 */ 133 */
@@ -161,25 +142,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
161//#define NO_ACTION_LAYER 142//#define NO_ACTION_LAYER
162//#define NO_ACTION_TAPPING 143//#define NO_ACTION_TAPPING
163//#define NO_ACTION_ONESHOT 144//#define NO_ACTION_ONESHOT
164//#define NO_ACTION_MACRO
165//#define NO_ACTION_FUNCTION
166 145
167/* 146/* disable these deprecated features by default */
168 * MIDI options
169 */
170
171/* enable basic MIDI features:
172 - MIDI notes can be sent when in Music mode is on
173*/
174//#define MIDI_BASIC
175
176/* enable advanced MIDI features:
177 - MIDI notes can be added to the keymap
178 - Octave shift and transpose
179 - Virtual sustain, portamento, and modulation wheel
180 - etc.
181*/
182//#define MIDI_ADVANCED
183 147
184/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ 148/* Bootmagic Lite key configuration */
185//#define MIDI_TONE_KEYCODE_OCTAVES 1 149//#define BOOTMAGIC_LITE_ROW 0
150//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/donutcables/scrabblepad/keymaps/default/keymap.c b/keyboards/donutcables/scrabblepad/keymaps/default/keymap.c
index bb78e7131..2762453f7 100644
--- a/keyboards/donutcables/scrabblepad/keymaps/default/keymap.c
+++ b/keyboards/donutcables/scrabblepad/keymaps/default/keymap.c
@@ -1,52 +1,43 @@
1/* Copyright 2018 MechMerlin 1/*
2 * 2Copyright 2021 DonutCables
3 * This program is free software: you can redistribute it and/or modify 3
4 * it under the terms of the GNU General Public License as published by 4This program is free software: you can redistribute it and/or modify
5 * the Free Software Foundation, either version 2 of the License, or 5it under the terms of the GNU General Public License as published by
6 * (at your option) any later version. 6the Free Software Foundation, either version 2 of the License, or
7 * 7(at your option) any later version.
8 * This program is distributed in the hope that it will be useful, 8
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 9This program is distributed in the hope that it will be useful,
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * GNU General Public License for more details. 11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * 12GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License 13
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14You should have received a copy of the GNU General Public License
15 */ 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
16#include QMK_KEYBOARD_H 18#include QMK_KEYBOARD_H
17 19
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 20enum layer_names {
19[0] = LAYOUT( /* Base */ 21 _BASE,
20 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
21 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
22 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
23 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
24 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
25 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
26 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
27 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
28 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
29 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
30 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
31 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
32 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
33 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC, \
34 KC_D, KC_O, KC_N, KC_U, KC_T, KC_C, KC_A, KC_T, KC_SPC, KC_R, KC_U, KC_L, KC_E, KC_S, KC_SPC \
35),
36}; 22};
37 23
38void matrix_init_user(void) { 24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
39 25 /* Base */
40} 26 [_BASE] = LAYOUT(
41 27 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
42void matrix_scan_user(void) { 28 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
43 29 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
44} 30 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
45 31 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
46bool process_record_user(uint16_t keycode, keyrecord_t *record) { 32 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
47 return true; 33 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
48} 34 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
49 35 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
50void led_set_user(uint8_t usb_led) { 36 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
51 37 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
52} 38 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
39 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
40 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
41 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC
42 ),
43};
diff --git a/keyboards/donutcables/scrabblepad/keymaps/default/readme.md b/keyboards/donutcables/scrabblepad/keymaps/default/readme.md
index 4123e7667..4dca7ad27 100644
--- a/keyboards/donutcables/scrabblepad/keymaps/default/readme.md
+++ b/keyboards/donutcables/scrabblepad/keymaps/default/readme.md
@@ -3,4 +3,4 @@
3This is the default keymap for the ScrabblePad. 3This is the default keymap for the ScrabblePad.
4 4
5On each row, each key is used to spell out each character in 5On each row, each key is used to spell out each character in
6the following string: "donutcat rules ". 6the following string: " scrabblepad ". \ No newline at end of file
diff --git a/keyboards/donutcables/scrabblepad/keymaps/via/keymap.c b/keyboards/donutcables/scrabblepad/keymaps/via/keymap.c
new file mode 100644
index 000000000..c35af0613
--- /dev/null
+++ b/keyboards/donutcables/scrabblepad/keymaps/via/keymap.c
@@ -0,0 +1,92 @@
1/*
2Copyright 2021 DonutCables <contact@donutcables.com>
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#include QMK_KEYBOARD_H
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21 [0] = LAYOUT(
22 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
23 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
24 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
25 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
26 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
27 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
28 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
29 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
30 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
31 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
32 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
33 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
34 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
35 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC,
36 KC_SPC, KC_SPC, KC_S, KC_C, KC_R, KC_A, KC_B, KC_B, KC_L, KC_E, KC_P, KC_A, KC_D, KC_SPC, KC_SPC
37 ),
38
39 [1] = LAYOUT(
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
42 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
43 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
44 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS,
48 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
49 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
50 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
51 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS,
54 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
55 ),
56
57 [2] = LAYOUT(
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, 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, KC_TRNS, KC_TRNS, KC_TRNS,
60 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
61 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
62 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
63 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS,
66 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
67 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
68 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
69 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
70 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
71 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
72 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
73 ),
74
75 [3] = LAYOUT(
76 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
77 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
78 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
79 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
80 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
81 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
82 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
83 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
84 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
85 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
86 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
87 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
88 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
89 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
90 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
91 ),
92};
diff --git a/keyboards/donutcables/scrabblepad/keymaps/via/readme.md b/keyboards/donutcables/scrabblepad/keymaps/via/readme.md
new file mode 100644
index 000000000..1e976d866
--- /dev/null
+++ b/keyboards/donutcables/scrabblepad/keymaps/via/readme.md
@@ -0,0 +1,5 @@
1# The VIA keymap for ScrabblePad
2
3This is the VIA keymap for the ScrabblePad.
4
5The base map is the same as the default map and then three available layers above that. \ No newline at end of file
diff --git a/keyboards/donutcables/scrabblepad/keymaps/via/rules.mk b/keyboards/donutcables/scrabblepad/keymaps/via/rules.mk
new file mode 100644
index 000000000..36b7ba9cb
--- /dev/null
+++ b/keyboards/donutcables/scrabblepad/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes
diff --git a/keyboards/donutcables/scrabblepad/rules.mk b/keyboards/donutcables/scrabblepad/rules.mk
index a4d303b0d..a94668cc3 100644
--- a/keyboards/donutcables/scrabblepad/rules.mk
+++ b/keyboards/donutcables/scrabblepad/rules.mk
@@ -2,29 +2,19 @@
2MCU = at90usb1286 2MCU = at90usb1286
3 3
4# Bootloader selection 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
12BOOTLOADER = halfkay 5BOOTLOADER = halfkay
13 6
14# Build Options 7# Build Options
15# change yes to no to disable 8BOOTMAGIC_ENABLE = no # Enable Bootmagic
16# 9MOUSEKEY_ENABLE = no # Mouse keys
17BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
18MOUSEKEY_ENABLE = yes # Mouse keys
19EXTRAKEY_ENABLE = yes # Audio control and System control 10EXTRAKEY_ENABLE = yes # Audio control and System control
20CONSOLE_ENABLE = yes # Console for debug 11CONSOLE_ENABLE = no # Console for debug
21COMMAND_ENABLE = yes # Commands for debug and configuration 12COMMAND_ENABLE = no # Commands for debug and configuration
22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 13# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 14SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
24# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 15# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
25NKRO_ENABLE = no # USB Nkey Rollover 16NKRO_ENABLE = yes # USB Nkey Rollover
26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default 17BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
27MIDI_ENABLE = no # MIDI support 18RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
28UNICODE_ENABLE = no # Unicode 19BLUETOOTH_ENABLE = no # Enable Bluetooth
29BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 20AUDIO_ENABLE = no # Audio output
30AUDIO_ENABLE = no # Audio output on port C6
diff --git a/keyboards/donutcables/scrabblepad/scrabblepad.c b/keyboards/donutcables/scrabblepad/scrabblepad.c
index e97cbd46c..88e60fea2 100644
--- a/keyboards/donutcables/scrabblepad/scrabblepad.c
+++ b/keyboards/donutcables/scrabblepad/scrabblepad.c
@@ -1,4 +1,4 @@
1/* Copyright 2018 MechMerlin 1/* Copyright 2021 DonutCables <contact@donutcables.com>
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 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 4 * it under the terms of the GNU General Public License as published by
@@ -14,30 +14,3 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16#include "scrabblepad.h" 16#include "scrabblepad.h"
17
18void matrix_init_kb(void) {
19 // put your keyboard start-up code here
20 // runs once when the firmware starts up
21
22 matrix_init_user();
23}
24
25void matrix_scan_kb(void) {
26 // put your looping keyboard code here
27 // runs every cycle (a lot)
28
29 matrix_scan_user();
30}
31
32bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
33 // put your per-action keyboard code here
34 // runs for every action, just before processing by the firmware
35
36 return process_record_user(keycode, record);
37}
38
39void led_set_kb(uint8_t usb_led) {
40 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
41
42 led_set_user(usb_led);
43}
diff --git a/keyboards/donutcables/scrabblepad/scrabblepad.h b/keyboards/donutcables/scrabblepad/scrabblepad.h
index b4ac8b2c4..f27d990eb 100644
--- a/keyboards/donutcables/scrabblepad/scrabblepad.h
+++ b/keyboards/donutcables/scrabblepad/scrabblepad.h
@@ -1,4 +1,4 @@
1/* Copyright 2018 MechMerlin 1/* Copyright 2021 DonutCables <contact@donutcables.com>
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 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 4 * it under the terms of the GNU General Public License as published by
@@ -17,7 +17,6 @@
17 17
18#include "quantum.h" 18#include "quantum.h"
19 19
20// Written in the format K(row)(column) where numbering is in hexadecimal
21#define LAYOUT( \ 20#define LAYOUT( \
22 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E, \ 21 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E, \
23 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E, \ 22 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E, \