From 7be23a9cb4f40841fc5394395ecf572a13636943 Mon Sep 17 00:00:00 2001 From: James Young <18669334+noroadsleft@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:15:34 -0700 Subject: [PATCH] Data-Driven Keyboard Conversions: I (#23533) --- keyboards/ibm/model_m/mschwingen/info.json | 12 +++++++++++ keyboards/ibm/model_m/mschwingen/rules.mk | 20 +------------------ .../teensypp/{info.json => keyboard.json} | 5 +++++ keyboards/ibm/model_m/teensypp/rules.mk | 12 ----------- .../model_m_4th_gen/overnumpad_1xb/info.json | 11 +++++++++- .../model_m_4th_gen/overnumpad_1xb/rules.mk | 16 --------------- .../rev1/{info.json => keyboard.json} | 6 ++++++ keyboards/ibnuda/squiggle/rev1/rules.mk | 12 ----------- .../idobao/id42/{info.json => keyboard.json} | 3 ++- keyboards/idobao/id42/rules.mk | 4 ---- .../idobao/id61/{info.json => keyboard.json} | 3 ++- keyboards/idobao/id61/rules.mk | 5 ----- .../idobao/id63/{info.json => keyboard.json} | 3 ++- keyboards/idobao/id63/rules.mk | 4 ---- .../idobao/id67/{info.json => keyboard.json} | 3 ++- keyboards/idobao/id67/rules.mk | 4 ---- .../id80/v3/ansi/{info.json => keyboard.json} | 3 ++- keyboards/idobao/id80/v3/ansi/rules.mk | 4 ---- .../id87/v2/{info.json => keyboard.json} | 3 ++- keyboards/idobao/id87/v2/rules.mk | 4 ---- .../montex/v2/{info.json => keyboard.json} | 3 ++- keyboards/idobao/montex/v2/rules.mk | 4 ---- keyboards/ingrained/info.json | 12 ++++++++++- keyboards/ingrained/rules.mk | 15 -------------- keyboards/inland/kb83/info.json | 9 +++++++++ keyboards/inland/kb83/rules.mk | 18 +---------------- .../input_club/ergodox_infinity/info.json | 12 +++++++++++ .../input_club/ergodox_infinity/rules.mk | 19 ------------------ 28 files changed, 81 insertions(+), 148 deletions(-) rename keyboards/ibm/model_m/teensypp/{info.json => keyboard.json} (98%) delete mode 100644 keyboards/ibm/model_m/teensypp/rules.mk rename keyboards/ibnuda/squiggle/rev1/{info.json => keyboard.json} (99%) delete mode 100644 keyboards/ibnuda/squiggle/rev1/rules.mk rename keyboards/idobao/id42/{info.json => keyboard.json} (99%) delete mode 100755 keyboards/idobao/id42/rules.mk rename keyboards/idobao/id61/{info.json => keyboard.json} (99%) delete mode 100644 keyboards/idobao/id61/rules.mk rename keyboards/idobao/id63/{info.json => keyboard.json} (99%) delete mode 100644 keyboards/idobao/id63/rules.mk rename keyboards/idobao/id67/{info.json => keyboard.json} (99%) delete mode 100644 keyboards/idobao/id67/rules.mk rename keyboards/idobao/id80/v3/ansi/{info.json => keyboard.json} (99%) delete mode 100644 keyboards/idobao/id80/v3/ansi/rules.mk rename keyboards/idobao/id87/v2/{info.json => keyboard.json} (99%) delete mode 100644 keyboards/idobao/id87/v2/rules.mk rename keyboards/idobao/montex/v2/{info.json => keyboard.json} (98%) delete mode 100755 keyboards/idobao/montex/v2/rules.mk diff --git a/keyboards/ibm/model_m/mschwingen/info.json b/keyboards/ibm/model_m/mschwingen/info.json index ce740e4a54..0deb57ed03 100644 --- a/keyboards/ibm/model_m/mschwingen/info.json +++ b/keyboards/ibm/model_m/mschwingen/info.json @@ -16,6 +16,18 @@ }, "processor": "atmega32u4", "bootloader": "lufa-dfu", + "features": { + "bootmagic": false, + "mousekey": true, + "extrakey": true, + "console": true, + "command": true, + "key_lock": true, + "dynamic_macro": true + }, + "build": { + "lto": true + }, "layouts": { "LAYOUT": { "layout": [ diff --git a/keyboards/ibm/model_m/mschwingen/rules.mk b/keyboards/ibm/model_m/mschwingen/rules.mk index 7d81ffe326..c86801e409 100644 --- a/keyboards/ibm/model_m/mschwingen/rules.mk +++ b/keyboards/ibm/model_m/mschwingen/rules.mk @@ -1,20 +1,4 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = yes # Console for debug -COMMAND_ENABLE = yes # Commands for debug and configuration -NKRO_ENABLE = no # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output - CUSTOM_MATRIX = lite -KEY_LOCK_ENABLE = yes - -DYNAMIC_MACRO_ENABLE = yes UART_DEBUG = no @@ -22,8 +6,6 @@ SRC += matrix.c UART_DRIVER_REQUIRED = yes SPI_DRIVER_REQUIRED = yes -OPT_DEFS += -DSLEEP_LED_ENABLE # we need our own sleep callbacks to turn of WS2812 LEDs - -LTO_ENABLE = yes +OPT_DEFS += -DSLEEP_LED_ENABLE DEFAULT_FOLDER = ibm/model_m/mschwingen/led_wired diff --git a/keyboards/ibm/model_m/teensypp/info.json b/keyboards/ibm/model_m/teensypp/keyboard.json similarity index 98% rename from keyboards/ibm/model_m/teensypp/info.json rename to keyboards/ibm/model_m/teensypp/keyboard.json index dcbed72aeb..4464a299f6 100644 --- a/keyboards/ibm/model_m/teensypp/info.json +++ b/keyboards/ibm/model_m/teensypp/keyboard.json @@ -15,6 +15,11 @@ "diode_direction": "ROW2COL", "processor": "at90usb1286", "bootloader": "halfkay", + "features": { + "bootmagic": false, + "mousekey": false, + "extrakey": false + }, "layouts": { "LAYOUT": { "layout": [ diff --git a/keyboards/ibm/model_m/teensypp/rules.mk b/keyboards/ibm/model_m/teensypp/rules.mk deleted file mode 100644 index 1eeda920b4..0000000000 --- a/keyboards/ibm/model_m/teensypp/rules.mk +++ /dev/null @@ -1,12 +0,0 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -MOUSEKEY_ENABLE = no # Mouse keys -EXTRAKEY_ENABLE = no # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = no # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output diff --git a/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/info.json b/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/info.json index 37fddaaf8f..0f67e6606d 100644 --- a/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/info.json +++ b/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/info.json @@ -6,7 +6,10 @@ "usb": { "vid": "0x16C0", "pid": "0x27DB", - "device_version": "0.0.1" + "device_version": "0.0.1", + "shared_endpoint": { + "keyboard": true + } }, "indicators": { "caps_lock": "C11", @@ -16,6 +19,12 @@ "processor": "STM32F446", // RET6 "bootloader": "stm32-dfu", "diode_direction": "ROW2COL", + "features": { + "bootmagic": true, + "mousekey": true, + "extrakey": true, + "haptic": true + }, "matrix_pins": { // All pins in order from left-to-right, as seen on the keyboard: // C3, C2, C1, C0, A3, A4, A5, A6, A7, C4, C5, B0, B1, B10, B12, B13, B14, B15, C6, C7, C8, C9, A8, A9, A10, diff --git a/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/rules.mk b/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/rules.mk index 9131708828..a521203b32 100644 --- a/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/rules.mk +++ b/keyboards/ibm/model_m_4th_gen/overnumpad_1xb/rules.mk @@ -1,17 +1 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = no # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -ENCODER_ENABLE = no # Enable rotary encoder support -AUDIO_ENABLE = no # Audio output -KEYBOARD_SHARED_EP = yes # Free up some extra endpoints - needed if console+mouse+extra - -HAPTIC_ENABLE = yes HAPTIC_DRIVER = solenoid diff --git a/keyboards/ibnuda/squiggle/rev1/info.json b/keyboards/ibnuda/squiggle/rev1/keyboard.json similarity index 99% rename from keyboards/ibnuda/squiggle/rev1/info.json rename to keyboards/ibnuda/squiggle/rev1/keyboard.json index 862b6323b0..3baafefc84 100644 --- a/keyboards/ibnuda/squiggle/rev1/info.json +++ b/keyboards/ibnuda/squiggle/rev1/keyboard.json @@ -19,6 +19,12 @@ }, "processor": "atmega32u4", "bootloader": "caterina", + "features": { + "bootmagic": false, + "mousekey": false, + "extrakey": false, + "console": true + }, "community_layouts": ["split_3x5_3"], "layouts": { "LAYOUT": { diff --git a/keyboards/ibnuda/squiggle/rev1/rules.mk b/keyboards/ibnuda/squiggle/rev1/rules.mk deleted file mode 100644 index 2382d57035..0000000000 --- a/keyboards/ibnuda/squiggle/rev1/rules.mk +++ /dev/null @@ -1,12 +0,0 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -MOUSEKEY_ENABLE = no # Mouse keys -EXTRAKEY_ENABLE = no # Audio control and System control -CONSOLE_ENABLE = yes # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = no # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output diff --git a/keyboards/idobao/id42/info.json b/keyboards/idobao/id42/keyboard.json similarity index 99% rename from keyboards/idobao/id42/info.json rename to keyboards/idobao/id42/keyboard.json index ace2033493..14db7641ea 100644 --- a/keyboards/idobao/id42/info.json +++ b/keyboards/idobao/id42/keyboard.json @@ -10,7 +10,8 @@ "extrakey": true, "console": false, "command": false, - "nkro": true + "nkro": true, + "rgb_matrix": true }, "ws2812": { "pin": "B3" diff --git a/keyboards/idobao/id42/rules.mk b/keyboards/idobao/id42/rules.mk deleted file mode 100755 index 58e39b17a5..0000000000 --- a/keyboards/idobao/id42/rules.mk +++ /dev/null @@ -1,4 +0,0 @@ -# This file intentionally left blank -# ** settings are data driven & stored in `info.json` ** - -RGB_MATRIX_ENABLE = yes diff --git a/keyboards/idobao/id61/info.json b/keyboards/idobao/id61/keyboard.json similarity index 99% rename from keyboards/idobao/id61/info.json rename to keyboards/idobao/id61/keyboard.json index 0b1c51279d..cb55f1750d 100644 --- a/keyboards/idobao/id61/info.json +++ b/keyboards/idobao/id61/keyboard.json @@ -10,7 +10,8 @@ "console": false, "extrakey": true, "mousekey": true, - "nkro": true + "nkro": true, + "rgb_matrix": true }, "ws2812": { "pin": "F0" diff --git a/keyboards/idobao/id61/rules.mk b/keyboards/idobao/id61/rules.mk deleted file mode 100644 index ed51a57621..0000000000 --- a/keyboards/idobao/id61/rules.mk +++ /dev/null @@ -1,5 +0,0 @@ -# Copyright 2022 Vino Rodrigues (@vinorodrigues) -# SPDX-License-Identifier: GPL-2.0-or-later -# ** settings are data driven & stored in `info.json` ** - -RGB_MATRIX_ENABLE = yes diff --git a/keyboards/idobao/id63/info.json b/keyboards/idobao/id63/keyboard.json similarity index 99% rename from keyboards/idobao/id63/info.json rename to keyboards/idobao/id63/keyboard.json index 573fb44030..1969ca4cf7 100644 --- a/keyboards/idobao/id63/info.json +++ b/keyboards/idobao/id63/keyboard.json @@ -10,7 +10,8 @@ "console": false, "extrakey": true, "mousekey": true, - "nkro": true + "nkro": true, + "rgb_matrix": true }, "ws2812": { "pin": "B7" diff --git a/keyboards/idobao/id63/rules.mk b/keyboards/idobao/id63/rules.mk deleted file mode 100644 index 58e39b17a5..0000000000 --- a/keyboards/idobao/id63/rules.mk +++ /dev/null @@ -1,4 +0,0 @@ -# This file intentionally left blank -# ** settings are data driven & stored in `info.json` ** - -RGB_MATRIX_ENABLE = yes diff --git a/keyboards/idobao/id67/info.json b/keyboards/idobao/id67/keyboard.json similarity index 99% rename from keyboards/idobao/id67/info.json rename to keyboards/idobao/id67/keyboard.json index 7c5308d315..64c3623fd6 100644 --- a/keyboards/idobao/id67/info.json +++ b/keyboards/idobao/id67/keyboard.json @@ -10,7 +10,8 @@ "extrakey": true, "command": false, "console": false, - "nkro": true + "nkro": true, + "rgb_matrix": true }, "ws2812": { "pin": "F0" diff --git a/keyboards/idobao/id67/rules.mk b/keyboards/idobao/id67/rules.mk deleted file mode 100644 index 4341508fde..0000000000 --- a/keyboards/idobao/id67/rules.mk +++ /dev/null @@ -1,4 +0,0 @@ -# Build Options -# change yes to no to disable -# -RGB_MATRIX_ENABLE = yes # Enable RGB Matrix feature diff --git a/keyboards/idobao/id80/v3/ansi/info.json b/keyboards/idobao/id80/v3/ansi/keyboard.json similarity index 99% rename from keyboards/idobao/id80/v3/ansi/info.json rename to keyboards/idobao/id80/v3/ansi/keyboard.json index 19dc8c67a7..6200c2e88c 100644 --- a/keyboards/idobao/id80/v3/ansi/info.json +++ b/keyboards/idobao/id80/v3/ansi/keyboard.json @@ -10,7 +10,8 @@ "extrakey": true, "console": false, "command": false, - "nkro": true + "nkro": true, + "rgb_matrix": true }, "rgb_matrix": { "animations": { diff --git a/keyboards/idobao/id80/v3/ansi/rules.mk b/keyboards/idobao/id80/v3/ansi/rules.mk deleted file mode 100644 index 58e39b17a5..0000000000 --- a/keyboards/idobao/id80/v3/ansi/rules.mk +++ /dev/null @@ -1,4 +0,0 @@ -# This file intentionally left blank -# ** settings are data driven & stored in `info.json` ** - -RGB_MATRIX_ENABLE = yes diff --git a/keyboards/idobao/id87/v2/info.json b/keyboards/idobao/id87/v2/keyboard.json similarity index 99% rename from keyboards/idobao/id87/v2/info.json rename to keyboards/idobao/id87/v2/keyboard.json index 4a6099207c..0ece932274 100644 --- a/keyboards/idobao/id87/v2/info.json +++ b/keyboards/idobao/id87/v2/keyboard.json @@ -10,7 +10,8 @@ "extrakey": true, "console": false, "command": false, - "nkro": true + "nkro": true, + "rgb_matrix": true }, "ws2812": { "pin": "E2" diff --git a/keyboards/idobao/id87/v2/rules.mk b/keyboards/idobao/id87/v2/rules.mk deleted file mode 100644 index 58e39b17a5..0000000000 --- a/keyboards/idobao/id87/v2/rules.mk +++ /dev/null @@ -1,4 +0,0 @@ -# This file intentionally left blank -# ** settings are data driven & stored in `info.json` ** - -RGB_MATRIX_ENABLE = yes diff --git a/keyboards/idobao/montex/v2/info.json b/keyboards/idobao/montex/v2/keyboard.json similarity index 98% rename from keyboards/idobao/montex/v2/info.json rename to keyboards/idobao/montex/v2/keyboard.json index aefc3e4561..6c00fd538d 100755 --- a/keyboards/idobao/montex/v2/info.json +++ b/keyboards/idobao/montex/v2/keyboard.json @@ -10,7 +10,8 @@ "console": false, "extrakey": true, "mousekey": true, - "nkro": true + "nkro": true, + "rgb_matrix": true }, "ws2812": { "pin": "B1" diff --git a/keyboards/idobao/montex/v2/rules.mk b/keyboards/idobao/montex/v2/rules.mk deleted file mode 100755 index d249ac15a7..0000000000 --- a/keyboards/idobao/montex/v2/rules.mk +++ /dev/null @@ -1,4 +0,0 @@ -# This file intentionally mostly left blank -# ** settings are data driven & stored in `info.json` ** - -RGB_MATRIX_ENABLE = yes diff --git a/keyboards/ingrained/info.json b/keyboards/ingrained/info.json index d9259d5f32..ec6422fb0f 100644 --- a/keyboards/ingrained/info.json +++ b/keyboards/ingrained/info.json @@ -6,10 +6,20 @@ "usb": { "vid": "0xB33F", "pid": "0x58E4", - "device_version": "0.0.1" + "device_version": "0.0.1", + "no_startup_check": true }, "processor": "atmega32u4", "bootloader": "atmel-dfu", + "features": { + "bootmagic": false, + "mousekey": true, + "extrakey": true, + "unicode": true + }, + "build": { + "lto": true + }, "community_layouts": ["split_3x5_3", "split_3x6_3"], "layouts": { "LAYOUT_split_3x6_3": { diff --git a/keyboards/ingrained/rules.mk b/keyboards/ingrained/rules.mk index e9a8002f90..c04c3c92ed 100644 --- a/keyboards/ingrained/rules.mk +++ b/keyboards/ingrained/rules.mk @@ -1,19 +1,4 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = no # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output -UNICODE_ENABLE = yes CUSTOM_MATRIX = lite -NO_USB_STARTUP_CHECK = yes -LTO_ENABLE = yes SRC += matrix.c I2C_DRIVER_REQUIRED = yes diff --git a/keyboards/inland/kb83/info.json b/keyboards/inland/kb83/info.json index b4396fb630..31ca8f1bda 100644 --- a/keyboards/inland/kb83/info.json +++ b/keyboards/inland/kb83/info.json @@ -34,6 +34,15 @@ }, "processor": "WB32FQ95", "bootloader": "wb32-dfu", + "features": { + "bootmagic": true, + "mousekey": false, + "extrakey": true, + "nkro": true, + "rgb_matrix": true, + "dip_switch": true, + "encoder": true + }, "matrix_pins": { "cols": ["C1", "C2", "C3", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "C4", "C5", "B0", "B1", "B2"], "rows": ["B15", "C6", "C7", "C8", "C9", "A8"] diff --git a/keyboards/inland/kb83/rules.mk b/keyboards/inland/kb83/rules.mk index aefdb5a168..2bdd4fd92e 100644 --- a/keyboards/inland/kb83/rules.mk +++ b/keyboards/inland/kb83/rules.mk @@ -1,17 +1 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = no # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -KEYBOARD_SHARED_EP = no -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 -DIP_SWITCH_ENABLE = yes # DPI Switch -ENCODER_ENABLE = yes -RGB_MATRIX_ENABLE = yes -#RGB_MATRIX_CUSTOM_USER = yes #Add turnoff LED +#RGB_MATRIX_CUSTOM_USER = yes diff --git a/keyboards/input_club/ergodox_infinity/info.json b/keyboards/input_club/ergodox_infinity/info.json index 51bf7a5f12..6f47d72685 100644 --- a/keyboards/input_club/ergodox_infinity/info.json +++ b/keyboards/input_club/ergodox_infinity/info.json @@ -43,6 +43,18 @@ }, "processor": "MK20DX256", "bootloader": "kiibohd", + "features": { + "bootmagic": false, + "mousekey": true, + "extrakey": true, + "command": true, + "nkro": true, + "led_matrix": true, + "unicode": true, + "swap_hands": true, + "sleep_led": true, + "st7565": true + }, "board": "IC_TEENSY_3_1", "tapping": { "toggle": 1 diff --git a/keyboards/input_club/ergodox_infinity/rules.mk b/keyboards/input_club/ergodox_infinity/rules.mk index da68a7f25d..c6e2988321 100644 --- a/keyboards/input_club/ergodox_infinity/rules.mk +++ b/keyboards/input_club/ergodox_infinity/rules.mk @@ -1,20 +1 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = yes # Commands for debug and configuration -NKRO_ENABLE = yes # Enable N-Key Rollover -UNICODE_ENABLE = yes # Unicode -SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard -SLEEP_LED_ENABLE = yes - -RGBLIGHT_ENABLE = no - SERIAL_DRIVER = usart - -ST7565_ENABLE = yes - -LED_MATRIX_ENABLE = yes