Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
Drashna Jael're 2022-09-24 12:23:36 -07:00
commit 8478e96de6
No known key found for this signature in database
GPG key ID: DBA1FD3A860D1B11
51 changed files with 2149 additions and 185 deletions

View file

@ -92,11 +92,10 @@ These keycodes allow the processing to fall through to lower layers in search of
For this example we will walk through an [older version of the default Clueboard 66% keymap](https://github.com/qmk/qmk_firmware/blob/ca01d94005f67ec4fa9528353481faa622d949ae/keyboards/clueboard/keymaps/default/keymap.c). You'll find it helpful to open that file in another browser window so you can look at everything in context.
There are 3 main sections of a `keymap.c` file you'll want to concern yourself with:
There are 2 main sections of a `keymap.c` file you'll want to concern yourself with:
* [The Definitions](#definitions)
* [The Layer/Keymap Datastructure](#layers-and-keymaps)
* [Custom Functions](#custom-functions), if any
### Definitions

View file

@ -1,52 +1,9 @@
/* Copyright 2018-2021
* ENDO Katsuhiro <ka2hiro@curlybracket.co.jp>
* David Philip Barr <@davidphilipbarr>
* Pierre Chevalier <pierrechevalier83@gmail.com>
*
* 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/>.
*/
// Copyright 2018-2021
// ENDO Katsuhiro <ka2hiro@curlybracket.co.jp>
// David Philip Barr <@davidphilipbarr>
// Pierre Chevalier <pierrechevalier83@gmail.com>
// SPDX-License-Identifier: GPL-2.0+
#pragma once
#include "config_common.h"
/* key matrix size */
#define MATRIX_ROWS 8
#define MATRIX_COLS 5
#define DIRECT_PINS { \
{ E6, F7, F6, F5, F4 }, \
{ B1, B3, B2, B6, D3 }, \
{ D1, D0, D4, C6, D7 }, \
{ B4, B5, NO_PIN, NO_PIN, NO_PIN } \
}
#define DIRECT_PINS_RIGHT { \
{ F4, F5, F6, F7, E6 }, \
{ D3, B6, B2, B3, B1 }, \
{ D7, C6, D4, D0, D1 }, \
{ B5, B4, NO_PIN, NO_PIN, NO_PIN } \
}
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5
/* serial.c configuration for split keyboard */
#define SOFT_SERIAL_PIN D2
/* Top left key on left half */
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 0
/* Top right key on right half */

View file

@ -1,24 +1,10 @@
/* Copyright 2018-2021
* ENDO Katsuhiro <ka2hiro@curlybracket.co.jp>
* David Philip Barr <@davidphilipbarr>
* Pierre Chevalier <pierrechevalier83@gmail.com>
* @filterpaper
*
* 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/>.
*/
// Copyright 2018-2021
// ENDO Katsuhiro <ka2hiro@curlybracket.co.jp>
// David Philip Barr <@davidphilipbarr>
// Pierre Chevalier <pierrechevalier83@gmail.com>
// SPDX-License-Identifier: GPL-2.0+
#include "cradio.h"
#include "quantum.h"
#ifdef SWAP_HANDS_ENABLE
__attribute__ ((weak))
@ -35,4 +21,3 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
{{1, 3}, {0, 3}, {2, 3}, {3, 3}, {4, 3}}
};
#endif

View file

@ -1,52 +0,0 @@
/* Copyright 2018-2021
* ENDO Katsuhiro <ka2hiro@curlybracket.co.jp>
* David Philip Barr <@davidphilipbarr>
* Pierre Chevalier <pierrechevalier83@gmail.com>
*
* 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 "quantum.h"
/* This a shortcut to help you visually see your layout.
*
* The first section contains all of the arguments representing the physical
* layout of the board and position of the keys.
*
* The second converts the arguments into a two-dimensional array which
* represents the switch matrix.
*/
// readability
#define ___ KC_NO
#define LAYOUT_split_3x5_2( \
L01, L02, L03, L04, L05, R01, R02, R03, R04, R05, \
L06, L07, L08, L09, L10, R06, R07, R08, R09, R10, \
L11, L12, L13, L14, L15, R11, R12, R13, R14, R15, \
L16, L17, R16, R17 \
) \
{ \
{ L01, L02, L03, L04, L05 }, \
{ L06, L07, L08, L09, L10 }, \
{ L11, L12, L13, L14, L15 }, \
{ L16, L17, ___, ___, ___ }, \
{ R01, R02, R03, R04, R05 }, \
{ R06, R07, R08, R09, R10 }, \
{ R11, R12, R13, R14, R15 }, \
{ R16, R17, ___, ___, ___ } \
}
#define LAYOUT LAYOUT_split_3x5_2

View file

@ -8,50 +8,84 @@
"pid": "0x3988",
"device_version": "0.0.1"
},
"processor": "atmega32u4",
"protocol": "atmel-dfu",
"debounce": 5,
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": false,
"unicode": true
},
"matrix_pins": {
"direct": [
["E6", "F7", "F6", "F5", "F4"],
["B1", "B3", "B2", "B6", "D3"],
["D1", "D0", "D4", "C6", "D7"],
["B4", "B5", null, null, null]
]
},
"split": {
"enabled": true,
"matrix_pins": {
"right": {
"direct": [
["F4", "F5", "F6", "F7", "E6"],
["D3", "B6", "B2", "B3", "B1"],
["D7", "C6", "D4", "D0", "D1"],
["B5", "B4", null, null, null]
]
}
},
"soft_serial_pin": "D2",
"transport": {
"protocol": "serial"
}
},
"community_layouts": ["split_3x5_2"],
"layout_aliases": {
"LAYOUT": "LAYOUT_split_3x5_2"
},
"layouts": {
"LAYOUT_split_3x5_2": {
"layout": [
{"x": 0, "y": 1.27},
{"x": 1, "y": 0.31},
{"x": 2, "y": 0},
{"x": 3, "y": 0.28},
{"x": 4, "y": 0.42},
{"x": 8, "y": 0.42},
{"x": 9, "y": 0.28},
{"x": 10, "y": 0},
{"x": 11, "y": 0.31},
{"x": 12, "y": 1.27},
{"x": 0, "y": 2.27},
{"x": 1, "y": 1.31},
{"x": 2, "y": 1},
{"x": 3, "y": 1.28},
{"x": 4, "y": 1.42},
{"x": 8, "y": 1.42},
{"x": 9, "y": 1.28},
{"x": 10, "y": 1},
{"x": 11, "y": 1.31},
{"x": 12, "y": 2.27},
{"x": 0, "y": 3.27},
{"x": 1, "y": 2.31},
{"x": 2, "y": 2},
{"x": 3, "y": 2.28},
{"x": 4, "y": 2.42},
{"x": 8, "y": 2.42},
{"x": 9, "y": 2.28},
{"x": 10, "y": 2},
{"x": 11, "y": 2.31},
{"x": 12, "y": 3.27},
{"x": 4, "y": 3.9},
{"x": 5, "y": 3.7},
{"x": 7, "y": 3.7},
{"x": 8, "y": 3.9}
{ "label": "L01", "matrix": [0, 0], "w": 1, "x": 0, "y": 1.27 },
{ "label": "L02", "matrix": [0, 1], "w": 1, "x": 1, "y": 0.31 },
{ "label": "L03", "matrix": [0, 2], "w": 1, "x": 2, "y": 0 },
{ "label": "L04", "matrix": [0, 3], "w": 1, "x": 3, "y": 0.28 },
{ "label": "L05", "matrix": [0, 4], "w": 1, "x": 4, "y": 0.42 },
{ "label": "L06", "matrix": [1, 0], "w": 1, "x": 0, "y": 2.27 },
{ "label": "L07", "matrix": [1, 1], "w": 1, "x": 1, "y": 1.31 },
{ "label": "L08", "matrix": [1, 2], "w": 1, "x": 2, "y": 1 },
{ "label": "L09", "matrix": [1, 3], "w": 1, "x": 3, "y": 1.28 },
{ "label": "L10", "matrix": [1, 4], "w": 1, "x": 4, "y": 1.42 },
{ "label": "L11", "matrix": [2, 0], "w": 1, "x": 0, "y": 3.27 },
{ "label": "L12", "matrix": [2, 1], "w": 1, "x": 1, "y": 2.31 },
{ "label": "L13", "matrix": [2, 2], "w": 1, "x": 2, "y": 2 },
{ "label": "L14", "matrix": [2, 3], "w": 1, "x": 3, "y": 2.28 },
{ "label": "L15", "matrix": [2, 4], "w": 1, "x": 4, "y": 2.42 },
{ "label": "L16", "matrix": [3, 0], "w": 1, "x": 4, "y": 3.9 },
{ "label": "L17", "matrix": [3, 1], "w": 1, "x": 5, "y": 3.7 },
{ "label": "R01", "matrix": [4, 0], "w": 1, "x": 8, "y": 0.42 },
{ "label": "R02", "matrix": [4, 1], "w": 1, "x": 9, "y": 0.28 },
{ "label": "R03", "matrix": [4, 2], "w": 1, "x": 10, "y": 0 },
{ "label": "R04", "matrix": [4, 3], "w": 1, "x": 11, "y": 0.31 },
{ "label": "R05", "matrix": [4, 4], "w": 1, "x": 12, "y": 1.27 },
{ "label": "R06", "matrix": [5, 0], "w": 1, "x": 8, "y": 1.42 },
{ "label": "R07", "matrix": [5, 1], "w": 1, "x": 9, "y": 1.28 },
{ "label": "R08", "matrix": [5, 2], "w": 1, "x": 10, "y": 1 },
{ "label": "R09", "matrix": [5, 3], "w": 1, "x": 11, "y": 1.31 },
{ "label": "R10", "matrix": [5, 4], "w": 1, "x": 12, "y": 2.27 },
{ "label": "R11", "matrix": [6, 0], "w": 1, "x": 8, "y": 2.42 },
{ "label": "R12", "matrix": [6, 1], "w": 1, "x": 9, "y": 2.28 },
{ "label": "R13", "matrix": [6, 2], "w": 1, "x": 10, "y": 2 },
{ "label": "R14", "matrix": [6, 3], "w": 1, "x": 11, "y": 2.31 },
{ "label": "R15", "matrix": [6, 4], "w": 1, "x": 12, "y": 3.27 },
{ "label": "R16", "matrix": [7, 0], "w": 1, "x": 7, "y": 3.7 },
{ "label": "R17", "matrix": [7, 1], "w": 1, "x": 8, "y": 3.9 }
]
}
}

View file

@ -1,21 +1 @@
# MCU name
MCU = atmega32u4
# Bootloader selection
BOOTLOADER = atmel-dfu
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = no # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
UNICODE_ENABLE = yes # Unicode
AUDIO_ENABLE = no # Audio output
SPLIT_KEYBOARD = yes # Use shared split_common code
LAYOUTS = split_3x5_2
# This file intentionally left blank

View file

@ -0,0 +1,8 @@
// Copyright 2022 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include_next "board.h"
#undef STM32_HSECLK
#define STM32_HSECLK 16000000U

View file

@ -0,0 +1,67 @@
// Copyright 2022 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define I2C1_SCL_PIN B8
#define I2C1_SDA_PIN B9
#define EXTERNAL_EEPROM_I2C_BASE_ADDRESS 0b10101000
#define EXTERNAL_EEPROM_WP_PIN B7
#define EEPROM_I2C_24LC256
#ifdef RGB_MATRIX_ENABLE
# define DRIVER_ADDR_1 0b1010000
# define DRIVER_ADDR_2 0b1011111
# define DRIVER_COUNT 2
# define DRIVER_LED_TOTAL (58 + 53)
# define ISSI_PWM_FREQUENCY 0b010 // 26k
# define RGB_DISABLE_TIMEOUT 0
# define RGB_DISABLE_WHEN_USB_SUSPENDED
# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT
# define RGB_MATRIX_KEYPRESSES
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
# define ENABLE_RGB_MATRIX_ALPHAS_MODS
# define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
# define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
# define ENABLE_RGB_MATRIX_BREATHING
# define ENABLE_RGB_MATRIX_BAND_SAT
# define ENABLE_RGB_MATRIX_BAND_VAL
# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
# define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
# define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
# define ENABLE_RGB_MATRIX_CYCLE_ALL
# define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
# define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
# define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
# define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
# define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
# define ENABLE_RGB_MATRIX_DUAL_BEACON
# define ENABLE_RGB_MATRIX_RAINBOW_BEACON
# define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
# define ENABLE_RGB_MATRIX_RAINDROPS
# define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
# define ENABLE_RGB_MATRIX_HUE_BREATHING
# define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
# define ENABLE_RGB_MATRIX_PIXEL_FLOW
# define ENABLE_RGB_MATRIX_PIXEL_RAIN
# define ENABLE_RGB_MATRIX_HUE_PENDULUM
# define ENABLE_RGB_MATRIX_HUE_WAVE
# define ENABLE_RGB_MATRIX_TYPING_HEATMAP
# define ENABLE_RGB_MATRIX_DIGITAL_RAIN
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
# define ENABLE_RGB_MATRIX_SPLASH
# define ENABLE_RGB_MATRIX_MULTISPLASH
# define ENABLE_RGB_MATRIX_SOLID_SPLASH
# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
#endif

View file

@ -0,0 +1,7 @@
// Copyright 2022 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define HAL_USE_I2C TRUE
#include_next <halconf.h>

View file

@ -0,0 +1,235 @@
{
"keyboard_name": "SENSE75",
"manufacturer": "Drop Inc.",
"maintainer": "zvecr",
"processor": "STM32F303",
"bootloader": "stm32-dfu",
"diode_direction": "COL2ROW",
"matrix_pins": {
"cols": ["C15", "C14", "C13", "C12", "C11", "C10", "C9", "C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1"],
"rows": ["B15", "B14", "B13", "B12", "B11", "B10"]
},
"usb": {
"vid": "0x359B",
"pid": "0x0001",
"device_version": "1.0.0"
},
"features": {
"rgb_matrix": true,
"encoder": true,
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"layouts": {
"LAYOUT": {
"layout": [
{ "matrix": [0, 0], "label":"Esc", "x":0, "y":0},
{ "matrix": [0, 1], "label":"F1", "x":1.25, "y":0},
{ "matrix": [0, 2], "label":"F2", "x":2.25, "y":0},
{ "matrix": [0, 3], "label":"F3", "x":3.25, "y":0},
{ "matrix": [0, 4], "label":"F4", "x":4.25, "y":0},
{ "matrix": [0, 5], "label":"F5", "x":5.5, "y":0},
{ "matrix": [0, 6], "label":"F6", "x":6.5, "y":0},
{ "matrix": [0, 7], "label":"F7", "x":7.5, "y":0},
{ "matrix": [0, 8], "label":"F8", "x":8.5, "y":0},
{ "matrix": [0, 9], "label":"F9", "x":9.75, "y":0},
{ "matrix": [0, 10], "label":"F10", "x":10.75, "y":0},
{ "matrix": [0, 11], "label":"F11", "x":11.75, "y":0},
{ "matrix": [0, 12], "label":"F12", "x":12.75, "y":0},
{ "matrix": [0, 13], "label":"PrtSc", "x":14, "y":0},
{ "matrix": [0, 14], "label":"Mute", "x":15.25, "y":0},
{ "matrix": [1, 0], "label":"~", "x":0, "y":1.25},
{ "matrix": [1, 1], "label":"!", "x":1, "y":1.25},
{ "matrix": [1, 2], "label":"@", "x":2, "y":1.25},
{ "matrix": [1, 3], "label":"#", "x":3, "y":1.25},
{ "matrix": [1, 4], "label":"$", "x":4, "y":1.25},
{ "matrix": [1, 5], "label":"%", "x":5, "y":1.25},
{ "matrix": [1, 6], "label":"^", "x":6, "y":1.25},
{ "matrix": [1, 7], "label":"&", "x":7, "y":1.25},
{ "matrix": [1, 8], "label":"*", "x":8, "y":1.25},
{ "matrix": [1, 9], "label":"(", "x":9, "y":1.25},
{ "matrix": [1, 10], "label":")", "x":10, "y":1.25},
{ "matrix": [1, 11], "label":"_", "x":11, "y":1.25},
{ "matrix": [1, 12], "label":"+", "x":12, "y":1.25},
{ "matrix": [1, 13], "label":"Backspace", "x":13, "y":1.25, "w":2},
{ "matrix": [1, 14], "label":"Del", "x":15.25, "y":1.25},
{ "matrix": [2, 0], "label":"Tab", "x":0, "y":2.25, "w":1.5},
{ "matrix": [2, 1], "label":"Q", "x":1.5, "y":2.25},
{ "matrix": [2, 2], "label":"W", "x":2.5, "y":2.25},
{ "matrix": [2, 3], "label":"E", "x":3.5, "y":2.25},
{ "matrix": [2, 4], "label":"R", "x":4.5, "y":2.25},
{ "matrix": [2, 5], "label":"T", "x":5.5, "y":2.25},
{ "matrix": [2, 6], "label":"Y", "x":6.5, "y":2.25},
{ "matrix": [2, 7], "label":"U", "x":7.5, "y":2.25},
{ "matrix": [2, 8], "label":"I", "x":8.5, "y":2.25},
{ "matrix": [2, 9], "label":"O", "x":9.5, "y":2.25},
{ "matrix": [2, 10], "label":"P", "x":10.5, "y":2.25},
{ "matrix": [2, 11], "label":"{", "x":11.5, "y":2.25},
{ "matrix": [2, 12], "label":"}", "x":12.5, "y":2.25},
{ "matrix": [2, 13], "label":"|", "x":13.5, "y":2.25, "w":1.5},
{ "matrix": [2, 14], "label":"Page Up", "x":15.25, "y":2.25},
{ "matrix": [3, 0], "label":"Caps Lock", "x":0, "y":3.25, "w":1.75},
{ "matrix": [3, 1], "label":"A", "x":1.75, "y":3.25},
{ "matrix": [3, 2], "label":"S", "x":2.75, "y":3.25},
{ "matrix": [3, 3], "label":"D", "x":3.75, "y":3.25},
{ "matrix": [3, 4], "label":"F", "x":4.75, "y":3.25},
{ "matrix": [3, 5], "label":"G", "x":5.75, "y":3.25},
{ "matrix": [3, 6], "label":"H", "x":6.75, "y":3.25},
{ "matrix": [3, 7], "label":"J", "x":7.75, "y":3.25},
{ "matrix": [3, 8], "label":"K", "x":8.75, "y":3.25},
{ "matrix": [3, 9], "label":"L", "x":9.75, "y":3.25},
{ "matrix": [3, 10], "label":":", "x":10.75, "y":3.25},
{ "matrix": [3, 11], "label":"\"", "x":11.75, "y":3.25},
{ "matrix": [3, 12], "label":"Enter", "x":12.75, "y":3.25, "w":2.25},
{ "matrix": [3, 14], "label":"Page Down", "x":15.25, "y":3.25},
{ "matrix": [4, 0], "label":"Shift", "x":0, "y":4.25, "w":2.25},
{ "matrix": [4, 1], "label":"Z", "x":2.25, "y":4.25},
{ "matrix": [4, 2], "label":"X", "x":3.25, "y":4.25},
{ "matrix": [4, 3], "label":"C", "x":4.25, "y":4.25},
{ "matrix": [4, 4], "label":"V", "x":5.25, "y":4.25},
{ "matrix": [4, 5], "label":"B", "x":6.25, "y":4.25},
{ "matrix": [4, 6], "label":"N", "x":7.25, "y":4.25},
{ "matrix": [4, 7], "label":"M", "x":8.25, "y":4.25},
{ "matrix": [4, 8], "label":"<", "x":9.25, "y":4.25},
{ "matrix": [4, 9], "label":">", "x":10.25, "y":4.25},
{ "matrix": [4, 10], "label":"?", "x":11.25, "y":4.25},
{ "matrix": [4, 11], "label":"Shift", "x":12.25, "y":4.25, "w":1.75},
{ "matrix": [4, 13], "label":"\u2191", "x":14.25, "y":4.5},
{ "matrix": [5, 0], "label":"Ctrl", "x":0, "y":5.25, "w":1.25},
{ "matrix": [5, 1], "label":"Win", "x":1.25, "y":5.25, "w":1.25},
{ "matrix": [5, 2], "label":"Alt", "x":2.5, "y":5.25, "w":1.25},
{ "matrix": [5, 5], "label":" ", "x":3.75, "y":5.25, "w":6.25},
{ "matrix": [5, 8], "label":"Alt", "x":10, "y":5.25},
{ "matrix": [5, 9], "label":"Fn", "x":11, "y":5.25},
{ "matrix": [5, 10], "label":"Ctrl", "x":12, "y":5.25},
{ "matrix": [5, 12], "label":"\u2190", "x":13.25, "y":5.5},
{ "matrix": [5, 13], "label":"\u2193", "x":14.25, "y":5.5},
{ "matrix": [5, 14], "label":"\u2192", "x":15.25, "y":5.5}
]
}
},
"rgb_matrix": {
"layout": [
{ "flags": 2, "x": 2, "y": 0 },
{ "flags": 2, "x": 22, "y": 0 },
{ "flags": 2, "x": 42, "y": 0 },
{ "flags": 2, "x": 62, "y": 0 },
{ "flags": 2, "x": 82, "y": 0 },
{ "flags": 2, "x": 102, "y": 0 },
{ "flags": 2, "x": 122, "y": 0 },
{ "flags": 2, "x": 142, "y": 0 },
{ "flags": 2, "x": 162, "y": 0 },
{ "flags": 2, "x": 182, "y": 0 },
{ "flags": 2, "x": 202, "y": 0 },
{ "flags": 2, "x": 222, "y": 0 },
{ "flags": 2, "x": 0, "y": 7 },
{ "flags": 4, "matrix": [0, 0], "x": 6, "y": 8 },
{ "flags": 4, "matrix": [0, 1], "x": 24, "y": 8 },
{ "flags": 4, "matrix": [0, 2], "x": 37, "y": 8 },
{ "flags": 4, "matrix": [0, 3], "x": 51, "y": 8 },
{ "flags": 4, "matrix": [0, 4], "x": 66, "y": 8 },
{ "flags": 4, "matrix": [0, 5], "x": 82, "y": 8 },
{ "flags": 4, "matrix": [0, 6], "x": 96, "y": 8 },
{ "flags": 4, "matrix": [0, 7], "x": 110, "y": 8 },
{ "flags": 4, "matrix": [0, 8], "x": 124, "y": 8 },
{ "flags": 4, "matrix": [0, 9], "x": 141, "y": 8 },
{ "flags": 4, "matrix": [0, 10], "x": 155, "y": 8 },
{ "flags": 4, "matrix": [0, 11], "x": 169, "y": 8 },
{ "flags": 4, "matrix": [0, 12], "x": 182, "y": 8 },
{ "flags": 4, "matrix": [0, 13], "x": 199, "y": 8 },
{ "flags": 2, "x": 224, "y": 4 },
{ "flags": 2, "x": 0, "y": 12 },
{ "flags": 4, "matrix": [1, 0], "x": 6, "y": 20 },
{ "flags": 4, "matrix": [1, 1], "x": 20, "y": 20 },
{ "flags": 4, "matrix": [1, 2], "x": 34, "y": 20 },
{ "flags": 4, "matrix": [1, 3], "x": 48, "y": 20 },
{ "flags": 4, "matrix": [1, 4], "x": 62, "y": 20 },
{ "flags": 4, "matrix": [1, 5], "x": 75, "y": 20 },
{ "flags": 4, "matrix": [1, 6], "x": 90, "y": 20 },
{ "flags": 4, "matrix": [1, 7], "x": 103, "y": 20 },
{ "flags": 4, "matrix": [1, 8], "x": 117, "y": 20 },
{ "flags": 4, "matrix": [1, 9], "x": 130, "y": 20 },
{ "flags": 4, "matrix": [1, 10], "x": 144, "y": 20 },
{ "flags": 4, "matrix": [1, 11], "x": 158, "y": 20 },
{ "flags": 4, "matrix": [1, 12], "x": 170, "y": 20 },
{ "flags": 4, "matrix": [1, 13], "x": 192, "y": 20 },
{ "flags": 4, "matrix": [1, 14], "x": 217, "y": 20 },
{ "flags": 2, "x": 224, "y": 12 },
{ "flags": 2, "x": 0, "y": 22 },
{ "flags": 4, "matrix": [2, 0], "x": 10, "y": 30 },
{ "flags": 4, "matrix": [2, 1], "x": 27, "y": 30 },
{ "flags": 4, "matrix": [2, 2], "x": 41, "y": 30 },
{ "flags": 4, "matrix": [2, 3], "x": 54, "y": 30 },
{ "flags": 4, "matrix": [2, 4], "x": 69, "y": 30 },
{ "flags": 4, "matrix": [2, 5], "x": 82, "y": 30 },
{ "flags": 4, "matrix": [2, 6], "x": 96, "y": 30 },
{ "flags": 4, "matrix": [2, 7], "x": 110, "y": 30 },
{ "flags": 4, "matrix": [2, 8], "x": 123, "y": 30 },
{ "flags": 4, "matrix": [2, 9], "x": 138, "y": 30 },
{ "flags": 4, "matrix": [2, 10], "x": 151, "y": 30 },
{ "flags": 4, "matrix": [2, 11], "x": 165, "y": 30 },
{ "flags": 4, "matrix": [2, 12], "x": 179, "y": 30 },
{ "flags": 4, "matrix": [2, 13], "x": 196, "y": 30 },
{ "flags": 4, "matrix": [2, 14], "x": 217, "y": 30 },
{ "flags": 2, "x": 224, "y": 22 },
{ "flags": 4, "matrix": [3, 0], "x": 11, "y": 40 },
{ "flags": 4, "matrix": [3, 1], "x": 30, "y": 40 },
{ "flags": 4, "matrix": [3, 2], "x": 44, "y": 40 },
{ "flags": 4, "matrix": [3, 3], "x": 57, "y": 40 },
{ "flags": 4, "matrix": [3, 4], "x": 72, "y": 40 },
{ "flags": 4, "matrix": [3, 5], "x": 85, "y": 40 },
{ "flags": 4, "matrix": [3, 6], "x": 99, "y": 40 },
{ "flags": 4, "matrix": [3, 7], "x": 113, "y": 40 },
{ "flags": 4, "matrix": [3, 8], "x": 126, "y": 40 },
{ "flags": 4, "matrix": [3, 9], "x": 140, "y": 40 },
{ "flags": 4, "matrix": [3, 10], "x": 154, "y": 40 },
{ "flags": 4, "matrix": [3, 11], "x": 169, "y": 40 },
{ "flags": 4, "matrix": [3, 12], "x": 190, "y": 40 },
{ "flags": 4, "matrix": [3, 14], "x": 217, "y": 40 },
{ "flags": 2, "x": 0, "y": 42 },
{ "flags": 4, "matrix": [4, 0], "x": 15, "y": 50 },
{ "flags": 4, "matrix": [4, 1], "x": 37, "y": 50 },
{ "flags": 4, "matrix": [4, 2], "x": 51, "y": 50 },
{ "flags": 4, "matrix": [4, 3], "x": 66, "y": 50 },
{ "flags": 4, "matrix": [4, 4], "x": 79, "y": 50 },
{ "flags": 4, "matrix": [4, 5], "x": 93, "y": 50 },
{ "flags": 4, "matrix": [4, 6], "x": 107, "y": 50 },
{ "flags": 4, "matrix": [4, 7], "x": 120, "y": 50 },
{ "flags": 4, "matrix": [4, 8], "x": 134, "y": 50 },
{ "flags": 4, "matrix": [4, 9], "x": 148, "y": 50 },
{ "flags": 4, "matrix": [4, 10], "x": 161, "y": 50 },
{ "flags": 4, "matrix": [4, 11], "x": 180, "y": 50 },
{ "flags": 4, "matrix": [4, 13], "x": 202, "y": 53 },
{ "flags": 2, "x": 224, "y": 42 },
{ "flags": 2, "x": 0, "y": 51 },
{ "flags": 4, "matrix": [5, 0], "x": 8, "y": 60 },
{ "flags": 4, "matrix": [5, 1], "x": 26, "y": 60 },
{ "flags": 4, "matrix": [5, 2], "x": 42, "y": 60 },
{ "flags": 4, "matrix": [5, 5], "x": 94, "y": 60 },
{ "flags": 4, "matrix": [5, 8], "x": 144, "y": 60 },
{ "flags": 4, "matrix": [5, 9], "x": 158, "y": 60 },
{ "flags": 4, "matrix": [5, 10], "x": 172, "y": 60 },
{ "flags": 4, "matrix": [5, 12], "x": 189, "y": 63 },
{ "flags": 4, "matrix": [5, 13], "x": 202, "y": 63 },
{ "flags": 4, "matrix": [5, 14], "x": 217, "y": 63 },
{ "flags": 2, "x": 224, "y": 51 },
{ "flags": 2, "x": 9, "y": 64 },
{ "flags": 2, "x": 38, "y": 64 },
{ "flags": 2, "x": 69, "y": 64 },
{ "flags": 2, "x": 96, "y": 64 },
{ "flags": 2, "x": 125, "y": 64 },
{ "flags": 2, "x": 154, "y": 64 },
{ "flags": 2, "x": 182, "y": 64 },
{ "flags": 2, "x": 211, "y": 64 }
]
},
"encoder": {
"rotary": [
{ "pin_a": "B5", "pin_b": "B4", "resolution": 2 }
]
}
}

View file

@ -0,0 +1,52 @@
// Copyright 2022 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┐┌───┐
* │Esc││F1 │F2 │F3 │F4 ││F5 │F6 │F7 │F8 ││F9 │F10│F11│F12││PSc││ │
* └───┘└───┴───┴───┴───┘└───┴───┴───┴───┴└───┴───┴───┴───┘└───┘└───┘
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐┌───┐
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ Backsp││Del│
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤├───┤
* │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ ││PgU│
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤├───┤
* │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter ││PgD│
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┘└───┘
* │ Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift│┌───┐
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬┴──┬───┘│ ↑ │
* │Ctrl│GUI │Alt │ │Alt│GUI│Ctl│┌───┼───┼───┐
* └────┴────┴────┴────────────────────────┴───┴───┴───┘│ ← │ ↓ │ → │
* └───┴───┴───┘
*/
[0] = LAYOUT(
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_MUTE,
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_DEL,
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_BSLS, KC_PGUP,
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_ENT, KC_PGDN,
KC_LSFT, 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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_BOOT, _______,
_______, RGB_TOG, RGB_VAI, RGB_SPI, RGB_HUI, RGB_SAI, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME,
_______, RGB_MOD, RGB_VAD, RGB_SPD, RGB_HUD, RGB_SAD, _______, _______, _______, _______, _______, _______, _______, KC_END,
_______, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW,_______, NK_TOGG, _______, _______, _______, _______, _______, _______,
_______, _______, _______, EE_CLR, _______, _______, _______, _______, _______, _______
)
};
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[1] = { ENCODER_CCW_CW(KC_MPRV, KC_MNXT) }
};
#endif
void rgb_matrix_indicators_user(void) {
if (host_keyboard_led_state().caps_lock) {
rgb_matrix_set_color(62, RGB_WHITE);
}
}

View file

@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes

View file

@ -0,0 +1,136 @@
// Copyright 2022 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
enum custom_keycodes {
TEST_1 = SAFE_RANGE,
TEST_2,
TEST_3,
TEST_4,
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┐┌───┐
* │Esc││F1 │F2 │F3 │F4 ││F5 │F6 │F7 │F8 ││F9 │F10│F11│F12││PSc││ │
* └───┘└───┴───┴───┴───┘└───┴───┴───┴───┴└───┴───┴───┴───┘└───┘└───┘
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐┌───┐
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ Backsp││Del│
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤├───┤
* │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ ││PgU│
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤├───┤
* │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter ││PgD│
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┘└───┘
* │ Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift│┌───┐
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬┴──┬───┘│ ↑ │
* │Ctrl│GUI │Alt │ │Alt│GUI│Ctl│┌───┼───┼───┐
* └────┴────┴────┴────────────────────────┴───┴───┴───┘│ ← │ ↓ │ → │
* └───┴───┴───┘
*/
[0] = LAYOUT(
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_MUTE,
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_DEL,
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_BSLS, KC_PGUP,
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_ENT, KC_PGDN,
KC_LSFT, 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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_BOOT, _______,
_______, RGB_TOG, RGB_VAI, RGB_SPI, RGB_HUI, RGB_SAI, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME,
_______, RGB_MOD, RGB_VAD, RGB_SPD, RGB_HUD, RGB_SAD, _______, _______, _______, _______, _______, _______, _______, KC_END,
_______, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW,_______, NK_TOGG, _______, _______, _______, _______, _______, _______,
MO(2), _______, _______, EE_CLR, _______, _______, _______, _______, _______, _______
),
[2] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, TEST_1, TEST_2, TEST_3, TEST_4, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, AG_TOGG, _______, _______, _______, CL_TOGG, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[1] = { ENCODER_CCW_CW(KC_MPRV, KC_MNXT) },
[2] = { ENCODER_CCW_CW(_______, _______) }
};
#endif
static bool test_mode = false;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (!record->event.pressed) {
switch (keycode) {
case TEST_1:
rgb_matrix_mode_noeeprom(RGB_MATRIX_SOLID_COLOR);
rgb_matrix_sethsv_noeeprom(HSV_RED);
test_mode = true;
break;
case TEST_2:
rgb_matrix_mode_noeeprom(RGB_MATRIX_SOLID_COLOR);
rgb_matrix_sethsv_noeeprom(HSV_GREEN);
test_mode = true;
break;
case TEST_3:
rgb_matrix_mode_noeeprom(RGB_MATRIX_SOLID_COLOR);
rgb_matrix_sethsv_noeeprom(HSV_BLUE);
test_mode = true;
break;
case TEST_4:
rgb_matrix_mode_noeeprom(RGB_MATRIX_SOLID_COLOR);
rgb_matrix_sethsv_noeeprom(HSV_WHITE);
test_mode = true;
break;
case RGB_TOG:
switch (rgb_matrix_get_flags()) {
case LED_FLAG_ALL:
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR);
break;
case (LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR):
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
break;
case LED_FLAG_UNDERGLOW:
rgb_matrix_set_flags(LED_FLAG_NONE);
break;
default:
rgb_matrix_set_flags(LED_FLAG_ALL);
break;
}
return false;
}
}
return true;
};
void rgb_matrix_indicators_user(void) {
if (host_keyboard_led_state().caps_lock) {
rgb_matrix_set_color(62, RGB_WHITE);
} else if ((rgb_matrix_get_flags() & (LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR)) == 0) {
rgb_matrix_set_color(62, RGB_OFF);
}
if (get_highest_layer(layer_state) == 2) {
if (!test_mode) {
rgb_matrix_set_color_all(RGB_OFF);
}
if (keymap_config.swap_lalt_lgui) {
rgb_matrix_set_color(55, RGB_GREEN);
} else {
rgb_matrix_set_color(55, RGB_RED);
}
if (keymap_config.swap_control_capslock) {
rgb_matrix_set_color(59, RGB_GREEN);
} else {
rgb_matrix_set_color(59, RGB_RED);
}
} else if ((rgb_matrix_get_flags() & (LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR)) == 0) {
rgb_matrix_set_color(55, RGB_OFF);
rgb_matrix_set_color(59, RGB_OFF);
}
}

View file

@ -0,0 +1 @@
# The stock firmware the keyboard ships with

View file

@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes

View file

@ -0,0 +1,5 @@
// Copyright 2022 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define DYNAMIC_KEYMAP_LAYER_COUNT 8

View file

@ -0,0 +1,79 @@
// Copyright 2022 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┬───┬───┬───┐┌───┐┌───┐
* │Esc││F1 │F2 │F3 │F4 ││F5 │F6 │F7 │F8 ││F9 │F10│F11│F12││PSc││ │
* └───┘└───┴───┴───┴───┘└───┴───┴───┴───┴└───┴───┴───┴───┘└───┘└───┘
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐┌───┐
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ Backsp││Del│
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤├───┤
* │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ ││PgU│
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤├───┤
* │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter ││PgD│
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┘└───┘
* │ Shift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift│┌───┐
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬┴──┬───┘│ ↑ │
* │Ctrl│GUI │Alt │ │Alt│GUI│Ctl│┌───┼───┼───┐
* └────┴────┴────┴────────────────────────┴───┴───┴───┘│ ← │ ↓ │ → │
* └───┴───┴───┘
*/
[0] = LAYOUT(
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_MUTE,
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_DEL,
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_BSLS, KC_PGUP,
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_ENT, KC_PGDN,
KC_LSFT, 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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_BOOT, _______,
_______, RGB_TOG, RGB_VAI, RGB_SPI, RGB_HUI, RGB_SAI, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME,
_______, RGB_MOD, RGB_VAD, RGB_SPD, RGB_HUD, RGB_SAD, _______, _______, _______, _______, _______, _______, _______, KC_END,
_______, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW,_______, NK_TOGG, _______, _______, _______, _______, _______, _______,
MO(2), _______, _______, EE_CLR, _______, _______, _______, _______, _______, _______
),
[2] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, AG_TOGG, _______, _______, _______, CL_TOGG, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[1] = { ENCODER_CCW_CW(KC_MPRV, KC_MNXT) },
[2] = { ENCODER_CCW_CW(_______, _______) }
};
#endif
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (!record->event.pressed) {
switch (keycode) {
case RGB_TOG:
switch (rgb_matrix_get_flags()) {
case LED_FLAG_ALL:
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR);
break;
case (LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR):
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
break;
case LED_FLAG_UNDERGLOW:
rgb_matrix_set_flags(LED_FLAG_NONE);
break;
default:
rgb_matrix_set_flags(LED_FLAG_ALL);
break;
}
return false;
}
}
return true;
};

View file

@ -0,0 +1,2 @@
VIA_ENABLE = yes
ENCODER_MAP_ENABLE = yes

View file

@ -0,0 +1,14 @@
// Copyright 2022 Massdrop, Inc.
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include_next <mcuconf.h>
#undef STM32_PLLM_VALUE
#define STM32_PLLM_VALUE 16
#undef STM32_PREDIV_VALUE
#define STM32_PREDIV_VALUE 2
#undef STM32_I2C_USE_I2C1
#define STM32_I2C_USE_I2C1 TRUE

View file

@ -0,0 +1,24 @@
# SENSE75
![SENSE75](https://massdrop-s3.imgix.net/img_thread/1660887363422.771277068120058315243585-5419copycrop.jpg?auto=format&fm=jpg&fit=max&w=500&h=868&dpr=2)
* Keyboard Maintainer: [zvecr](https://github.com/zvecr)
* Hardware Availability: <https://drop.com/buy/drop-sense75-mechanical-keyboard>
Make example for this keyboard (after setting up your build environment):
make drop/sense75:default
Flashing example for this keyboard:
make drop/sense75: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 key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: Press and hold the button under the space bar
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available

Some files were not shown because too many files have changed in this diff Show more