[Keyboard] mechwild/bde cleanup and refactor (#18149)
parent
585b134729
commit
4adb64a91b
@ -1,17 +0,0 @@ |
|||||||
/* Copyright 2022 Kyle McCreery
|
|
||||||
*
|
|
||||||
* 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 "bde.h" |
|
@ -1,26 +0,0 @@ |
|||||||
/* Copyright 2022 Kyle McCreery
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/ |
|
||||||
#pragma once |
|
||||||
|
|
||||||
#include "quantum.h" |
|
||||||
|
|
||||||
#ifdef KEYBOARD_mechwild_bde_rev2 |
|
||||||
#include "rev2.h" |
|
||||||
#elif KEYBOARD_mechwild_bde_lefty |
|
||||||
#include "lefty.h" |
|
||||||
#elif KEYBOARD_mechwild_bde_righty |
|
||||||
#include "righty.h" |
|
||||||
#endif |
|
@ -1,3 +0,0 @@ |
|||||||
RGBLIGHT_ENABLE = yes
|
|
||||||
VIA_ENABLE = yes
|
|
||||||
LTO_ENABLE = no
|
|
@ -1,46 +0,0 @@ |
|||||||
/* Copyright 2020 Kyle McCreery
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/ |
|
||||||
|
|
||||||
|
|
||||||
#pragma once |
|
||||||
|
|
||||||
#include "config_common.h" |
|
||||||
|
|
||||||
/* key matrix size */ |
|
||||||
#define MATRIX_ROWS 3 |
|
||||||
#define MATRIX_COLS 14 |
|
||||||
|
|
||||||
/* key matrix pins */ |
|
||||||
#define MATRIX_ROW_PINS { D1, D7, D3} |
|
||||||
#define MATRIX_COL_PINS { F7, B1, B6, B2, B3, F6, F5, F4, D0, D4, C6, E6, B5, B4} |
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */ |
|
||||||
#define DIODE_DIRECTION ROW2COL |
|
||||||
|
|
||||||
/* If RGBLIGHT_ENABLE is set to yes in the rules, ensure the RGBLED_NUM is accurate for how many you have attached. */ |
|
||||||
#define RGB_DI_PIN D2 |
|
||||||
#define RGBLED_NUM 16 |
|
||||||
#define RGBLIGHT_ANIMATIONS |
|
||||||
|
|
||||||
/* Set 0 if debouncing isn't needed */ |
|
||||||
#define DEBOUNCE 5 |
|
||||||
|
|
||||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
|
||||||
#define LOCKING_SUPPORT_ENABLE |
|
||||||
|
|
||||||
/* Locking resynchronize hack */ |
|
||||||
#define LOCKING_RESYNC_ENABLE |
|
||||||
|
|
@ -0,0 +1,9 @@ |
|||||||
|
# If you are using a custom Pro Micro-compatible dev board (Elite-C, Sea-Micro, etc)
|
||||||
|
# you may need to uncomment and modify this BOOTLOADER setting to use the correct
|
||||||
|
# bootloader. (e.g. Elite-Cs use "atmel-dfu", not "caterina".)
|
||||||
|
#
|
||||||
|
# See the QMK docs for more information:
|
||||||
|
# https://docs.qmk.fm/#/flashing
|
||||||
|
# https://docs.qmk.fm/#/driver_installation_zadig?id=list-of-known-bootloaders
|
||||||
|
|
||||||
|
# BOOTLOADER = caterina
|
@ -1,17 +0,0 @@ |
|||||||
/* Copyright 2020 Kyle McCreery
|
|
||||||
*
|
|
||||||
* 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 "bde.h" |
|
@ -1,30 +0,0 @@ |
|||||||
/* Copyright 2020 Kyle McCreery
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/ |
|
||||||
|
|
||||||
|
|
||||||
#pragma once |
|
||||||
|
|
||||||
#include "quantum.h" |
|
||||||
|
|
||||||
#define LAYOUT( \ |
|
||||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D , \
|
|
||||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D , \
|
|
||||||
K20, K21, K22, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D \
|
|
||||||
) { \
|
|
||||||
{K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D}, \
|
|
||||||
{K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D}, \
|
|
||||||
{K20, K21, K22, KC_NO, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D} \
|
|
||||||
} |
|
@ -0,0 +1 @@ |
|||||||
|
# This file intentionally left blank
|
@ -0,0 +1,13 @@ |
|||||||
|
# If you are using a custom Pro Micro-compatible dev board (Elite-C, Sea-Micro, etc)
|
||||||
|
# you may need to uncomment and modify this BOOTLOADER setting to use the correct
|
||||||
|
# bootloader. (e.g. Elite-Cs use "atmel-dfu", not "caterina".)
|
||||||
|
#
|
||||||
|
# See the QMK docs for more information:
|
||||||
|
# https://docs.qmk.fm/#/flashing
|
||||||
|
# https://docs.qmk.fm/#/driver_installation_zadig?id=list-of-known-bootloaders
|
||||||
|
|
||||||
|
# BOOTLOADER = caterina
|
||||||
|
|
||||||
|
# If you are not using an encoder, set these options to no.
|
||||||
|
ENCODER_ENABLE = yes
|
||||||
|
ENCODER_MAP_ENABLE = yes
|
@ -0,0 +1,3 @@ |
|||||||
|
VIA_ENABLE = yes
|
||||||
|
ENCODER_ENABLE = yes
|
||||||
|
ENCODER_MAP_ENABLE = yes
|
@ -1,46 +0,0 @@ |
|||||||
/* Copyright 2020 Kyle McCreery
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/ |
|
||||||
|
|
||||||
|
|
||||||
#pragma once |
|
||||||
|
|
||||||
#include "config_common.h" |
|
||||||
|
|
||||||
/* key matrix size */ |
|
||||||
#define MATRIX_ROWS 3 |
|
||||||
#define MATRIX_COLS 14 |
|
||||||
|
|
||||||
/* key matrix pins */ |
|
||||||
#define MATRIX_ROW_PINS { D1, D7, D3} |
|
||||||
#define MATRIX_COL_PINS { B4, B5, E6, C6, D4, D0, F4, F5, F6, B6, B3, B2, B1, F7} |
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */ |
|
||||||
#define DIODE_DIRECTION ROW2COL |
|
||||||
|
|
||||||
/* If RGBLIGHT_ENABLE is set to yes in the rules, ensure the RGBLED_NUM is accurate for how many you have attached. */ |
|
||||||
#define RGB_DI_PIN D2 |
|
||||||
#define RGBLED_NUM 16 |
|
||||||
#define RGBLIGHT_ANIMATIONS |
|
||||||
|
|
||||||
/* Set 0 if debouncing isn't needed */ |
|
||||||
#define DEBOUNCE 5 |
|
||||||
|
|
||||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
|
||||||
#define LOCKING_SUPPORT_ENABLE |
|
||||||
|
|
||||||
/* Locking resynchronize hack */ |
|
||||||
#define LOCKING_RESYNC_ENABLE |
|
||||||
|
|
@ -0,0 +1,9 @@ |
|||||||
|
# If you are using a custom Pro Micro-compatible dev board (Elite-C, Sea-Micro, etc)
|
||||||
|
# you may need to uncomment and modify this BOOTLOADER setting to use the correct
|
||||||
|
# bootloader. (e.g. Elite-Cs use "atmel-dfu", not "caterina".)
|
||||||
|
#
|
||||||
|
# See the QMK docs for more information:
|
||||||
|
# https://docs.qmk.fm/#/flashing
|
||||||
|
# https://docs.qmk.fm/#/driver_installation_zadig?id=list-of-known-bootloaders
|
||||||
|
|
||||||
|
# BOOTLOADER = caterina
|
@ -1,17 +0,0 @@ |
|||||||
/* Copyright 2020 Kyle McCreery
|
|
||||||
*
|
|
||||||
* 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 "bde.h" |
|
@ -1,30 +0,0 @@ |
|||||||
/* Copyright 2020 Kyle McCreery
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/ |
|
||||||
|
|
||||||
|
|
||||||
#pragma once |
|
||||||
|
|
||||||
#include "quantum.h" |
|
||||||
|
|
||||||
#define LAYOUT( \ |
|
||||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D , \
|
|
||||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D , \
|
|
||||||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2B, K2C, K2D \
|
|
||||||
) { \
|
|
||||||
{K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D}, \
|
|
||||||
{K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D}, \
|
|
||||||
{K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, KC_NO, K2B, K2C, K2D} \
|
|
||||||
} |
|
@ -0,0 +1 @@ |
|||||||
|
# This file intentionally left blank
|
@ -1,20 +1 @@ |
|||||||
# MCU name
|
|
||||||
MCU = atmega32u4
|
|
||||||
|
|
||||||
# Bootloader selection
|
|
||||||
BOOTLOADER = caterina
|
|
||||||
|
|
||||||
# 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 = yes # Enable N-Key Rollover
|
|
||||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
|
||||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
|
||||||
AUDIO_ENABLE = no # Audio output
|
|
||||||
|
|
||||||
DEFAULT_FOLDER = mechwild/bde/rev2
|
DEFAULT_FOLDER = mechwild/bde/rev2
|
||||||
|
Loading…
Reference in new issue