From f6e9023db39608abff483dfa0a923a4a219ee6f2 Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Fri, 21 Oct 2022 12:11:20 +0800 Subject: [PATCH 01/19] add kbdpadmk3 --- keyboards/kbdfans/kbdpad/mk3/config.h | 62 +++++++ keyboards/kbdfans/kbdpad/mk3/info.json | 54 ++++++ .../kbdpad/mk3/keymaps/default/keymap.c | 28 ++++ .../kbdpad/mk3/keymaps/default/readme.md | 3 + .../mk3/keymaps/iracing_replay/keymap.c | 156 ++++++++++++++++++ .../mk3/keymaps/iracing_replay/readme.md | 17 ++ .../mk3/keymaps/iracing_replay/rules.mk | 1 + .../kbdpad/mk3/keymaps/tester/keymap.c | 28 ++++ .../kbdpad/mk3/keymaps/tester/readme.md | 9 + .../kbdfans/kbdpad/mk3/keymaps/via/keymap.c | 52 ++++++ .../kbdfans/kbdpad/mk3/keymaps/via/rules.mk | 1 + keyboards/kbdfans/kbdpad/mk3/mk3.c | 51 ++++++ keyboards/kbdfans/kbdpad/mk3/mk3.h | 43 +++++ keyboards/kbdfans/kbdpad/mk3/readme.md | 23 +++ keyboards/kbdfans/kbdpad/mk3/rules.mk | 1 + 15 files changed, 529 insertions(+) create mode 100644 keyboards/kbdfans/kbdpad/mk3/config.h create mode 100644 keyboards/kbdfans/kbdpad/mk3/info.json create mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c create mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/default/readme.md create mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/keymap.c create mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/readme.md create mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/rules.mk create mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/tester/keymap.c create mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/tester/readme.md create mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c create mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/via/rules.mk create mode 100644 keyboards/kbdfans/kbdpad/mk3/mk3.c create mode 100644 keyboards/kbdfans/kbdpad/mk3/mk3.h create mode 100644 keyboards/kbdfans/kbdpad/mk3/readme.md create mode 100644 keyboards/kbdfans/kbdpad/mk3/rules.mk diff --git a/keyboards/kbdfans/kbdpad/mk3/config.h b/keyboards/kbdfans/kbdpad/mk3/config.h new file mode 100644 index 000000000000..fac83aa6c102 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/config.h @@ -0,0 +1,62 @@ +/* Copyright 2022 DZTECH + * + * 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 . + */ +#pragma once +#include "config_common.h" + +#define MATRIX_ROW_PINS { F4, C7, C6, B6, B5, D7 } +#define MATRIX_COL_PINS { F7, F6, D5, D3 } + +#define RGB_DI_PIN F5 // RGB LED pin +#define RGBLED_NUM 21 // Number of LEDs +#define DRIVER_LED_TOTAL 21 // Number of LEDs +#define RGB_DISABLE_WHEN_USB_SUSPENDED +#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128 +#define RGB_MATRIX_LED_FLUSH_LIMIT 16 +#define RGB_MATRIX_KEYPRESSES + +#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_PINWHEEL_SAT +#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT +#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_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_HUE_PENDULUM +#define ENABLE_RGB_MATRIX_HUE_WAVE +#define ENABLE_RGB_MATRIX_PIXEL_RAIN +#define ENABLE_RGB_MATRIX_PIXEL_FLOW +#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL +#define ENABLE_RGB_MATRIX_TYPING_HEATMAP +#define ENABLE_RGB_MATRIX_DIGITAL_RAIN +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS +#define ENABLE_RGB_MATRIX_SPLASH +#define ENABLE_RGB_MATRIX_MULTISPLASH +#define ENABLE_RGB_MATRIX_SOLID_SPLASH + diff --git a/keyboards/kbdfans/kbdpad/mk3/info.json b/keyboards/kbdfans/kbdpad/mk3/info.json new file mode 100644 index 000000000000..84ed3b8496d7 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/info.json @@ -0,0 +1,54 @@ +{ + "manufacturer": "kbdfans", + "keyboard_name": "Kbdpadmk3", + "maintainer": "kbdfans", + "bootloader": "atmel-dfu", + "diode_direction": "COL2ROW", + "features": { + "bootmagic": true, + "command": false, + "console": false, + "extrakey": true, + "mousekey": false, + "nkro": true, + "rgb_matrix":true + }, + "processor": "atmega32u4", + "usb": { + "device_version": "3.0.0", + "pid": "0x0012", + "vid": "0x4B42" + } + "layouts" :{ + "LAYOUT_numpad_6x4": { + "layout": [ + {"x":0, "y":0}, + {"x":1, "y":0}, + {"x":2, "y":0}, + {"x":3, "y":0}, + + {"x":0, "y":1}, + {"x":1, "y":1}, + {"x":2, "y":1}, + {"x":3, "y":1}, + + {"x":0, "y":2}, + {"x":1, "y":2}, + {"x":2, "y":2}, + + {"x":0, "y":3}, + {"x":1, "y":3}, + {"x":2, "y":3}, + {"x":3, "y":2, "h":2}, + + {"x":0, "y":4}, + {"x":1, "y":4}, + {"x":2, "y":4}, + + {"x":0, "y":5, "w":2}, + {"x":2, "y":5}, + {"x":3, "y":4, "h":2} + ] + } + } +} diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c new file mode 100644 index 000000000000..3213eca482eb --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c @@ -0,0 +1,28 @@ +/* Copyright 2019 Ryota Goto + * + * 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 . + */ +#include QMK_KEYBOARD_H + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_ortho_6x4( /* Base */ + KC_ESC, KC_LCTL, KC_LALT, KC_BSPC, + KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, + KC_P7, KC_P8, KC_P9, KC_PPLS, + KC_P4, KC_P5, KC_P6, KC_PPLS, + KC_P1, KC_P2, KC_P3, KC_PENT, + KC_P0, KC_P0, KC_PDOT, KC_PENT + ), +}; diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/default/readme.md b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/readme.md new file mode 100644 index 000000000000..71ff8e0025d9 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/readme.md @@ -0,0 +1,3 @@ +# The default keymap for KBDPAD MKII + +Just a numpad. Top row from Cherry G80-3700 \ No newline at end of file diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/keymap.c new file mode 100644 index 000000000000..39ebb77ff844 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/keymap.c @@ -0,0 +1,156 @@ +/* Copyright 2021 Aaron VerDow + * + * 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 . + */ + +#include QMK_KEYBOARD_H + +// Layer declarations +enum { + DEF_LAYER, + MOD_LAYER, +}; + +// Tap Dance declarations +enum { + TD_CAR, + TD_PRINT, + TD_CAM_UP, + TD_CAM_DN +}; + +void camera_number(uint16_t tens, uint16_t ones) { +/* Switch to a specific camera number + * + * I haven't been able to find official docs for this. + * + * To determine the number click the dropdown in UI and + * count from the top. The list can change with updates. + * + * Shift must be held between both * presses or the combo + * won't be recognized. + */ + + register_code16(KC_LSFT); + tap_code(KC_8); + tap_code(KC_8); + unregister_code16(KC_LSFT); + tap_code(tens); + tap_code(ones); + tap_code(KC_ENT); +} + +void cam_up(qk_tap_dance_state_t *state, void *user_data) { + switch (state->count) { + case 1: + tap_code(KC_C); // tap once for next cam + break; + case 2: + camera_number(KC_2,KC_0); // tap twice for reverse chase cam + break; + } +} + +void cam_down(qk_tap_dance_state_t *state, void *user_data) { + switch (state->count) { + case 1: + tap_code16(LSFT(KC_C)); // tap once for prev cam + break; + case 2: + camera_number(KC_1,KC_8); // tap twice for chase cam + break; + } +} + +// Tap Dance definitions +qk_tap_dance_action_t tap_dance_actions[] = { + [TD_CAR] = ACTION_TAP_DANCE_DOUBLE( + LSFT(KC_V), // tap once for prev car + LCTL(KC_V) // tap twice for my car + ), + [TD_PRINT] = ACTION_TAP_DANCE_DOUBLE( + LCTL(LALT(LSFT(KC_S))), // tap once for iRacing screenshot (must be enabled in options) + LGUI(KC_PSCR) // tap twice for Windows print screen and save to file + ), + [TD_CAM_UP] = ACTION_TAP_DANCE_FN(cam_up), + [TD_CAM_DN] = ACTION_TAP_DANCE_FN(cam_down) +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [DEF_LAYER] = LAYOUT_ortho_6x4( /* Base */ + + TD(TD_CAM_UP), // next cam, double tap for reverse chase cam + KC_V, // next car + LSFT(KC_P3), // next lap + LCTL(KC_P3), // next inc + + TD(TD_CAM_DN), // prev cam, double tap for chase cam + TD(TD_CAR), // prev car, double tap for my car + LSFT(KC_P1), // prev lap + LCTL(KC_P1), // prev inc + + LSFT(KC_P4), // rewind + KC_P5, // play/pause + LSFT(KC_P6), // fast forward + KC_P8, // slow mo + + KC_P4, // prev frame + KC_W, // up + KC_P6, // next frame + TD(TD_PRINT), // print screen + + KC_A, // left + KC_S, // down + KC_D, // right + LALT(KC_K), // toggle click and drag ui elements (in car) + + KC_LCTL, // ctrl + KC_LALT, // alt + LCTL(KC_F12), // camera tool + LT(MOD_LAYER, KC_SPACE) // press once for UI, hold for MOD layer + ), + + [MOD_LAYER] = LAYOUT_ortho_6x4( /* Base */ + + KC_B, // next sub cam + KC_PGUP, // next driver cam + LCTL(KC_P6), // next session + KC_P7, // start + + LSFT(KC_B), // prev sub cam + KC_PGDOWN, // prev driver cam + LCTL(KC_P4), // prev session + KC_P1, // end + + KC_RBRC, // FOV up + KC_EQL, // step factor up + _______, + _______, + + KC_LBRC, // FOV down + KC_MINS, // step factor down + _______, + _______, + + _______, + _______, + _______, + _______, + + _______, + LALT(KC_M), // cycle aim + RALT(KC_ENTER), // fullscreen (unreliable) + _______ + ), +}; diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/readme.md b/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/readme.md new file mode 100644 index 000000000000..a574499c6b3f --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/readme.md @@ -0,0 +1,17 @@ +# iRacing Replay Tool + +![](https://imgur.com/0948eBGh.jpg) + +Replay/camera tool for iRacing. This uses the default keybindings for the game so nothing should need to be mapped. This makes replays much easier to view in VR and makes waiting through heats a lot more enjoyable. + +To make full use of the arrow keys open the camera tool (you can close the UI after) and optionally switch the AIM to static. + +The code to generate stl files for the keycap set are ![available here.](https://github.com/AaronVerDow/KeyV2/blob/numpad/src/layouts/numpad/iracing.scad) + +Other notes: +* Hold MOD (UI key) to access features on the front of +* Double tap car down is a shortcut for your car +* Double tap cam down is a shortcut for chase cam +* Double tap cam up is a shortcut for reverse chase cam +* The record button takes a screenshot using iRacing. Double tap record button to auto save a screenshot using Windows. +* The key above UI is unassigned diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/rules.mk b/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/rules.mk new file mode 100644 index 000000000000..e5ddcae8d927 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/rules.mk @@ -0,0 +1 @@ +TAP_DANCE_ENABLE = yes diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/tester/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/tester/keymap.c new file mode 100644 index 000000000000..e0c56c167d4e --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/tester/keymap.c @@ -0,0 +1,28 @@ +/* Copyright 2019 Ryota Goto + * + * 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 . + */ +#include QMK_KEYBOARD_H + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_ortho_6x4( /* Base */ + BL_TOGG, BL_STEP, RGB_TOG, RGB_MOD, + KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, + KC_P7, KC_P8, KC_P9, KC_PPLS, + KC_P4, KC_P5, KC_P6, KC_PPLS, + KC_P1, KC_P2, KC_P3, KC_PENT, + KC_P0, KC_P0, KC_PDOT, KC_PENT + ), +}; diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/tester/readme.md b/keyboards/kbdfans/kbdpad/mk3/keymaps/tester/readme.md new file mode 100644 index 000000000000..3cd1e9b67b39 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/tester/readme.md @@ -0,0 +1,9 @@ +# The testing keymap for KBDPAD MKII + +Turns top row into LED tester. + +From left to right: +Backlight Toggle +Backlight Step +RGB Toggle +RGB Mode Cycle \ No newline at end of file diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c new file mode 100644 index 000000000000..d35a2f8c6931 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c @@ -0,0 +1,52 @@ +/* Copyright 2019 Ryota Goto + * + * 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 . + */ +#include QMK_KEYBOARD_H + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_numpad_6x4( /* Base */ + KC_ESC, KC_LCTL, KC_LALT, KC_BSPC, + KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, + KC_P7, KC_P8, KC_P9, KC_PPLS, + KC_P4, KC_P5, KC_P6, + KC_P1, KC_P2, KC_P3, KC_PENT, + KC_P0, KC_PDOT + ), + [1] = LAYOUT_numpad_6x4( + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, + _______, _______, _______, _______, + _______, _______ + ), + [2] = LAYOUT_numpad_6x4( + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, + _______, _______, _______, _______, + _______, _______ + ), + [3] = LAYOUT_numpad_6x4( + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, + _______, _______, _______, _______, + _______, _______ + ), +}; diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/via/rules.mk b/keyboards/kbdfans/kbdpad/mk3/keymaps/via/rules.mk new file mode 100644 index 000000000000..1e5b99807cb7 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/via/rules.mk @@ -0,0 +1 @@ +VIA_ENABLE = yes diff --git a/keyboards/kbdfans/kbdpad/mk3/mk3.c b/keyboards/kbdfans/kbdpad/mk3/mk3.c new file mode 100644 index 000000000000..602e1f17f2a6 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/mk3.c @@ -0,0 +1,51 @@ +/* Copyright 2022 DZTECH + * + * 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 . + */ +#include "mk3.h" + +#ifdef RGB_MATRIX_ENABLE +led_config_t g_led_config = { { + { 0, 1, 2, 3 }, + { 7, 6, 5, 4 }, + { 8, 9, 10, 11 }, + { 14, 13, 12, NO_LED }, + { 15, 16, 17, 18 }, + { 20, NO_LED, 19,NO_LED } +}, { + {0, 0}, {75, 0}, {150, 0},{224, 0}, + {224, 12.8}, {150, 12.8},{75, 12.8},{0, 12.8}, + {0, 25.6}, {75, 25.6},{150, 25.6},{224, 32}, + {150, 38.4}, {75, 38.4},{0, 38.4}, + {0, 51.2}, {75, 51.2},{150, 51.24},{224, 57.6}, + {150, 64}, {37.5, 64} +}, { +4,4,4,4, +4,4,4,4, +4,4,4,4, +4,4,4, +4,4,4,4, +4,4 +} }; + + +__attribute__ ((weak)) +void rgb_matrix_indicators_user(void) +{ + if (IS_HOST_LED_ON(USB_LED_NUM_LOCK)) + { + rgb_matrix_set_color(7, 0xFF, 0xFF, 0xFF); + } +} +#endif diff --git a/keyboards/kbdfans/kbdpad/mk3/mk3.h b/keyboards/kbdfans/kbdpad/mk3/mk3.h new file mode 100644 index 000000000000..0fa0f88243c3 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/mk3.h @@ -0,0 +1,43 @@ +/* Copyright 2022 DZTECH + * + * 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 . + */ +#pragma once + +#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. + */ +#define LAYOUT_numpad_6x4( \ + K00, K01, K02, K03, \ + K10, K11, K12, K13, \ + K20, K21, K22, K23, \ + K30, K31, K32, \ + K40, K41, K42, K43, \ + K50, K52 \ +) \ +{ \ + { K00, K01, K02, K03 }, \ + { K10, K11, K12, K13 }, \ + { K20, K21, K22, K23 }, \ + { K30, K31, K32, KC_NO}, \ + { K40, K41, K42, K43 }, \ + { K50, KC_NO, K52, KC_NO } \ +} diff --git a/keyboards/kbdfans/kbdpad/mk3/readme.md b/keyboards/kbdfans/kbdpad/mk3/readme.md new file mode 100644 index 000000000000..c79c574ebb12 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/readme.md @@ -0,0 +1,23 @@ +# KBDPAD MK3 + +An RGB hotswap 21key numpad. + +* Keyboard Maintainer: [moyi4681](https://github.com/moyi4681) +* Hardware Supported: KBDFANS +* Hardware Availability: [kbdfans](https://kbdfans.myshopify.com/) + + +## Bootloader + +Enter the bootloader in 3 ways: + +* **Bootmagic reset**: Hold down the key at (0,0) in the matrix +* **Physical reset button**: Briefly press the button on the back of the PCB +* **Keycode in layout**: Press the key mapped to `RESET` if it is available + + +Make example for this keyboard (after setting up your build environment): + + make kbdfans/kbdpad/mk3:default + +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/kbdfans/kbdpad/mk3/rules.mk b/keyboards/kbdfans/kbdpad/mk3/rules.mk new file mode 100644 index 000000000000..32afd2163565 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk3/rules.mk @@ -0,0 +1 @@ +RGB_MATRIX_DRIVER = WS2812 From 96e504f90c337e271ab1b616ef876e891996b736 Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Fri, 21 Oct 2022 12:12:39 +0800 Subject: [PATCH 02/19] del unused keymap --- .../mk3/keymaps/iracing_replay/keymap.c | 156 ------------------ .../mk3/keymaps/iracing_replay/readme.md | 17 -- .../mk3/keymaps/iracing_replay/rules.mk | 1 - .../kbdpad/mk3/keymaps/tester/keymap.c | 28 ---- .../kbdpad/mk3/keymaps/tester/readme.md | 9 - 5 files changed, 211 deletions(-) delete mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/keymap.c delete mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/readme.md delete mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/rules.mk delete mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/tester/keymap.c delete mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/tester/readme.md diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/keymap.c deleted file mode 100644 index 39ebb77ff844..000000000000 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/keymap.c +++ /dev/null @@ -1,156 +0,0 @@ -/* Copyright 2021 Aaron VerDow - * - * 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 . - */ - -#include QMK_KEYBOARD_H - -// Layer declarations -enum { - DEF_LAYER, - MOD_LAYER, -}; - -// Tap Dance declarations -enum { - TD_CAR, - TD_PRINT, - TD_CAM_UP, - TD_CAM_DN -}; - -void camera_number(uint16_t tens, uint16_t ones) { -/* Switch to a specific camera number - * - * I haven't been able to find official docs for this. - * - * To determine the number click the dropdown in UI and - * count from the top. The list can change with updates. - * - * Shift must be held between both * presses or the combo - * won't be recognized. - */ - - register_code16(KC_LSFT); - tap_code(KC_8); - tap_code(KC_8); - unregister_code16(KC_LSFT); - tap_code(tens); - tap_code(ones); - tap_code(KC_ENT); -} - -void cam_up(qk_tap_dance_state_t *state, void *user_data) { - switch (state->count) { - case 1: - tap_code(KC_C); // tap once for next cam - break; - case 2: - camera_number(KC_2,KC_0); // tap twice for reverse chase cam - break; - } -} - -void cam_down(qk_tap_dance_state_t *state, void *user_data) { - switch (state->count) { - case 1: - tap_code16(LSFT(KC_C)); // tap once for prev cam - break; - case 2: - camera_number(KC_1,KC_8); // tap twice for chase cam - break; - } -} - -// Tap Dance definitions -qk_tap_dance_action_t tap_dance_actions[] = { - [TD_CAR] = ACTION_TAP_DANCE_DOUBLE( - LSFT(KC_V), // tap once for prev car - LCTL(KC_V) // tap twice for my car - ), - [TD_PRINT] = ACTION_TAP_DANCE_DOUBLE( - LCTL(LALT(LSFT(KC_S))), // tap once for iRacing screenshot (must be enabled in options) - LGUI(KC_PSCR) // tap twice for Windows print screen and save to file - ), - [TD_CAM_UP] = ACTION_TAP_DANCE_FN(cam_up), - [TD_CAM_DN] = ACTION_TAP_DANCE_FN(cam_down) -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [DEF_LAYER] = LAYOUT_ortho_6x4( /* Base */ - - TD(TD_CAM_UP), // next cam, double tap for reverse chase cam - KC_V, // next car - LSFT(KC_P3), // next lap - LCTL(KC_P3), // next inc - - TD(TD_CAM_DN), // prev cam, double tap for chase cam - TD(TD_CAR), // prev car, double tap for my car - LSFT(KC_P1), // prev lap - LCTL(KC_P1), // prev inc - - LSFT(KC_P4), // rewind - KC_P5, // play/pause - LSFT(KC_P6), // fast forward - KC_P8, // slow mo - - KC_P4, // prev frame - KC_W, // up - KC_P6, // next frame - TD(TD_PRINT), // print screen - - KC_A, // left - KC_S, // down - KC_D, // right - LALT(KC_K), // toggle click and drag ui elements (in car) - - KC_LCTL, // ctrl - KC_LALT, // alt - LCTL(KC_F12), // camera tool - LT(MOD_LAYER, KC_SPACE) // press once for UI, hold for MOD layer - ), - - [MOD_LAYER] = LAYOUT_ortho_6x4( /* Base */ - - KC_B, // next sub cam - KC_PGUP, // next driver cam - LCTL(KC_P6), // next session - KC_P7, // start - - LSFT(KC_B), // prev sub cam - KC_PGDOWN, // prev driver cam - LCTL(KC_P4), // prev session - KC_P1, // end - - KC_RBRC, // FOV up - KC_EQL, // step factor up - _______, - _______, - - KC_LBRC, // FOV down - KC_MINS, // step factor down - _______, - _______, - - _______, - _______, - _______, - _______, - - _______, - LALT(KC_M), // cycle aim - RALT(KC_ENTER), // fullscreen (unreliable) - _______ - ), -}; diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/readme.md b/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/readme.md deleted file mode 100644 index a574499c6b3f..000000000000 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/readme.md +++ /dev/null @@ -1,17 +0,0 @@ -# iRacing Replay Tool - -![](https://imgur.com/0948eBGh.jpg) - -Replay/camera tool for iRacing. This uses the default keybindings for the game so nothing should need to be mapped. This makes replays much easier to view in VR and makes waiting through heats a lot more enjoyable. - -To make full use of the arrow keys open the camera tool (you can close the UI after) and optionally switch the AIM to static. - -The code to generate stl files for the keycap set are ![available here.](https://github.com/AaronVerDow/KeyV2/blob/numpad/src/layouts/numpad/iracing.scad) - -Other notes: -* Hold MOD (UI key) to access features on the front of -* Double tap car down is a shortcut for your car -* Double tap cam down is a shortcut for chase cam -* Double tap cam up is a shortcut for reverse chase cam -* The record button takes a screenshot using iRacing. Double tap record button to auto save a screenshot using Windows. -* The key above UI is unassigned diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/rules.mk b/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/rules.mk deleted file mode 100644 index e5ddcae8d927..000000000000 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/iracing_replay/rules.mk +++ /dev/null @@ -1 +0,0 @@ -TAP_DANCE_ENABLE = yes diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/tester/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/tester/keymap.c deleted file mode 100644 index e0c56c167d4e..000000000000 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/tester/keymap.c +++ /dev/null @@ -1,28 +0,0 @@ -/* Copyright 2019 Ryota Goto - * - * 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 . - */ -#include QMK_KEYBOARD_H - - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT_ortho_6x4( /* Base */ - BL_TOGG, BL_STEP, RGB_TOG, RGB_MOD, - KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, KC_PPLS, - KC_P4, KC_P5, KC_P6, KC_PPLS, - KC_P1, KC_P2, KC_P3, KC_PENT, - KC_P0, KC_P0, KC_PDOT, KC_PENT - ), -}; diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/tester/readme.md b/keyboards/kbdfans/kbdpad/mk3/keymaps/tester/readme.md deleted file mode 100644 index 3cd1e9b67b39..000000000000 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/tester/readme.md +++ /dev/null @@ -1,9 +0,0 @@ -# The testing keymap for KBDPAD MKII - -Turns top row into LED tester. - -From left to right: -Backlight Toggle -Backlight Step -RGB Toggle -RGB Mode Cycle \ No newline at end of file From 7d504567dd0900160bc115af4f93b5a2fd63eb68 Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Fri, 21 Oct 2022 12:14:52 +0800 Subject: [PATCH 03/19] Update keyboards/kbdfans/kbdpad/mk3/mk3.c Co-authored-by: Ryan --- keyboards/kbdfans/kbdpad/mk3/mk3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/mk3.c b/keyboards/kbdfans/kbdpad/mk3/mk3.c index 602e1f17f2a6..051dc382add5 100644 --- a/keyboards/kbdfans/kbdpad/mk3/mk3.c +++ b/keyboards/kbdfans/kbdpad/mk3/mk3.c @@ -43,7 +43,7 @@ led_config_t g_led_config = { { __attribute__ ((weak)) void rgb_matrix_indicators_user(void) { - if (IS_HOST_LED_ON(USB_LED_NUM_LOCK)) + if (host_keyboard_led_state().num_lock) { rgb_matrix_set_color(7, 0xFF, 0xFF, 0xFF); } From 98e1c67d4c759fea7bd1dca1a1f3eeee1fde24d0 Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Fri, 21 Oct 2022 12:22:07 +0800 Subject: [PATCH 04/19] update --- .../kbdpad/mk3/keymaps/default/keymap.c | 32 ++++++++++++++++--- .../kbdpad/mk3/keymaps/default/readme.md | 3 -- .../kbdfans/kbdpad/mk3/keymaps/via/keymap.c | 2 +- 3 files changed, 29 insertions(+), 8 deletions(-) delete mode 100644 keyboards/kbdfans/kbdpad/mk3/keymaps/default/readme.md diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c index 3213eca482eb..509da16dff1a 100644 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c @@ -1,4 +1,4 @@ -/* Copyright 2019 Ryota Goto +/* Copyright 2022 DZTECH * * 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 @@ -17,12 +17,36 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT_ortho_6x4( /* Base */ + [0] = LAYOUT_numpad_6x4( /* Base */ KC_ESC, KC_LCTL, KC_LALT, KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_P7, KC_P8, KC_P9, KC_PPLS, - KC_P4, KC_P5, KC_P6, KC_PPLS, + KC_P4, KC_P5, KC_P6, KC_P1, KC_P2, KC_P3, KC_PENT, - KC_P0, KC_P0, KC_PDOT, KC_PENT + KC_P0, KC_PDOT + ), + [1] = LAYOUT_numpad_6x4( + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, + _______, _______, _______, _______, + _______, _______ + ), + [2] = LAYOUT_numpad_6x4( + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, + _______, _______, _______, _______, + _______, _______ + ), + [3] = LAYOUT_numpad_6x4( + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, + _______, _______, _______, _______, + _______, _______ ), }; diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/default/readme.md b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/readme.md deleted file mode 100644 index 71ff8e0025d9..000000000000 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/default/readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# The default keymap for KBDPAD MKII - -Just a numpad. Top row from Cherry G80-3700 \ No newline at end of file diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c index d35a2f8c6931..509da16dff1a 100644 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c @@ -1,4 +1,4 @@ -/* Copyright 2019 Ryota Goto +/* Copyright 2022 DZTECH * * 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 From 5365721082e76c6ee8284368a074ef57768fd7a0 Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Fri, 21 Oct 2022 12:56:47 +0800 Subject: [PATCH 05/19] lto --- keyboards/kbdfans/kbdpad/mk3/info.json | 2 +- keyboards/kbdfans/kbdpad/mk3/rules.mk | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/info.json b/keyboards/kbdfans/kbdpad/mk3/info.json index 84ed3b8496d7..2a9ac30a6102 100644 --- a/keyboards/kbdfans/kbdpad/mk3/info.json +++ b/keyboards/kbdfans/kbdpad/mk3/info.json @@ -9,7 +9,7 @@ "command": false, "console": false, "extrakey": true, - "mousekey": false, + "mousekey": true, "nkro": true, "rgb_matrix":true }, diff --git a/keyboards/kbdfans/kbdpad/mk3/rules.mk b/keyboards/kbdfans/kbdpad/mk3/rules.mk index 32afd2163565..3d6d4bd5294c 100644 --- a/keyboards/kbdfans/kbdpad/mk3/rules.mk +++ b/keyboards/kbdfans/kbdpad/mk3/rules.mk @@ -1 +1,2 @@ RGB_MATRIX_DRIVER = WS2812 +LTO_ENABLE = yes \ No newline at end of file From 9b53b89e48ded6e3579794755c27f3eeb1b70ad3 Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Sun, 23 Oct 2022 11:20:55 +0800 Subject: [PATCH 06/19] Update keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c Co-authored-by: Joel Challis --- .../kbdpad/mk3/keymaps/default/keymap.c | 34 +++---------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c index 509da16dff1a..c6300025e78e 100644 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c @@ -20,33 +20,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [0] = LAYOUT_numpad_6x4( /* Base */ KC_ESC, KC_LCTL, KC_LALT, KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, KC_PPLS, - KC_P4, KC_P5, KC_P6, - KC_P1, KC_P2, KC_P3, KC_PENT, - KC_P0, KC_PDOT - ), - [1] = LAYOUT_numpad_6x4( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______, _______, - _______, _______ - ), - [2] = LAYOUT_numpad_6x4( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______, _______, - _______, _______ - ), - [3] = LAYOUT_numpad_6x4( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______, _______, - _______, _______ - ), + KC_P7, KC_P8, KC_P9, + KC_P4, KC_P5, KC_P6, KC_PPLS, + KC_P1, KC_P2, KC_P3, + KC_P0, KC_PDOT, KC_PENT, + ) }; From 208427eaee2b6f1438227e2f113ae5230efc22a2 Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Sun, 23 Oct 2022 11:21:03 +0800 Subject: [PATCH 07/19] Update keyboards/kbdfans/kbdpad/mk3/mk3.h Co-authored-by: Joel Challis --- keyboards/kbdfans/kbdpad/mk3/mk3.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/mk3.h b/keyboards/kbdfans/kbdpad/mk3/mk3.h index 0fa0f88243c3..50ba1d9dfb4b 100644 --- a/keyboards/kbdfans/kbdpad/mk3/mk3.h +++ b/keyboards/kbdfans/kbdpad/mk3/mk3.h @@ -28,10 +28,10 @@ #define LAYOUT_numpad_6x4( \ K00, K01, K02, K03, \ K10, K11, K12, K13, \ - K20, K21, K22, K23, \ - K30, K31, K32, \ - K40, K41, K42, K43, \ - K50, K52 \ + K20, K21, K22, \ + K30, K31, K32, K23, \ + K40, K41, K42, \ + K50, K52, K43, \ ) \ { \ { K00, K01, K02, K03 }, \ From 45a968cec69001d26c7481f2716a42c97fadae6f Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Sun, 23 Oct 2022 11:21:12 +0800 Subject: [PATCH 08/19] Update keyboards/kbdfans/kbdpad/mk3/info.json Co-authored-by: Joel Challis --- keyboards/kbdfans/kbdpad/mk3/info.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/info.json b/keyboards/kbdfans/kbdpad/mk3/info.json index 2a9ac30a6102..430d21fe2db4 100644 --- a/keyboards/kbdfans/kbdpad/mk3/info.json +++ b/keyboards/kbdfans/kbdpad/mk3/info.json @@ -44,7 +44,7 @@ {"x":0, "y":4}, {"x":1, "y":4}, {"x":2, "y":4}, - + {"x":0, "y":5, "w":2}, {"x":2, "y":5}, {"x":3, "y":4, "h":2} From 5815712fdcd6aaadeb02d938c9bb560c0c97b449 Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Sun, 23 Oct 2022 11:21:20 +0800 Subject: [PATCH 09/19] Update keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c Co-authored-by: Joel Challis --- .../kbdfans/kbdpad/mk3/keymaps/via/keymap.c | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c index 509da16dff1a..69165b47d681 100644 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c @@ -20,33 +20,33 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [0] = LAYOUT_numpad_6x4( /* Base */ KC_ESC, KC_LCTL, KC_LALT, KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, KC_PPLS, - KC_P4, KC_P5, KC_P6, - KC_P1, KC_P2, KC_P3, KC_PENT, - KC_P0, KC_PDOT + KC_P7, KC_P8, KC_P9, + KC_P4, KC_P5, KC_P6, KC_PPLS, + KC_P1, KC_P2, KC_P3, + KC_P0, KC_PDOT, KC_PENT, ), [1] = LAYOUT_numpad_6x4( _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______, _______, - _______, _______ + _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, + _______, _______, _______ ), [2] = LAYOUT_numpad_6x4( _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______, _______, - _______, _______ + _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, + _______, _______, _______ ), [3] = LAYOUT_numpad_6x4( _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______, _______, - _______, _______ + _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, + _______, _______, _______ ), }; From 8a9704cbb61be965b85f3f3fa135257099044229 Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Tue, 25 Oct 2022 15:59:41 +0800 Subject: [PATCH 10/19] Update keyboards/kbdfans/kbdpad/mk3/mk3.h Co-authored-by: Ryan --- keyboards/kbdfans/kbdpad/mk3/mk3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/mk3.h b/keyboards/kbdfans/kbdpad/mk3/mk3.h index 50ba1d9dfb4b..9a9ce88e49ec 100644 --- a/keyboards/kbdfans/kbdpad/mk3/mk3.h +++ b/keyboards/kbdfans/kbdpad/mk3/mk3.h @@ -31,7 +31,7 @@ K20, K21, K22, \ K30, K31, K32, K23, \ K40, K41, K42, \ - K50, K52, K43, \ + K50, K52, K43 \ ) \ { \ { K00, K01, K02, K03 }, \ From bc0cc7b3f1485e591375640644f23bf597936fe9 Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Tue, 25 Oct 2022 15:59:48 +0800 Subject: [PATCH 11/19] Update keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c Co-authored-by: Ryan --- keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c index 69165b47d681..e5080520ce2b 100644 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c @@ -23,7 +23,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_P7, KC_P8, KC_P9, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_P1, KC_P2, KC_P3, - KC_P0, KC_PDOT, KC_PENT, + KC_P0, KC_PDOT, KC_PENT ), [1] = LAYOUT_numpad_6x4( _______, _______, _______, _______, From aaaf07563392a2ac9b22366cd9d6d7c804b9601c Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Tue, 25 Oct 2022 15:59:55 +0800 Subject: [PATCH 12/19] Update keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c Co-authored-by: Ryan --- keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c index c6300025e78e..daa5d365d097 100644 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c @@ -23,6 +23,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_P7, KC_P8, KC_P9, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_P1, KC_P2, KC_P3, - KC_P0, KC_PDOT, KC_PENT, + KC_P0, KC_PDOT, KC_PENT ) }; From 5a8abe7425da10efdc4f0bffb68d958b82fb9cc7 Mon Sep 17 00:00:00 2001 From: dztech Date: Mon, 28 Nov 2022 09:05:12 +0800 Subject: [PATCH 13/19] Update keyboards/kbdfans/kbdpad/mk3/mk3.c Co-authored-by: Drashna Jaelre --- keyboards/kbdfans/kbdpad/mk3/mk3.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/mk3.c b/keyboards/kbdfans/kbdpad/mk3/mk3.c index 051dc382add5..6b8d708c43ab 100644 --- a/keyboards/kbdfans/kbdpad/mk3/mk3.c +++ b/keyboards/kbdfans/kbdpad/mk3/mk3.c @@ -41,7 +41,10 @@ led_config_t g_led_config = { { __attribute__ ((weak)) -void rgb_matrix_indicators_user(void) +bool rgb_matrix_indicators_kb(void) { + if (!rgb_matrix_indicators_user()) { + return false; + } { if (host_keyboard_led_state().num_lock) { From 305b67adfcc9a0d3c1ff403304ae0a7d9c69f154 Mon Sep 17 00:00:00 2001 From: dztech Date: Mon, 28 Nov 2022 09:05:21 +0800 Subject: [PATCH 14/19] Update keyboards/kbdfans/kbdpad/mk3/mk3.c Co-authored-by: Drashna Jaelre --- keyboards/kbdfans/kbdpad/mk3/mk3.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/mk3.c b/keyboards/kbdfans/kbdpad/mk3/mk3.c index 6b8d708c43ab..b8f30e8fe926 100644 --- a/keyboards/kbdfans/kbdpad/mk3/mk3.c +++ b/keyboards/kbdfans/kbdpad/mk3/mk3.c @@ -45,9 +45,7 @@ bool rgb_matrix_indicators_kb(void) { if (!rgb_matrix_indicators_user()) { return false; } -{ - if (host_keyboard_led_state().num_lock) - { + if (host_keyboard_led_state().num_lock) { rgb_matrix_set_color(7, 0xFF, 0xFF, 0xFF); } } From 8e626f8f806813cafe066fca35498613cb30f7f7 Mon Sep 17 00:00:00 2001 From: dztech Date: Mon, 28 Nov 2022 14:18:22 +0800 Subject: [PATCH 15/19] Update keyboards/kbdfans/kbdpad/mk3/mk3.c Co-authored-by: Drashna Jaelre --- keyboards/kbdfans/kbdpad/mk3/mk3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/keyboards/kbdfans/kbdpad/mk3/mk3.c b/keyboards/kbdfans/kbdpad/mk3/mk3.c index b8f30e8fe926..df73d669593b 100644 --- a/keyboards/kbdfans/kbdpad/mk3/mk3.c +++ b/keyboards/kbdfans/kbdpad/mk3/mk3.c @@ -48,5 +48,6 @@ bool rgb_matrix_indicators_kb(void) { if (host_keyboard_led_state().num_lock) { rgb_matrix_set_color(7, 0xFF, 0xFF, 0xFF); } + return true; } #endif From ead758dfc7eba443fba01d3cd5820b7ebe122345 Mon Sep 17 00:00:00 2001 From: dztech Date: Mon, 28 Nov 2022 14:18:32 +0800 Subject: [PATCH 16/19] Update keyboards/kbdfans/kbdpad/mk3/mk3.c Co-authored-by: Drashna Jaelre --- keyboards/kbdfans/kbdpad/mk3/mk3.c | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/mk3.c b/keyboards/kbdfans/kbdpad/mk3/mk3.c index df73d669593b..8ed0398262af 100644 --- a/keyboards/kbdfans/kbdpad/mk3/mk3.c +++ b/keyboards/kbdfans/kbdpad/mk3/mk3.c @@ -40,7 +40,6 @@ led_config_t g_led_config = { { } }; -__attribute__ ((weak)) bool rgb_matrix_indicators_kb(void) { if (!rgb_matrix_indicators_user()) { return false; From 1cc48eff5b708778cecef8790f7918491f9f53ed Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Tue, 29 Nov 2022 20:23:45 +0800 Subject: [PATCH 17/19] update --- keyboards/kbdfans/kbdpad/mk3/config.h | 15 +-- keyboards/kbdfans/kbdpad/mk3/info.json | 91 +++++++++++++------ .../kbdfans/kbdpad/mk3/keymaps/via/keymap.c | 2 +- keyboards/kbdfans/kbdpad/mk3/mk3.c | 52 ----------- keyboards/kbdfans/kbdpad/mk3/mk3.h | 43 --------- keyboards/kbdfans/kbdpad/mk3/rules.mk | 3 +- 6 files changed, 66 insertions(+), 140 deletions(-) delete mode 100644 keyboards/kbdfans/kbdpad/mk3/mk3.c delete mode 100644 keyboards/kbdfans/kbdpad/mk3/mk3.h diff --git a/keyboards/kbdfans/kbdpad/mk3/config.h b/keyboards/kbdfans/kbdpad/mk3/config.h index fac83aa6c102..1bc44146ff21 100644 --- a/keyboards/kbdfans/kbdpad/mk3/config.h +++ b/keyboards/kbdfans/kbdpad/mk3/config.h @@ -13,20 +13,11 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#pragma once -#include "config_common.h" - -#define MATRIX_ROW_PINS { F4, C7, C6, B6, B5, D7 } -#define MATRIX_COL_PINS { F7, F6, D5, D3 } - -#define RGB_DI_PIN F5 // RGB LED pin -#define RGBLED_NUM 21 // Number of LEDs -#define DRIVER_LED_TOTAL 21 // Number of LEDs + +#define RGB_MATRIX_LED_COUNT 21 #define RGB_DISABLE_WHEN_USB_SUSPENDED -#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 128 #define RGB_MATRIX_LED_FLUSH_LIMIT 16 #define RGB_MATRIX_KEYPRESSES - #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT #define ENABLE_RGB_MATRIX_BREATHING @@ -59,4 +50,4 @@ #define ENABLE_RGB_MATRIX_SPLASH #define ENABLE_RGB_MATRIX_MULTISPLASH #define ENABLE_RGB_MATRIX_SOLID_SPLASH - +#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_ALL diff --git a/keyboards/kbdfans/kbdpad/mk3/info.json b/keyboards/kbdfans/kbdpad/mk3/info.json index 430d21fe2db4..2faabc311c9e 100644 --- a/keyboards/kbdfans/kbdpad/mk3/info.json +++ b/keyboards/kbdfans/kbdpad/mk3/info.json @@ -9,46 +9,77 @@ "command": false, "console": false, "extrakey": true, + "lto": true, "mousekey": true, "nkro": true, - "rgb_matrix":true - }, + "rgb_matrix": true + }, + "matrix_pins": { + "cols": ["F7", "F6", "D5", "D3"], + "rows": ["F4", "C7", "C6", "B6", "B5", "D7"] + }, "processor": "atmega32u4", + "rgb_matrix": { + "driver": "WS2812", + "layout": [ + { "flags": 4, "matrix": [0, 0], "x": 0, "y": 0 }, + { "flags": 4, "matrix": [0, 1], "x": 75, "y": 0 }, + { "flags": 4, "matrix": [0, 2], "x": 150, "y": 0 }, + { "flags": 4, "matrix": [0, 3], "x": 224, "y": 0 }, + { "flags": 4, "matrix": [1, 3], "x": 224, "y": 12.8 }, + { "flags": 4, "matrix": [1, 2], "x": 150, "y": 12.8 }, + { "flags": 4, "matrix": [1, 1], "x": 75, "y": 12.8 }, + { "flags": 4, "matrix": [1, 0], "x": 0, "y": 12.8 }, + { "flags": 4, "matrix": [2, 0], "x": 0, "y": 25.6 }, + { "flags": 4, "matrix": [2, 1], "x": 75, "y": 25.6 }, + { "flags": 4, "matrix": [2, 2], "x": 150, "y": 25.6 }, + { "flags": 4, "matrix": [2, 3], "x": 224, "y": 32 }, + { "flags": 4, "matrix": [3, 2], "x": 150, "y": 38.4 }, + { "flags": 4, "matrix": [3, 1], "x": 75, "y": 38.4 }, + { "flags": 4, "matrix": [3, 0], "x": 0, "y": 38.4 }, + { "flags": 4, "matrix": [4, 0], "x": 0, "y": 51.2 }, + { "flags": 4, "matrix": [4, 1], "x": 75, "y": 51.2 }, + { "flags": 4, "matrix": [4, 2], "x": 150, "y": 51.24 }, + { "flags": 4, "matrix": [4, 3], "x": 224, "y": 57.6 }, + { "flags": 4, "matrix": [5, 2], "x": 150, "y": 64 }, + { "flags": 4, "matrix": [5, 0], "x": 37.5, "y": 64 } + ], + "max_brightness": 128 + }, + "rgblight": { + "pin": "F5", + }, "usb": { "device_version": "3.0.0", "pid": "0x0012", "vid": "0x4B42" - } - "layouts" :{ + }, + "layouts": { "LAYOUT_numpad_6x4": { "layout": [ - {"x":0, "y":0}, - {"x":1, "y":0}, - {"x":2, "y":0}, - {"x":3, "y":0}, - - {"x":0, "y":1}, - {"x":1, "y":1}, - {"x":2, "y":1}, - {"x":3, "y":1}, - - {"x":0, "y":2}, - {"x":1, "y":2}, - {"x":2, "y":2}, - - {"x":0, "y":3}, - {"x":1, "y":3}, - {"x":2, "y":3}, - {"x":3, "y":2, "h":2}, - - {"x":0, "y":4}, - {"x":1, "y":4}, - {"x":2, "y":4}, - - {"x":0, "y":5, "w":2}, - {"x":2, "y":5}, - {"x":3, "y":4, "h":2} + { "label": "K00", "matrix": [0, 0], "w": 1, "x": 0, "y": 0 }, + { "label": "K01", "matrix": [0, 1], "w": 1, "x": 1, "y": 0 }, + { "label": "K02", "matrix": [0, 2], "w": 1, "x": 2, "y": 0 }, + { "label": "K03", "matrix": [0, 3], "w": 1, "x": 3, "y": 0 }, + { "label": "K10", "matrix": [1, 0], "w": 1, "x": 0, "y": 1 }, + { "label": "K11", "matrix": [1, 1], "w": 1, "x": 1, "y": 1 }, + { "label": "K12", "matrix": [1, 2], "w": 1, "x": 2, "y": 1 }, + { "label": "K13", "matrix": [1, 3], "w": 1, "x": 3, "y": 1 }, + { "label": "K20", "matrix": [2, 0], "w": 1, "x": 0, "y": 2 }, + { "label": "K21", "matrix": [2, 1], "w": 1, "x": 1, "y": 2 }, + { "label": "K22", "matrix": [2, 2], "w": 1, "x": 2, "y": 2 }, + { "label": "K30", "matrix": [3, 0], "w": 1, "x": 0, "y": 3 }, + { "label": "K31", "matrix": [3, 1], "w": 1, "x": 1, "y": 3 }, + { "label": "K32", "matrix": [3, 2], "w": 1, "x": 2, "y": 3 }, + { "h": 2, "label": "K23", "matrix": [2, 3], "w": 1, "x": 3, "y": 2 }, + { "label": "K40", "matrix": [4, 0], "w": 1, "x": 0, "y": 4 }, + { "label": "K41", "matrix": [4, 1], "w": 1, "x": 1, "y": 4 }, + { "label": "K42", "matrix": [4, 2], "w": 1, "x": 2, "y": 4 }, + { "label": "K50", "matrix": [5, 0], "w": 2, "x": 0, "y": 5 }, + { "label": "K52", "matrix": [5, 2], "w": 1, "x": 2, "y": 5 }, + { "h": 2, "label": "K43", "matrix": [4, 3], "w": 1, "x": 3, "y": 4 } ] } } } + diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c index e5080520ce2b..66abd100a11c 100644 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/via/keymap.c @@ -19,7 +19,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [0] = LAYOUT_numpad_6x4( /* Base */ KC_ESC, KC_LCTL, KC_LALT, KC_BSPC, - KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, + KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, KC_P7, KC_P8, KC_P9, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_P1, KC_P2, KC_P3, diff --git a/keyboards/kbdfans/kbdpad/mk3/mk3.c b/keyboards/kbdfans/kbdpad/mk3/mk3.c deleted file mode 100644 index 8ed0398262af..000000000000 --- a/keyboards/kbdfans/kbdpad/mk3/mk3.c +++ /dev/null @@ -1,52 +0,0 @@ -/* Copyright 2022 DZTECH - * - * 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 . - */ -#include "mk3.h" - -#ifdef RGB_MATRIX_ENABLE -led_config_t g_led_config = { { - { 0, 1, 2, 3 }, - { 7, 6, 5, 4 }, - { 8, 9, 10, 11 }, - { 14, 13, 12, NO_LED }, - { 15, 16, 17, 18 }, - { 20, NO_LED, 19,NO_LED } -}, { - {0, 0}, {75, 0}, {150, 0},{224, 0}, - {224, 12.8}, {150, 12.8},{75, 12.8},{0, 12.8}, - {0, 25.6}, {75, 25.6},{150, 25.6},{224, 32}, - {150, 38.4}, {75, 38.4},{0, 38.4}, - {0, 51.2}, {75, 51.2},{150, 51.24},{224, 57.6}, - {150, 64}, {37.5, 64} -}, { -4,4,4,4, -4,4,4,4, -4,4,4,4, -4,4,4, -4,4,4,4, -4,4 -} }; - - -bool rgb_matrix_indicators_kb(void) { - if (!rgb_matrix_indicators_user()) { - return false; - } - if (host_keyboard_led_state().num_lock) { - rgb_matrix_set_color(7, 0xFF, 0xFF, 0xFF); - } - return true; -} -#endif diff --git a/keyboards/kbdfans/kbdpad/mk3/mk3.h b/keyboards/kbdfans/kbdpad/mk3/mk3.h deleted file mode 100644 index 9a9ce88e49ec..000000000000 --- a/keyboards/kbdfans/kbdpad/mk3/mk3.h +++ /dev/null @@ -1,43 +0,0 @@ -/* Copyright 2022 DZTECH - * - * 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 . - */ -#pragma once - -#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. - */ -#define LAYOUT_numpad_6x4( \ - K00, K01, K02, K03, \ - K10, K11, K12, K13, \ - K20, K21, K22, \ - K30, K31, K32, K23, \ - K40, K41, K42, \ - K50, K52, K43 \ -) \ -{ \ - { K00, K01, K02, K03 }, \ - { K10, K11, K12, K13 }, \ - { K20, K21, K22, K23 }, \ - { K30, K31, K32, KC_NO}, \ - { K40, K41, K42, K43 }, \ - { K50, KC_NO, K52, KC_NO } \ -} diff --git a/keyboards/kbdfans/kbdpad/mk3/rules.mk b/keyboards/kbdfans/kbdpad/mk3/rules.mk index 3d6d4bd5294c..6e7633bfe015 100644 --- a/keyboards/kbdfans/kbdpad/mk3/rules.mk +++ b/keyboards/kbdfans/kbdpad/mk3/rules.mk @@ -1,2 +1 @@ -RGB_MATRIX_DRIVER = WS2812 -LTO_ENABLE = yes \ No newline at end of file +# This file intentionally left blank From 7d16c1f108297623481b90c9d83ece0b175bec2f Mon Sep 17 00:00:00 2001 From: moyi4681 Date: Tue, 29 Nov 2022 20:25:57 +0800 Subject: [PATCH 18/19] Update keymap.c --- keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c index daa5d365d097..f0d001b26d75 100644 --- a/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c +++ b/keyboards/kbdfans/kbdpad/mk3/keymaps/default/keymap.c @@ -19,7 +19,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [0] = LAYOUT_numpad_6x4( /* Base */ KC_ESC, KC_LCTL, KC_LALT, KC_BSPC, - KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, + KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, KC_P7, KC_P8, KC_P9, KC_P4, KC_P5, KC_P6, KC_PPLS, KC_P1, KC_P2, KC_P3, From 4d26547694a3110eb329267dc2e96ffc03df48f6 Mon Sep 17 00:00:00 2001 From: dztech Date: Sun, 4 Dec 2022 19:41:11 +0800 Subject: [PATCH 19/19] Update keyboards/kbdfans/kbdpad/mk3/config.h Co-authored-by: Drashna Jaelre --- keyboards/kbdfans/kbdpad/mk3/config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keyboards/kbdfans/kbdpad/mk3/config.h b/keyboards/kbdfans/kbdpad/mk3/config.h index 1bc44146ff21..16eb12d1f5ea 100644 --- a/keyboards/kbdfans/kbdpad/mk3/config.h +++ b/keyboards/kbdfans/kbdpad/mk3/config.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #define RGB_MATRIX_LED_COUNT 21 #define RGB_DISABLE_WHEN_USB_SUSPENDED #define RGB_MATRIX_LED_FLUSH_LIMIT 16