From 426bb9c651a292dce6ae01e7ed9d41d94dbba99f Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Sat, 30 Mar 2024 10:43:15 +0000 Subject: Migrate features and LTO from rules.mk to data driven (#23302) --- keyboards/keybage/radpad/info.json | 139 ------------------------------ keyboards/keybage/radpad/keyboard.json | 153 +++++++++++++++++++++++++++++++++ keyboards/keybage/radpad/rules.mk | 15 ---- 3 files changed, 153 insertions(+), 154 deletions(-) delete mode 100644 keyboards/keybage/radpad/info.json create mode 100644 keyboards/keybage/radpad/keyboard.json delete mode 100644 keyboards/keybage/radpad/rules.mk (limited to 'keyboards/keybage') diff --git a/keyboards/keybage/radpad/info.json b/keyboards/keybage/radpad/info.json deleted file mode 100644 index 4ee89e9b18..0000000000 --- a/keyboards/keybage/radpad/info.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "keyboard_name": "RadPad", - "manufacturer": "Keybage", - "url": "", - "maintainer": "Brandon Schlack", - "usb": { - "vid": "0x4253", - "pid": "0x5250", - "device_version": "0.0.1" - }, - "matrix_pins": { - "cols": ["E6", "B4", "D7", "B1"], - "rows": ["F5", "B5", "B6", "B2", "B3"] - }, - "diode_direction": "COL2ROW", - "encoder": { - "rotary": [ - {"pin_a": "D4", "pin_b": "C6", "resolution": 2}, - {"pin_a": "F6", "pin_b": "F7", "resolution": 2} - ] - }, - "bootmagic": { - "matrix": [1, 3] - }, - "rgblight": { - "led_count": 16, - "sleep": true, - "animations": { - "breathing": true, - "rainbow_mood": true, - "rainbow_swirl": true, - "snake": true, - "knight": true, - "christmas": true, - "static_gradient": true, - "rgb_test": true, - "alternating": true, - "twinkle": true - } - }, - "ws2812": { - "pin": "F4" - }, - "processor": "atmega32u4", - "bootloader": "caterina", - "layouts": { - "LAYOUT_4x4_encoders": { - "layout": [ - {"matrix": [0, 0], "x": 0, "y": 0}, - - {"matrix": [0, 3], "x": 3, "y": 0}, - - {"matrix": [1, 0], "x": 0, "y": 1}, - {"matrix": [1, 1], "x": 1, "y": 1}, - {"matrix": [1, 2], "x": 2, "y": 1}, - {"matrix": [1, 3], "x": 3, "y": 1}, - - {"matrix": [2, 0], "x": 0, "y": 2}, - {"matrix": [2, 1], "x": 1, "y": 2}, - {"matrix": [2, 2], "x": 2, "y": 2}, - {"matrix": [2, 3], "x": 3, "y": 2}, - - {"matrix": [3, 0], "x": 0, "y": 3}, - {"matrix": [3, 1], "x": 1, "y": 3}, - {"matrix": [3, 2], "x": 2, "y": 3}, - {"matrix": [3, 3], "x": 3, "y": 3}, - - {"matrix": [4, 0], "x": 0, "y": 4}, - {"matrix": [4, 1], "x": 1, "y": 4}, - {"matrix": [4, 2], "x": 2, "y": 4}, - {"matrix": [4, 3], "x": 3, "y": 4} - ] - }, - "LAYOUT_4x3_encoders": { - "layout": [ - {"matrix": [0, 0], "x": 0, "y": 0}, - - {"matrix": [0, 3], "x": 3, "y": 0}, - - {"matrix": [1, 0], "x": 0, "y": 1}, - {"matrix": [1, 1], "x": 1, "y": 1}, - {"matrix": [1, 2], "x": 2, "y": 1}, - {"matrix": [1, 3], "x": 3, "y": 1}, - - {"matrix": [2, 0], "x": 0, "y": 2}, - {"matrix": [2, 1], "x": 1, "y": 2}, - {"matrix": [2, 2], "x": 2, "y": 2}, - {"matrix": [2, 3], "x": 3, "y": 2}, - - {"matrix": [3, 0], "x": 0, "y": 3}, - {"matrix": [3, 1], "x": 1, "y": 3}, - {"matrix": [3, 2], "x": 2, "y": 3}, - {"matrix": [3, 3], "x": 3, "y": 3} - ] - }, - "LAYOUT_3x4_encoders": { - "layout": [ - {"matrix": [0, 1], "x": 0, "y": 0}, - - {"matrix": [0, 3], "x": 2, "y": 0}, - - {"matrix": [1, 1], "x": 0, "y": 1}, - {"matrix": [1, 2], "x": 1, "y": 1}, - {"matrix": [1, 3], "x": 2, "y": 1}, - - {"matrix": [2, 1], "x": 0, "y": 2}, - {"matrix": [2, 2], "x": 1, "y": 2}, - {"matrix": [2, 3], "x": 2, "y": 2}, - - {"matrix": [3, 1], "x": 0, "y": 3}, - {"matrix": [3, 2], "x": 1, "y": 3}, - {"matrix": [3, 3], "x": 2, "y": 3}, - - {"matrix": [4, 1], "x": 0, "y": 4}, - {"matrix": [4, 2], "x": 1, "y": 4}, - {"matrix": [4, 3], "x": 2, "y": 4} - ] - }, - "LAYOUT_3x3_encoders": { - "layout": [ - {"matrix": [0, 1], "x": 0, "y": 0}, - - {"matrix": [0, 3], "x": 2, "y": 0}, - - {"matrix": [1, 1], "x": 0, "y": 1}, - {"matrix": [1, 2], "x": 1, "y": 1}, - {"matrix": [1, 3], "x": 2, "y": 1}, - - {"matrix": [2, 1], "x": 0, "y": 2}, - {"matrix": [2, 2], "x": 1, "y": 2}, - {"matrix": [2, 3], "x": 2, "y": 2}, - - {"matrix": [3, 1], "x": 0, "y": 3}, - {"matrix": [3, 2], "x": 1, "y": 3}, - {"matrix": [3, 3], "x": 2, "y": 3} - ] - } - } -} diff --git a/keyboards/keybage/radpad/keyboard.json b/keyboards/keybage/radpad/keyboard.json new file mode 100644 index 0000000000..84407a9310 --- /dev/null +++ b/keyboards/keybage/radpad/keyboard.json @@ -0,0 +1,153 @@ +{ + "keyboard_name": "RadPad", + "manufacturer": "Keybage", + "url": "", + "maintainer": "Brandon Schlack", + "usb": { + "vid": "0x4253", + "pid": "0x5250", + "device_version": "0.0.1" + }, + "build": { + "lto": true + }, + "features": { + "bootmagic": true, + "command": false, + "console": false, + "encoder": true, + "extrakey": true, + "mousekey": true, + "nkro": false, + "oled": true, + "rgblight": true + }, + "matrix_pins": { + "cols": ["E6", "B4", "D7", "B1"], + "rows": ["F5", "B5", "B6", "B2", "B3"] + }, + "diode_direction": "COL2ROW", + "encoder": { + "rotary": [ + {"pin_a": "D4", "pin_b": "C6", "resolution": 2}, + {"pin_a": "F6", "pin_b": "F7", "resolution": 2} + ] + }, + "bootmagic": { + "matrix": [1, 3] + }, + "rgblight": { + "led_count": 16, + "sleep": true, + "animations": { + "breathing": true, + "rainbow_mood": true, + "rainbow_swirl": true, + "snake": true, + "knight": true, + "christmas": true, + "static_gradient": true, + "rgb_test": true, + "alternating": true, + "twinkle": true + } + }, + "ws2812": { + "pin": "F4" + }, + "processor": "atmega32u4", + "bootloader": "caterina", + "layouts": { + "LAYOUT_4x4_encoders": { + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0}, + + {"matrix": [0, 3], "x": 3, "y": 0}, + + {"matrix": [1, 0], "x": 0, "y": 1}, + {"matrix": [1, 1], "x": 1, "y": 1}, + {"matrix": [1, 2], "x": 2, "y": 1}, + {"matrix": [1, 3], "x": 3, "y": 1}, + + {"matrix": [2, 0], "x": 0, "y": 2}, + {"matrix": [2, 1], "x": 1, "y": 2}, + {"matrix": [2, 2], "x": 2, "y": 2}, + {"matrix": [2, 3], "x": 3, "y": 2}, + + {"matrix": [3, 0], "x": 0, "y": 3}, + {"matrix": [3, 1], "x": 1, "y": 3}, + {"matrix": [3, 2], "x": 2, "y": 3}, + {"matrix": [3, 3], "x": 3, "y": 3}, + + {"matrix": [4, 0], "x": 0, "y": 4}, + {"matrix": [4, 1], "x": 1, "y": 4}, + {"matrix": [4, 2], "x": 2, "y": 4}, + {"matrix": [4, 3], "x": 3, "y": 4} + ] + }, + "LAYOUT_4x3_encoders": { + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0}, + + {"matrix": [0, 3], "x": 3, "y": 0}, + + {"matrix": [1, 0], "x": 0, "y": 1}, + {"matrix": [1, 1], "x": 1, "y": 1}, + {"matrix": [1, 2], "x": 2, "y": 1}, + {"matrix": [1, 3], "x": 3, "y": 1}, + + {"matrix": [2, 0], "x": 0, "y": 2}, + {"matrix": [2, 1], "x": 1, "y": 2}, + {"matrix": [2, 2], "x": 2, "y": 2}, + {"matrix": [2, 3], "x": 3, "y": 2}, + + {"matrix": [3, 0], "x": 0, "y": 3}, + {"matrix": [3, 1], "x": 1, "y": 3}, + {"matrix": [3, 2], "x": 2, "y": 3}, + {"matrix": [3, 3], "x": 3, "y": 3} + ] + }, + "LAYOUT_3x4_encoders": { + "layout": [ + {"matrix": [0, 1], "x": 0, "y": 0}, + + {"matrix": [0, 3], "x": 2, "y": 0}, + + {"matrix": [1, 1], "x": 0, "y": 1}, + {"matrix": [1, 2], "x": 1, "y": 1}, + {"matrix": [1, 3], "x": 2, "y": 1}, + + {"matrix": [2, 1], "x": 0, "y": 2}, + {"matrix": [2, 2], "x": 1, "y": 2}, + {"matrix": [2, 3], "x": 2, "y": 2}, + + {"matrix": [3, 1], "x": 0, "y": 3}, + {"matrix": [3, 2], "x": 1, "y": 3}, + {"matrix": [3, 3], "x": 2, "y": 3}, + + {"matrix": [4, 1], "x": 0, "y": 4}, + {"matrix": [4, 2], "x": 1, "y": 4}, + {"matrix": [4, 3], "x": 2, "y": 4} + ] + }, + "LAYOUT_3x3_encoders": { + "layout": [ + {"matrix": [0, 1], "x": 0, "y": 0}, + + {"matrix": [0, 3], "x": 2, "y": 0}, + + {"matrix": [1, 1], "x": 0, "y": 1}, + {"matrix": [1, 2], "x": 1, "y": 1}, + {"matrix": [1, 3], "x": 2, "y": 1}, + + {"matrix": [2, 1], "x": 0, "y": 2}, + {"matrix": [2, 2], "x": 1, "y": 2}, + {"matrix": [2, 3], "x": 2, "y": 2}, + + {"matrix": [3, 1], "x": 0, "y": 3}, + {"matrix": [3, 2], "x": 1, "y": 3}, + {"matrix": [3, 3], "x": 2, "y": 3} + ] + } + } +} diff --git a/keyboards/keybage/radpad/rules.mk b/keyboards/keybage/radpad/rules.mk deleted file mode 100644 index f1e31ddbdc..0000000000 --- a/keyboards/keybage/radpad/rules.mk +++ /dev/null @@ -1,15 +0,0 @@ -# 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 = yes # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output -ENCODER_ENABLE = yes -OLED_ENABLE = yes -LTO_ENABLE = yes -- cgit v1.2.3