Move thekey
to Drop vendor folder (#21032)
This commit is contained in:
5
keyboards/drop/thekey/v2/config.h
Normal file
5
keyboards/drop/thekey/v2/config.h
Normal file
@@ -0,0 +1,5 @@
|
||||
// Copyright 2023 Massdrop, Inc.
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#pragma once
|
||||
|
||||
#define RGBLIGHT_LED_MAP {4, 0, 1, 2, 3}
|
54
keyboards/drop/thekey/v2/info.json
Normal file
54
keyboards/drop/thekey/v2/info.json
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"keyboard_name": "The Key V2",
|
||||
"manufacturer": "Drop Inc.",
|
||||
"url": "https://drop.com/buy/stack-overflow-the-key-v2-macropad",
|
||||
"maintainer": "zvecr",
|
||||
"usb": {
|
||||
"vid": "0x359B",
|
||||
"pid": "0x000E",
|
||||
"device_version": "2.0.0"
|
||||
},
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"command": false,
|
||||
"console": false,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"rgblight": true
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"matrix_pins": {
|
||||
"cols": ["D2", "D1", "D0"],
|
||||
"rows": ["D4"]
|
||||
},
|
||||
"diode_direction": "ROW2COL",
|
||||
"rgblight": {
|
||||
"led_count": 5,
|
||||
"sleep": true,
|
||||
"animations": {
|
||||
"alternating": true,
|
||||
"breathing": true,
|
||||
"christmas": true,
|
||||
"knight": true,
|
||||
"rainbow_mood": true,
|
||||
"rainbow_swirl": true,
|
||||
"rgb_test": true,
|
||||
"snake": true,
|
||||
"static_gradient": true,
|
||||
"twinkle": true
|
||||
}
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "B1"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [0, 1], "x": 1, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
20
keyboards/drop/thekey/v2/keymaps/rgb-control-macos/config.h
Normal file
20
keyboards/drop/thekey/v2/keymaps/rgb-control-macos/config.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/* Copyright 2022 Jason Wihardja
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define RGBLIGHT_LAYERS /* Enable lighting layers */
|
||||
#define RGBLIGHT_LAYER_BLINK /* Enable lighting layer blink */
|
109
keyboards/drop/thekey/v2/keymaps/rgb-control-macos/keymap.c
Normal file
109
keyboards/drop/thekey/v2/keymaps/rgb-control-macos/keymap.c
Normal file
@@ -0,0 +1,109 @@
|
||||
/* Copyright 2022 Jason Wihardja
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum custom_keycodes {
|
||||
LAYER_SWITCH = SAFE_RANGE,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Default */
|
||||
[0] = LAYOUT(LAYER_SWITCH, G(KC_C), G(KC_V)),
|
||||
|
||||
/* RGB Toggle + Mode Change */
|
||||
[1] = LAYOUT(LAYER_SWITCH, RGB_TOG, RGB_MOD),
|
||||
|
||||
/* RGB Brightness */
|
||||
[2] = LAYOUT(LAYER_SWITCH, RGB_VAD, RGB_VAI),
|
||||
|
||||
/* RGB Hue */
|
||||
[3] = LAYOUT(LAYER_SWITCH, RGB_HUD, RGB_HUI),
|
||||
|
||||
/* RGB Saturation */
|
||||
[4] = LAYOUT(LAYER_SWITCH, RGB_SAD, RGB_SAI),
|
||||
|
||||
};
|
||||
|
||||
/* Lighting layers */
|
||||
|
||||
const rgblight_segment_t PROGMEM layer_indicator_0[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 1, HSV_WHITE},
|
||||
{1, 4, HSV_OFF}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM layer_indicator_1[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 1, HSV_OFF},
|
||||
{1, 1, HSV_WHITE},
|
||||
{2, 3, HSV_OFF}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM layer_indicator_2[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 2, HSV_OFF},
|
||||
{2, 1, HSV_WHITE},
|
||||
{3, 2, HSV_OFF}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM layer_indicator_3[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 3, HSV_OFF},
|
||||
{3, 1, HSV_WHITE},
|
||||
{4, 1, HSV_OFF}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM layer_indicator_4[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 4, HSV_OFF},
|
||||
{4, 1, HSV_WHITE}
|
||||
);
|
||||
|
||||
const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
||||
layer_indicator_0,
|
||||
layer_indicator_1,
|
||||
layer_indicator_2,
|
||||
layer_indicator_3,
|
||||
layer_indicator_4
|
||||
);
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
/* Enable the LED layers */
|
||||
rgblight_layers = rgb_layers;
|
||||
}
|
||||
|
||||
/* Layer handler */
|
||||
|
||||
uint16_t layer = 0;
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case LAYER_SWITCH:
|
||||
if (record->event.pressed) {
|
||||
if (layer > 0) {
|
||||
layer_off(layer);
|
||||
}
|
||||
|
||||
rgblight_unblink_layer(layer);
|
||||
layer = (layer + 1) % 5;
|
||||
rgblight_blink_layer_repeat(layer, 1000, 1);
|
||||
|
||||
if (layer > 0) {
|
||||
layer_on(layer);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
20
keyboards/drop/thekey/v2/keymaps/rgb-control/config.h
Normal file
20
keyboards/drop/thekey/v2/keymaps/rgb-control/config.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/* Copyright 2022 Jason Wihardja
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define RGBLIGHT_LAYERS /* Enable lighting layers */
|
||||
#define RGBLIGHT_LAYER_BLINK /* Enable lighting layer blink */
|
109
keyboards/drop/thekey/v2/keymaps/rgb-control/keymap.c
Normal file
109
keyboards/drop/thekey/v2/keymaps/rgb-control/keymap.c
Normal file
@@ -0,0 +1,109 @@
|
||||
/* Copyright 2022 Jason Wihardja
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum custom_keycodes {
|
||||
LAYER_SWITCH = SAFE_RANGE,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Default */
|
||||
[0] = LAYOUT(LAYER_SWITCH, C(KC_C), C(KC_V)),
|
||||
|
||||
/* RGB Toggle + Mode Change */
|
||||
[1] = LAYOUT(LAYER_SWITCH, RGB_TOG, RGB_MOD),
|
||||
|
||||
/* RGB Brightness */
|
||||
[2] = LAYOUT(LAYER_SWITCH, RGB_VAD, RGB_VAI),
|
||||
|
||||
/* RGB Hue */
|
||||
[3] = LAYOUT(LAYER_SWITCH, RGB_HUD, RGB_HUI),
|
||||
|
||||
/* RGB Saturation */
|
||||
[4] = LAYOUT(LAYER_SWITCH, RGB_SAD, RGB_SAI),
|
||||
|
||||
};
|
||||
|
||||
/* Lighting layers */
|
||||
|
||||
const rgblight_segment_t PROGMEM layer_indicator_0[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 1, HSV_WHITE},
|
||||
{1, 4, HSV_OFF}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM layer_indicator_1[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 1, HSV_OFF},
|
||||
{1, 1, HSV_WHITE},
|
||||
{2, 3, HSV_OFF}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM layer_indicator_2[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 2, HSV_OFF},
|
||||
{2, 1, HSV_WHITE},
|
||||
{3, 2, HSV_OFF}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM layer_indicator_3[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 3, HSV_OFF},
|
||||
{3, 1, HSV_WHITE},
|
||||
{4, 1, HSV_OFF}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM layer_indicator_4[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 4, HSV_OFF},
|
||||
{4, 1, HSV_WHITE}
|
||||
);
|
||||
|
||||
const rgblight_segment_t* const PROGMEM rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
||||
layer_indicator_0,
|
||||
layer_indicator_1,
|
||||
layer_indicator_2,
|
||||
layer_indicator_3,
|
||||
layer_indicator_4
|
||||
);
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
/* Enable the LED layers */
|
||||
rgblight_layers = rgb_layers;
|
||||
}
|
||||
|
||||
/* Layer handler */
|
||||
|
||||
uint16_t layer = 0;
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case LAYER_SWITCH:
|
||||
if (record->event.pressed) {
|
||||
if (layer > 0) {
|
||||
layer_off(layer);
|
||||
}
|
||||
|
||||
rgblight_unblink_layer(layer);
|
||||
layer = (layer + 1) % 5;
|
||||
rgblight_blink_layer_repeat(layer, 1000, 1);
|
||||
|
||||
if (layer > 0) {
|
||||
layer_on(layer);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
33
keyboards/drop/thekey/v2/readme.md
Normal file
33
keyboards/drop/thekey/v2/readme.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# The Key V2
|
||||
|
||||

|
||||
|
||||
The Stack Overflow "The Key V2" is a 3 button macropad based on atmega32u4 with hot-swappble Kailh Black Box switches.
|
||||
|
||||
> Last year, we brought Stack Overflow’s iconic April Fool’s joke to life. Advertised as the new (and only) way to copy and paste on the site, it was an ultra-compact macropad called The Key. The punchline-turned product was a huge hit, selling over 10K units and earning a nearly 5-star average review. Now, we’re back with a second act: The Key V2. The same size as its portable predecessor, this punchline-turned-product has a few notable changes—including an acrylic case to accent its two built-in RGB LEDs. Plus, we made it hot-swappable, so you can easily change out the switches for a truly custom experience. And just like the original, a portion of all proceeds from The Key V2 will go to the data-driven social startup digitalundivided.
|
||||
|
||||
* Keyboard Maintainer: [zvecr](https://github.com/zvecr)
|
||||
* Hardware Supported: Drop **The Key V2**
|
||||
* Hardware Availability: Limited Release - https://drop.com/buy/stack-overflow-the-key-v2-macropad
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
# default provided by Drop / Stack Overflow
|
||||
make drop/thekey/v2:default
|
||||
# common modification where C = CTRL+C, V = CTRL+V
|
||||
make drop/thekey/v2:url-copy-paste
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make drop/thekey/v2:default:flash
|
||||
|
||||
|
||||
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).
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in 3 ways:
|
||||
|
||||
* **Bootmagic reset**: Hold down the "Stack Overflow" key, the "left-most" or furthest from the USB plug while inserting the USB cable for a few seconds. The LEDs will **NOT** turn on.
|
||||
* **Physical reset button**: Briefly press and hold the reset button while pluggin in the USB port. The LEDs on the back will **NOT** turn on. Depending on your case revision, you may have to remove the 4 screws on the back plate to access the switch OR you can use the associated access hole on newer releases.
|
||||
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
|
1
keyboards/drop/thekey/v2/rules.mk
Normal file
1
keyboards/drop/thekey/v2/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
# This file intentionally left blank
|
Reference in New Issue
Block a user