From 45b710f9e16733ab73af5f2ed1b0b13233db49e9 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Fri, 12 Apr 2024 04:36:31 +0100 Subject: Migrate build target markers to keyboard.json - X (#23460) --- keyboards/xiudi/xd002/info.json | 30 ---------------------------- keyboards/xiudi/xd002/keyboard.json | 40 +++++++++++++++++++++++++++++++++++++ keyboards/xiudi/xd002/rules.mk | 25 +---------------------- 3 files changed, 41 insertions(+), 54 deletions(-) delete mode 100644 keyboards/xiudi/xd002/info.json create mode 100644 keyboards/xiudi/xd002/keyboard.json (limited to 'keyboards/xiudi/xd002') diff --git a/keyboards/xiudi/xd002/info.json b/keyboards/xiudi/xd002/info.json deleted file mode 100644 index 1e0b22f96b..0000000000 --- a/keyboards/xiudi/xd002/info.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "keyboard_name": "XD002", - "manufacturer": "XIUDI", - "url": "https://kprepublic.com/products/xd002-xiudi-2-custom-mechanical-keyboard-2-keys-underglow-and-switch-rgb-pcb-programmed-hot-swappable-macro-key-aluminum-case", - "maintainer": "zvecr", - "usb": { - "vid": "0x7844", - "pid": "0x0202", - "device_version": "0.0.1" - }, - "rgblight": { - "led_count": 2 - }, - "ws2812": { - "pin": "B2" - }, - "matrix_pins": { - "direct": [ - ["B0", "B1"] - ] - }, - "layouts": { - "LAYOUT": { - "layout": [ - {"x": 0, "y": 0, "matrix": [0, 0]}, - {"x": 1, "y": 0, "matrix": [0, 1]} - ] - } - } -} diff --git a/keyboards/xiudi/xd002/keyboard.json b/keyboards/xiudi/xd002/keyboard.json new file mode 100644 index 0000000000..98b06cb84a --- /dev/null +++ b/keyboards/xiudi/xd002/keyboard.json @@ -0,0 +1,40 @@ +{ + "keyboard_name": "XD002", + "manufacturer": "XIUDI", + "url": "https://kprepublic.com/products/xd002-xiudi-2-custom-mechanical-keyboard-2-keys-underglow-and-switch-rgb-pcb-programmed-hot-swappable-macro-key-aluminum-case", + "maintainer": "zvecr", + "usb": { + "vid": "0x7844", + "pid": "0x0202", + "device_version": "0.0.1" + }, + "processor": "attiny85", + "bootloader": "custom", + "build": { + "lto": true + }, + "features": { + "grave_esc": false, + "magic": false, + "space_cadet": false + }, + "rgblight": { + "led_count": 2 + }, + "ws2812": { + "pin": "B2" + }, + "matrix_pins": { + "direct": [ + ["B0", "B1"] + ] + }, + "layouts": { + "LAYOUT": { + "layout": [ + {"x": 0, "y": 0, "matrix": [0, 0]}, + {"x": 1, "y": 0, "matrix": [0, 1]} + ] + } + } +} diff --git a/keyboards/xiudi/xd002/rules.mk b/keyboards/xiudi/xd002/rules.mk index 70c620c8f0..e31f5d531f 100644 --- a/keyboards/xiudi/xd002/rules.mk +++ b/keyboards/xiudi/xd002/rules.mk @@ -1,26 +1,3 @@ -# MCU name -MCU = attiny85 - -# Bootloader selection -BOOTLOADER = custom +# custom bootloader OPT_DEFS += -DBOOTLOADER_SIZE=1862 PROGRAM_CMD = micronucleus --run $(BUILD_DIR)/$(TARGET).hex - -# 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 - -# Save as much space as we can... -LTO_ENABLE = yes -GRAVE_ESC_ENABLE = no -MAGIC_ENABLE = no -SPACE_CADET_ENABLE = no -- cgit v1.2.3