~ruther/qmk_firmware

023035f462fa307a30968247f33854ac361b232d — Ryan 2 years ago 9ab16e6
Move miscellaneous defines to data driven (#21382)

69 files changed, 103 insertions(+), 236 deletions(-)

D keyboards/7c8/framework/config.h
M keyboards/7c8/framework/info.json
M keyboards/acheron/athena/alpha/alpha.c
M keyboards/acheron/elongate/delta/delta.c
M keyboards/alas/config.h
M keyboards/alas/info.json
D keyboards/ash1800/ash1800.c
M keyboards/ash1800/config.h
M keyboards/ash1800/info.json
D keyboards/ash_xiix/ash_xiix.c
M keyboards/ash_xiix/config.h
M keyboards/ash_xiix/info.json
M keyboards/bpiphany/hid_liber/config.h
M keyboards/coban/pad3a/config.h
M keyboards/coban/pad3a/info.json
M keyboards/dumbpad/v3x/config.h
M keyboards/dumbpad/v3x/info.json
D keyboards/eason/greatsword80/config.h
M keyboards/eason/greatsword80/info.json
M keyboards/fancytech/fancyalice66/config.h
M keyboards/fancytech/fancyalice66/info.json
M keyboards/fungo/rev1/config.h
M keyboards/fungo/rev1/info.json
M keyboards/handwired/datahand/config.h
M keyboards/handwired/split65/promicro/config.h
M keyboards/handwired/split65/promicro/info.json
M keyboards/handwired/split65/stm32/config.h
M keyboards/handwired/split65/stm32/info.json
M keyboards/hineybush/hbcp/config.h
M keyboards/idobao/id42/config.h
M keyboards/idobao/id42/info.json
M keyboards/jadookb/jkb65/config.h
M keyboards/jadookb/jkb65/info.json
M keyboards/jones/v03/config.h
M keyboards/jones/v03_1/config.h
M keyboards/junco/info.json
M keyboards/junco/rev1/config.h
M keyboards/keebio/cepstrum/rev1/config.h
M keyboards/keebio/cepstrum/rev1/info.json
M keyboards/kmac/config.h
M keyboards/kmac_pad/config.h
M keyboards/kmini/config.h
M keyboards/kprepublic/bm80hsrgb/config.h
D keyboards/mmkzoo65/config.h
M keyboards/mmkzoo65/info.json
M keyboards/mode/m65ha_alpha/m65ha_alpha.c
M keyboards/mode/m65hi_alpha/m65hi_alpha.c
M keyboards/mode/m65s/m65s.c
M keyboards/nullbitsco/snap/config.h
M keyboards/nullbitsco/snap/info.json
M keyboards/rgbkb/mun/config.h
M keyboards/rgbkb/mun/rev1/info.json
M keyboards/rgbkb/sol3/config.h
M keyboards/rgbkb/sol3/rev1/info.json
M keyboards/sentraq/s60_x/default/config.h
M keyboards/smithrune/iron165r2/iron165r2.c
M keyboards/soda/pocket/config.h
M keyboards/soda/pocket/info.json
M keyboards/tkw/grandiceps/config.h
M keyboards/tkw/grandiceps/info.json
M keyboards/tkw/stoutgat/v2/config.h
M keyboards/tkw/stoutgat/v2/info.json
M keyboards/vertex/arc60h/config.h
M keyboards/vertex/arc60h/info.json
M keyboards/woodkeys/meira/config.h
M keyboards/zvecr/split_blackpill/config.h
M keyboards/zvecr/split_blackpill/info.json
M keyboards/zvecr/zv48/config.h
M keyboards/zvecr/zv48/info.json
D keyboards/7c8/framework/config.h => keyboards/7c8/framework/config.h +0 -20
@@ 1,20 0,0 @@
/* Copyright 2020 Steven Nguyen
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

#define LEADER_TIMEOUT 250
#define LEADER_PER_KEY_TIMING 150

M keyboards/7c8/framework/info.json => keyboards/7c8/framework/info.json +4 -0
@@ 21,6 21,10 @@
    "qmk": {
        "tap_keycode_delay": 16
    },
    "leader_key": {
        "timeout": 250,
        "timing": true
    },
    "processor": "atmega328p",
    "bootloader": "usbasploader",
    "layouts": {

M keyboards/acheron/athena/alpha/alpha.c => keyboards/acheron/athena/alpha/alpha.c +0 -1
@@ 26,7 26,6 @@ void keyboard_post_init_kb(void){
    palSetLineMode(BACKLIGHT_PIN, PAL_MODE_ALTERNATE(BACKLIGHT_PAL_MODE) | PAL_STM32_OTYPE_OPENDRAIN | PAL_STM32_OSPEED_HIGHEST | PAL_STM32_PUPDR_FLOATING);
}

#define LED_PIN_ON_STATE 1
void led_init_ports(void) {
    palSetLineMode(LED_CAPS_LOCK_PIN, PAL_MODE_OUTPUT_OPENDRAIN | PAL_STM32_PUPDR_FLOATING);
}

M keyboards/acheron/elongate/delta/delta.c => keyboards/acheron/elongate/delta/delta.c +0 -1
@@ 16,7 16,6 @@

#include "quantum.h"

#define LED_PIN_ON_STATE 1
// Inits all indicator LEDs as push-pull outputs
void led_init_ports(void) {
    palSetLineMode(LED1_PIN, PAL_MODE_OUTPUT_PUSHPULL);

M keyboards/alas/config.h => keyboards/alas/config.h +0 -4
@@ 19,7 19,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.

/* Ensure we jump to bootloader if the RESET keycode was pressed */
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE

/* Indicator LEDs */
#define LED_CAPS_LOCK_PIN B6
#define LED_PIN_ON_STATE 0

M keyboards/alas/info.json => keyboards/alas/info.json +4 -0
@@ 8,6 8,10 @@
        "pid": "0x414C",
        "device_version": "0.0.1"
    },
    "indicators": {
        "caps_lock": "B6",
        "on_state": 0
    },
    "matrix_pins": {
        "cols": ["A1", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "B2", "B10", "B11", "B12", "B13", "B14"],
        "rows": ["A2", "B9", "B8", "B5", "B4"]

D keyboards/ash1800/ash1800.c => keyboards/ash1800/ash1800.c +0 -25
@@ 1,25 0,0 @@
/* Copyright 2019 angelbirth
 *
 * 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"

bool led_update_kb(led_t led_state) {
    if (led_update_user(led_state)) {
        writePin(NUM_LOCK_LED_PIN, !led_state.num_lock);
        writePin(CAPS_LOCK_LED_PIN, !led_state.caps_lock);
        writePin(SCROLL_LOCK_LED_PIN, !led_state.scroll_lock);
    }
    return true;
}
\ No newline at end of file

M keyboards/ash1800/config.h => keyboards/ash1800/config.h +0 -4
@@ 17,10 17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define NUM_LOCK_LED_PIN E6
#define CAPS_LOCK_LED_PIN F0
#define SCROLL_LOCK_LED_PIN F7

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

M keyboards/ash1800/info.json => keyboards/ash1800/info.json +6 -0
@@ 7,6 7,12 @@
        "pid": "0x1800",
        "device_version": "0.0.1"
    },
    "indicators": {
        "caps_lock": "F0",
        "num_lock": "E6",
        "scroll_lock": "F7",
        "on_state": 0
    },
    "matrix_pins": {
        "cols": ["F1", "F4", "F5", "F6", "B0", "B2", "B1", "B3", "B7", "C7"],
        "rows": ["C6", "B6", "B5", "B4", "D7", "D0", "D1", "D2", "D3", "D5", "D4", "D6"]

D keyboards/ash_xiix/ash_xiix.c => keyboards/ash_xiix/ash_xiix.c +0 -25
@@ 1,25 0,0 @@
/* Copyright 2020 sh_xguitar
 *
 * 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"

bool led_update_kb(led_t led_state) {
    if (led_update_user(led_state)) {
        writePin(NUM_LOCK_LED_PIN, led_state.num_lock);
        writePin(CAPS_LOCK_LED_PIN, led_state.caps_lock);
        writePin(SCROLL_LOCK_LED_PIN, led_state.scroll_lock);
    }
    return true;
}

M keyboards/ash_xiix/config.h => keyboards/ash_xiix/config.h +0 -4
@@ 14,10 14,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define NUM_LOCK_LED_PIN E6
#define CAPS_LOCK_LED_PIN F0
#define SCROLL_LOCK_LED_PIN F7

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
#define LOCKING_RESYNC_ENABLE

M keyboards/ash_xiix/info.json => keyboards/ash_xiix/info.json +6 -0
@@ 8,6 8,12 @@
        "pid": "0x14BC",
        "device_version": "0.0.1"
    },
    "indicators": {
        "caps_lock": "F0",
        "num_lock": "E6",
        "scroll_lock": "F7",
        "on_state": 0
    },
    "matrix_pins": {
        "cols": ["F1", "F4", "F5", "F6", "B0", "B2", "B1", "B3", "B7", "C7"],
        "rows": ["C6", "B6", "B5", "B4", "D7", "D0", "D1", "D2", "D3", "D5", "D4", "D6"]

M keyboards/bpiphany/hid_liber/config.h => keyboards/bpiphany/hid_liber/config.h +0 -1
@@ 23,7 23,6 @@
#define MATRIX_COLS 8

// HID Liberation Device uses custom matrix code to accomodate a 74HC238 3 to 8 decoder on pins B1, B2 and B3.
//#define DIODE_DIRECTION

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

M keyboards/coban/pad3a/config.h => keyboards/coban/pad3a/config.h +0 -3
@@ 16,8 16,5 @@

#pragma once

#define ENCODERS_PAD_A { GP5 }
#define ENCODERS_PAD_B { GP4 }

#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U

M keyboards/coban/pad3a/info.json => keyboards/coban/pad3a/info.json +5 -0
@@ 9,6 9,11 @@
        "vid": "0xCB3A",
        "device_version": "1.1.0"
    },
    "encoder": {
        "rotary": [
            {"pin_a": "GP5", "pin_b": "GP4"}
        ]
    },
    "matrix_pins": {
        "direct": [
            ["GP8", "GP7", "GP6"]

M keyboards/dumbpad/v3x/config.h => keyboards/dumbpad/v3x/config.h +0 -1
@@ 26,7 26,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
// Cleanup RGB
#ifdef RGB_MATRIX_ENABLE

#define RGB_MATRIX_TIMEOUT 300000 // 5 minutes (5 * 60 * 1000ms)
#define RGB_DISABLE_WHEN_USB_SUSPENDED

#define RGB_MATRIX_FRAMEBUFFER_EFFECTS // Heatmap, Rain

M keyboards/dumbpad/v3x/info.json => keyboards/dumbpad/v3x/info.json +2 -1
@@ 6,7 6,8 @@
        "device_version": "0.1.0"
    },
    "rgb_matrix": {
        "driver": "WS2812"
        "driver": "WS2812",
        "timeout": 300000
    },
    "matrix_pins": {
        "cols": ["C6", "D7", "E6", "B4", "B5"],

D keyboards/eason/greatsword80/config.h => keyboards/eason/greatsword80/config.h +0 -20
@@ 1,20 0,0 @@
/* Copyright 2023 Eason <xiaoxuxk@yeah.net>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

#define LED_CAPS_LOCK_PIN  F0
#define LED_PIN_ON_STATE 0

M keyboards/eason/greatsword80/info.json => keyboards/eason/greatsword80/info.json +4 -0
@@ 8,6 8,10 @@
        "pid": "0x998F",
        "device_version": "0.0.1"
    },
    "indicators": {
        "caps_lock": "F0",
        "on_state": 0
    },
    "matrix_pins": {
        "cols": ["D6", "D7", "B4", "B5", "B6", "C6", "C7", "E2", "F7", "F6", "F5", "F4", "B0", "B1", "B2", "B3"],
        "rows": ["D0", "D1", "D2", "D3", "D5", "D4"]

M keyboards/fancytech/fancyalice66/config.h => keyboards/fancytech/fancyalice66/config.h +0 -2
@@ 4,8 4,6 @@
#pragma once

#ifdef RGB_MATRIX_ENABLE
#    define WS2812_DI_PIN B0
#    define RGB_DI_PIN B0
#    define RGB_MATRIX_LED_COUNT 82

    /* RGB Matrix effect */

M keyboards/fancytech/fancyalice66/info.json => keyboards/fancytech/fancyalice66/info.json +3 -0
@@ 165,6 165,9 @@
        "pid": "0x3663",
        "vid": "0xECED"
    },
    "ws2812": {
        "pin": "B0"
    },
    "layouts": {
        "LAYOUT": {
            "layout": [

M keyboards/fungo/rev1/config.h => keyboards/fungo/rev1/config.h +0 -2
@@ 23,8 23,6 @@
/**       public parameter       **/
/*************************************/

#define MATRIX_IO_DELAY 15  // default  30

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE


M keyboards/fungo/rev1/info.json => keyboards/fungo/rev1/info.json +2 -1
@@ 10,7 10,8 @@
  },
  "matrix_pins": {
    "cols": ["F4", "F5", "F6", "F7", "B1", "B3", "B2"],
    "rows": ["D4", "C6", "D7", "E6", "B4", "B5"]
    "rows": ["D4", "C6", "D7", "E6", "B4", "B5"],
    "io_delay": 15
  },
  "diode_direction": "COL2ROW",
  "split": {

M keyboards/handwired/datahand/config.h => keyboards/handwired/datahand/config.h +0 -2
@@ 20,8 20,6 @@
#define MATRIX_ROWS 13
#define MATRIX_COLS 4

//#define DIODE_DIRECTION

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

M keyboards/handwired/split65/promicro/config.h => keyboards/handwired/split65/promicro/config.h +0 -2
@@ 15,8 15,6 @@
 */
#pragma once

#define MATRIX_IO_DELAY 5

#define SELECT_SOFT_SERIAL_SPEED 1

// Feature diable options

M keyboards/handwired/split65/promicro/info.json => keyboards/handwired/split65/promicro/info.json +2 -1
@@ 1,7 1,8 @@
{
    "matrix_pins": {
        "cols": ["F4", "F5", "F6", "F7", "B1", "B3", "B2", "B6"],
        "rows": ["D4", "C6", "D7", "E6", "B4"]
        "rows": ["D4", "C6", "D7", "E6", "B4"],
        "io_delay": 5
    },
    "diode_direction": "COL2ROW",
    "split": {

M keyboards/handwired/split65/stm32/config.h => keyboards/handwired/split65/stm32/config.h +0 -2
@@ 21,8 21,6 @@
#define AUDIO_PIN_ALT A4
#define AUDIO_PIN_ALT_AS_NEGATIVE

#define MATRIX_IO_DELAY 5

#define SELECT_SOFT_SERIAL_SPEED 1
#define SERIAL_USART_DRIVER SD1
#define SERIAL_USART_TX_PAL_MODE 7

M keyboards/handwired/split65/stm32/info.json => keyboards/handwired/split65/stm32/info.json +2 -1
@@ 1,7 1,8 @@
{
    "matrix_pins": {
        "cols": ["A2", "A1", "A0", "B8", "B13", "B14", "B15", "B9"],
        "rows": ["B5", "B4", "B3", "B2", "B1"]
        "rows": ["B5", "B4", "B3", "B2", "B1"],
        "io_delay": 5
    },
    "diode_direction": "COL2ROW",
    "split": {

M keyboards/hineybush/hbcp/config.h => keyboards/hineybush/hbcp/config.h +0 -3
@@ 35,9 35,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { B1, B6, D0, C7, C6, C5 }
#define MATRIX_COL_PINS { F0, F1, F2, F3, F4, F5, F6, F7, A0, A1, A2, A3, A4, A5, B5, B4, B3, B2 }

//EITHERWAY is supported through a custom matrix
//#define DIODE_DIRECTION EITHERWAY

#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL

M keyboards/idobao/id42/config.h => keyboards/idobao/id42/config.h +0 -4
@@ 3,10 3,6 @@

#pragma once

/* Change the USB polling rate [default = 1000Hz (1ms)] and
 * use larger value of keys per scan for elite games */
#define USB_POLLING_INTERVAL_MS  2  // 500Hz

/* LED Matrix & Animations */
#ifdef RGB_MATRIX_ENABLE


M keyboards/idobao/id42/info.json => keyboards/idobao/id42/info.json +2 -1
@@ 30,7 30,8 @@
        "vid": "0x6964",
        "pid": "0x0042",
        "device_version": "1.0.0",
        "force_nkro": true
        "force_nkro": true,
        "polling_interval": 2
      },
    "layouts": {
        "LAYOUT": {

M keyboards/jadookb/jkb65/config.h => keyboards/jadookb/jkb65/config.h +0 -1
@@ 21,7 21,6 @@
#define RGB_DISABLE_WHEN_USB_SUSPENDED
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES
#define RGB_MATRIX_TIMEOUT 90000
#define RGB_MATRIX_LED_PROCESS_LIMIT 4
#define RGB_MATRIX_LED_FLUSH_LIMIT 26
#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_ALL

M keyboards/jadookb/jkb65/info.json => keyboards/jadookb/jkb65/info.json +2 -1
@@ 10,7 10,8 @@
        "pin": "F0"
    },
    "rgb_matrix": {
        "driver": "WS2812"
        "driver": "WS2812",
        "timeout": 90000
    },
    "processor": "atmega32u4",
    "bootloader": "atmel-dfu",

M keyboards/jones/v03/config.h => keyboards/jones/v03/config.h +0 -4
@@ 37,10 37,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { D4, D7, C7, F1, F4, F5, D6, D5, E6, B0, B1 }
#define MATRIX_COL_PINS { D4, D7, C7, F1, F4, F5, D6, D5, E6, B0, B1 }

/* COL2ROW, ROW2COL*/
// No need to define DIODE_DIRECTION for Jones' custom Round-Robin matrix.
//#define DIODE_DIRECTION COL2ROW

/* Audio */
#ifdef AUDIO_ENABLE
  #define AUDIO_PIN C6

M keyboards/jones/v03_1/config.h => keyboards/jones/v03_1/config.h +0 -4
@@ 37,10 37,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { D4, D7, C7, F1, F4, F5, D6, D5, E6, B0, B1 }
#define MATRIX_COL_PINS { D4, D7, C7, F1, F4, F5, D6, D5, E6, B0, B1 }

/* COL2ROW, ROW2COL*/
// No need to define DIODE_DIRECTION for Jones' custom Round-Robin matrix.
//#define DIODE_DIRECTION COL2ROW

/* Audio */
#ifdef AUDIO_ENABLE
  #define AUDIO_PIN C6

M keyboards/junco/info.json => keyboards/junco/info.json +21 -0
@@ 8,6 8,11 @@
        "pid": "0x4A13",
        "device_version": "1.0.0"
    },
    "matrix_pins": {
        "cols": ["GP2", "GP3", "GP4", "GP5", "GP6", "GP7"],
        "rows": ["GP8", "GP9", "GP10", "GP11", "GP12"]
    },
    "diode_direction": "COL2ROW",
    "ws2812": {
        "pin": "GP15",
        "driver": "vendor"


@@ 15,6 20,22 @@
    "rgb_matrix": {
        "driver": "WS2812"
    },
    "encoder": {
        "rotary": [
            {"pin_a": "GP16", "pin_b": "GP17"},
            {"pin_a": "GP14", "pin_b": "GP13"}
        ]
    },
    "split": {
        "encoder": {
            "right": {
                "rotary": [
                    {"pin_a": "GP14", "pin_b": "GP13"},
                    {"pin_a": "GP16", "pin_b": "GP17"}
                ]
            }
        }
    },
    "processor": "RP2040",
    "bootloader": "rp2040",
    "layouts": {

M keyboards/junco/rev1/config.h => keyboards/junco/rev1/config.h +0 -23
@@ 3,13 3,6 @@

#pragma once

// Electrical Wiring Stuff
#define MATRIX_ROW_PINS \
    { GP8, GP9, GP10, GP11, GP12 }
#define MATRIX_COL_PINS \
    { GP2, GP3, GP4, GP5, GP6, GP7 }
#define DIODE_DIRECTION COL2ROW

// Split Keyboard Stuff
#define EE_HANDS                 // Sets the keyboard’s handedness using EEPROM
#define SERIAL_USART_FULL_DUPLEX // Use full duplex communication (TRRS)


@@ 24,19 17,3 @@
        { 37, 37 } // 37 LEDs on each side

#endif

/* Rotary Encoders Definition */
// Indexing goes from physical leftmost to rightmost
// 0: left-half left | 1: left-half right | 2: right-half left | 3: right-half right
#ifdef ENCODER_ENABLE

#    define ENCODERS_PAD_A \
        { GP16, GP14 }
#    define ENCODERS_PAD_B \
        { GP17, GP13 }
#    define ENCODERS_PAD_A_RIGHT \
        { GP14, GP16 }
#    define ENCODERS_PAD_B_RIGHT \
        { GP13, GP17 }

#endif

M keyboards/keebio/cepstrum/rev1/config.h => keyboards/keebio/cepstrum/rev1/config.h +0 -1
@@ 56,7 56,6 @@

#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
#define RGB_MATRIX_DEFAULT_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
#define WS2812_DI_PIN GP18
#define RGB_MATRIX_LED_COUNT 96
#define RGB_DISABLE_WHEN_USB_SUSPENDED
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS

M keyboards/keebio/cepstrum/rev1/info.json => keyboards/keebio/cepstrum/rev1/info.json +3 -0
@@ 120,6 120,9 @@
            ]
        }
    },
    "ws2812": {
        "pin": "GP18"
    },
    "rgb_matrix": {
        "driver": "WS2812",
        "split_count": [48, 48],

M keyboards/kmac/config.h => keyboards/kmac/config.h +0 -3
@@ 32,9 32,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS \
    { B6, C6, C7, F1, F0, B5, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN }

/* COL2ROW, ROW2COL*/
//#define DIODE_DIRECTION

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

M keyboards/kmac_pad/config.h => keyboards/kmac_pad/config.h +0 -3
@@ 30,9 30,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { E2, D0, D1, D2, D3, D5 }
#define MATRIX_COL_PINS { C7, C6, B6, B5 }

/* COL2ROW, ROW2COL*/
// #define DIODE_DIRECTION COL2ROW

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

M keyboards/kmini/config.h => keyboards/kmini/config.h +0 -3
@@ 28,6 28,3 @@
*/
#define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
#define MATRIX_COL_PINS { }

/* COL2ROW, ROW2COL*/
//#define DIODE_DIRECTION

M keyboards/kprepublic/bm80hsrgb/config.h => keyboards/kprepublic/bm80hsrgb/config.h +0 -1
@@ 23,7 23,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
//#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_TIMEOUT 0 // number of milliseconds to wait until rgb automatically turns off
//#define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
#define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
// #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255

D keyboards/mmkzoo65/config.h => keyboards/mmkzoo65/config.h +0 -20
@@ 1,20 0,0 @@
/* Copyright 2021 TW59420 <https://github.com/TW59420>
 *
 * 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

/* 将USB 轮询速率更改为 1000hz 并为精英游戏每次扫描使用更大的密钥*/
#define USB_POLLING_INTERVAL_MS  2

M keyboards/mmkzoo65/info.json => keyboards/mmkzoo65/info.json +2 -1
@@ 7,7 7,8 @@
        "vid": "0x7BA1",
        "pid": "0x6505",
        "device_version": "0.0.1",
        "force_nkro": true
        "force_nkro": true,
        "polling_interval": 2
    },
    "matrix_pins": {
        "cols": ["B1", "F0", "F1", "F4", "F5", "F6", "F7", "D4", "D6", "D7", "B4", "B5", "B6", "C6", "C7"],

M keyboards/mode/m65ha_alpha/m65ha_alpha.c => keyboards/mode/m65ha_alpha/m65ha_alpha.c +0 -1
@@ 21,7 21,6 @@ void board_init(void) {
    setPinInput(B10);
}

#define LED_PIN_ON_STATE 1
void led_init_ports(void) {

/** If the OPENDRAIN_INDICATORS option is not defined in config.h, the indicator

M keyboards/mode/m65hi_alpha/m65hi_alpha.c => keyboards/mode/m65hi_alpha/m65hi_alpha.c +0 -1
@@ 21,7 21,6 @@ void board_init(void) {
    setPinInput(B10);
}

#define LED_PIN_ON_STATE 1
void led_init_ports(void) {

/** If the OPENDRAIN_INDICATORS option is not defined in config.h, the indicator

M keyboards/mode/m65s/m65s.c => keyboards/mode/m65s/m65s.c +0 -1
@@ 21,7 21,6 @@ void board_init(void) {
    setPinInput(B10);
}

#define LED_PIN_ON_STATE 1
void led_init_ports(void) {

/** If the OPENDRAIN_INDICATORS option is not defined in config.h, the indicator

M keyboards/nullbitsco/snap/config.h => keyboards/nullbitsco/snap/config.h +0 -6
@@ 69,12 69,6 @@
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE

/* Optional encoder pins */
#define ENCODERS_PAD_A { B3 }
#define ENCODERS_PAD_B { B1 }
#define ENCODERS_PAD_A_RIGHT { B4 }
#define ENCODERS_PAD_B_RIGHT { B5 }

/* Optional speaker pin */
#define AUDIO_PIN B6


M keyboards/nullbitsco/snap/info.json => keyboards/nullbitsco/snap/info.json +14 -0
@@ 7,12 7,26 @@
        "pid": "0x6063",
        "device_version": "0.0.1"
    },
    "encoder": {
        "rotary": [
            {"pin_a": "B3", "pin_b": "B1"}
        ]
    },
    "rgblight": {
        "led_count": 10,
        "sleep": true,
        "led_map": [8, 9, 0, 1, 2, 6, 7, 3, 4, 5],
        "split_count": [5, 5]
    },
    "split": {
        "encoder": {
            "right": {
                "rotary": [
                    {"pin_a": "B4", "pin_b": "B5"}
                ]
            }
        }
    },
    "ws2812": {
        "pin": "B2"
    },

M keyboards/rgbkb/mun/config.h => keyboards/rgbkb/mun/config.h +0 -2
@@ 9,8 9,6 @@

#pragma once

#define MATRIX_IO_DELAY 5

#define BUSY_WAIT
#define BUSY_WAIT_INSTRUCTIONS 35 // Increase if two rows are pressed at the same time.
#define GPIO_INPUT_PIN_DELAY 10

M keyboards/rgbkb/mun/rev1/info.json => keyboards/rgbkb/mun/rev1/info.json +2 -1
@@ 21,7 21,8 @@
    },
    "matrix_pins": {
        "cols": ["A0", "B11", "B0", "B10", "B12", "B2", "A8"],
        "rows": ["A1", "A3", "B3", "A13", "B15", null, null]
        "rows": ["A1", "A3", "B3", "A13", "B15", null, null],
        "io_delay": 5
    },
    "diode_direction": "COL2ROW",
    "encoder": {

M keyboards/rgbkb/sol3/config.h => keyboards/rgbkb/sol3/config.h +0 -2
@@ 9,8 9,6 @@

#pragma once

#define MATRIX_IO_DELAY 5

#define BUSY_WAIT
#define BUSY_WAIT_INSTRUCTIONS 35 // Increase if two rows are pressed at the same time.
#define GPIO_INPUT_PIN_DELAY 10

M keyboards/rgbkb/sol3/rev1/info.json => keyboards/rgbkb/sol3/rev1/info.json +2 -1
@@ 21,7 21,8 @@
    },
    "matrix_pins": {
        "cols": ["A6", "A7", "B0", "B2", "B1", "B9", "B3", "B4"],
        "rows": ["B15", "A8", "A15", "B12", "A3", null]
        "rows": ["B15", "A8", "A15", "B12", "A3", null],
        "io_delay": 5
    },
    "diode_direction": "COL2ROW",
    "encoder": {

M keyboards/sentraq/s60_x/default/config.h => keyboards/sentraq/s60_x/default/config.h +0 -3
@@ 6,7 6,4 @@
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define LOCKING_SUPPORT_ENABLE
#define LOCKING_RESYNC_ENABLE

#define NO_ACTION_ONESHOT

M keyboards/smithrune/iron165r2/iron165r2.c => keyboards/smithrune/iron165r2/iron165r2.c +0 -2
@@ 28,8 28,6 @@ void board_init(void) {
#endif
}

#define LED_PIN_ON_STATE 1

bool led_update_kb(led_t led_state) {
    bool res = led_update_user(led_state);
    if(res) writePin(LED_CAPS_LOCK_PIN, led_state.caps_lock);

M keyboards/soda/pocket/config.h => keyboards/soda/pocket/config.h +0 -2
@@ 15,8 15,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define LED_NUM_LOCK_PIN B15

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

M keyboards/soda/pocket/info.json => keyboards/soda/pocket/info.json +3 -0
@@ 9,6 9,9 @@
        "device_version": "1.0.2",
        "force_nkro": true
    },
    "indicators": {
        "num_lock": "B15"
    },
    "ws2812": {
        "pin": "C15"
    },

M keyboards/tkw/grandiceps/config.h => keyboards/tkw/grandiceps/config.h +0 -2
@@ 17,8 17,6 @@

#define SELECT_SOFT_SERIAL_SPEED 1

#define MATRIX_IO_DELAY 5

#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL

M keyboards/tkw/grandiceps/info.json => keyboards/tkw/grandiceps/info.json +2 -1
@@ 17,7 17,8 @@
    },
    "matrix_pins": {
        "cols": ["B0", "A7", "A3", "A5", "A4", "A2"],
        "rows": ["B12", "A6", "B13", "B9", "B8"]
        "rows": ["B12", "A6", "B13", "B9", "B8"],
        "io_delay": 5
    },
    "diode_direction": "COL2ROW",
    "encoder": {

M keyboards/tkw/stoutgat/v2/config.h => keyboards/tkw/stoutgat/v2/config.h +0 -2
@@ 15,8 15,6 @@
 */
#pragma once

#define MATRIX_IO_DELAY 5

#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL

M keyboards/tkw/stoutgat/v2/info.json => keyboards/tkw/stoutgat/v2/info.json +2 -1
@@ 18,7 18,8 @@
    },
    "matrix_pins": {
        "cols": ["B0", "A7", "A6", "A5", "A4", "A3", "A1", "A0", "C15", "C14", "C13", "A15", "B3", "B4", "B5"],
        "rows": ["B6", "A2", "B7", "B9", "B8"]
        "rows": ["B6", "A2", "B7", "B9", "B8"],
        "io_delay": 5
    },
    "diode_direction": "COL2ROW",
    "encoder": {

M keyboards/vertex/arc60h/config.h => keyboards/vertex/arc60h/config.h +0 -3
@@ 16,9 16,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define LED_CAPS_LOCK_PIN C13
#define LED_PIN_ON_STATE 0

#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL

M keyboards/vertex/arc60h/info.json => keyboards/vertex/arc60h/info.json +4 -0
@@ 9,6 9,10 @@
        "device_version": "0.0.1",
        "force_nkro": true
    },
    "indicators": {
        "caps_lock": "C13",
        "on_state": 0
    },
    "rgblight": {
        "led_count": 9
    },

M keyboards/woodkeys/meira/config.h => keyboards/woodkeys/meira/config.h +0 -3
@@ 22,7 22,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROWS 4
#define MATRIX_COLS 12

/* COL2ROW, ROW2COL*/
//#define DIODE_DIRECTION

#define BACKLIGHT_PWM_MAP {2, 4, 8, 16, 40, 55, 70, 128, 200, 255}

M keyboards/zvecr/split_blackpill/config.h => keyboards/zvecr/split_blackpill/config.h +0 -2
@@ 15,8 15,6 @@
 */
#pragma once

#define MATRIX_IO_DELAY 5

#define SPLIT_HAND_PIN B3
#define SELECT_SOFT_SERIAL_SPEED 0


M keyboards/zvecr/split_blackpill/info.json => keyboards/zvecr/split_blackpill/info.json +2 -1
@@ 10,7 10,8 @@
    },
    "matrix_pins": {
        "cols": ["B11", "B10", "B1", "B0", "A7", "A6"],
        "rows": ["B15", "B14", "B13", "B12"]
        "rows": ["B15", "B14", "B13", "B12"],
        "io_delay": 5
    },
    "diode_direction": "COL2ROW",
    "split": {

M keyboards/zvecr/zv48/config.h => keyboards/zvecr/zv48/config.h +0 -2
@@ 15,8 15,6 @@
 */
#pragma once

#define MATRIX_IO_DELAY 5

#define SPLIT_HAND_PIN B9
//#define SELECT_SOFT_SERIAL_SPEED 0
#define SERIAL_USART_SPEED 921600

M keyboards/zvecr/zv48/info.json => keyboards/zvecr/zv48/info.json +2 -1
@@ 10,7 10,8 @@
    },
    "matrix_pins": {
        "cols": ["B15", "B10", "B0", "A5", "A4", "A3"],
        "rows": ["A10", "A15", "B3", "B4"]
        "rows": ["A10", "A15", "B3", "B4"],
        "io_delay": 5
    },
    "diode_direction": "COL2ROW",
    "encoder": {