Browse Source

Miscellaneous Data-Driven Keyboard Conversions (#23712)

Converts `rules.mk` entries to data-driven where applicable.

Affects:

  - `handwired/dygma/raise/ansi`
  - `handwired/dygma/raise/iso`
  - `handwired/symmetric70_proto/promicro`
  - `handwired/symmetric70_proto/proton_c`
  - `lazydesigners/dimple/ortho`
  - `lazydesigners/dimple/staggered/rev2`
  - `lazydesigners/dimple/staggered/rev3`
  - `sirius/uni660/rev2/ansi`
  - `sirius/uni660/rev2/iso`
James Young 2 years ago
parent
commit
924147dfe4

+ 7 - 0
keyboards/handwired/dygma/raise/ansi/keyboard.json

@@ -1,4 +1,11 @@
 {
+    "features": {
+        "bootmagic": false,
+        "mousekey": true,
+        "extrakey": true,
+        "rgb_matrix": true,
+        "raw": true
+    },
     "layouts": {
         "LAYOUT_all": {
             "layout": [

+ 0 - 6
keyboards/handwired/dygma/raise/info.json

@@ -25,11 +25,5 @@
         "sleep": true
     },
     "development_board": "blackpill_f411",
-    "features": {
-        "bootmagic": false,
-        "mousekey": true,
-        "extrakey": true,
-        "rgb_matrix": true
-    },
     "debounce": 0
 }

+ 7 - 0
keyboards/handwired/dygma/raise/iso/keyboard.json

@@ -1,4 +1,11 @@
 {
+    "features": {
+        "bootmagic": false,
+        "mousekey": true,
+        "extrakey": true,
+        "rgb_matrix": true,
+        "raw": true
+    },
     "layouts": {
         "LAYOUT_all": {
             "layout": [

+ 0 - 1
keyboards/handwired/dygma/raise/rules.mk

@@ -4,7 +4,6 @@ CUSTOM_MATRIX = lite
 # in the usb driver this triggers that allows mousekeys to work. The same side
 # effect happens if console or midi is enabled -- so something to do with
 # alternate usb endpoints.
-RAW_ENABLE = yes
 
 I2C_DRIVER_REQUIRED = yes
 SRC += matrix.c

+ 5 - 0
keyboards/handwired/symmetric70_proto/promicro/info.json

@@ -1,5 +1,10 @@
 {
     "keyboard_name": "Symmetric70 prototype promicro",
+    "features": {
+        "bootmagic": true,
+        "mousekey": false,
+        "extrakey": false
+    },
     "split": {
         "soft_serial_pin": "D0"
     },

+ 1 - 12
keyboards/handwired/symmetric70_proto/promicro/rules.mk

@@ -1,12 +1 @@
-# Build Options
-#   change yes to no to disable
-#
-BOOTMAGIC_ENABLE = yes      # 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
+# This file intentionally left blank

+ 6 - 1
keyboards/handwired/symmetric70_proto/proton_c/info.json

@@ -1,4 +1,9 @@
 {
     "keyboard_name": "Symmetric70 prototype proton-c",
-    "development_board": "proton_c"
+    "development_board": "proton_c",
+    "features": {
+        "bootmagic": true,
+        "mousekey": false,
+        "extrakey": false
+    }
 }

+ 1 - 12
keyboards/handwired/symmetric70_proto/proton_c/rules.mk

@@ -1,12 +1 @@
-# Build Options
-#   change yes to no to disable
-#
-BOOTMAGIC_ENABLE = yes      # 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
+# This file intentionally left blank

+ 0 - 1
keyboards/lazydesigners/dimple/ortho/rules.mk

@@ -1,4 +1,3 @@
 # Disable unsupported hardware
 BACKLIGHT_SUPPORTED = no
-RGBLIGHT_ENABLE = no
 AUDIO_SUPPORTED = no

+ 0 - 1
keyboards/lazydesigners/dimple/staggered/rev2/rules.mk

@@ -1,3 +1,2 @@
 # Disable unsupported hardware
-RGBLIGHT_ENABLE = no
 AUDIO_SUPPORTED = no

+ 0 - 1
keyboards/lazydesigners/dimple/staggered/rev3/rules.mk

@@ -1,3 +1,2 @@
 # Disable unsupported hardware
-RGBLIGHT_ENABLE = no
 AUDIO_SUPPORTED = no

+ 9 - 0
keyboards/sirius/uni660/rev2/ansi/keyboard.json

@@ -8,6 +8,15 @@
         "pid": "0x0202",
         "device_version": "20.0.4"
     },
+    "features": {
+        "bootmagic": true,
+        "mousekey": false,
+        "extrakey": true,
+        "console": true,
+        "command": true,
+        "nkro": true,
+        "unicode": true
+    },
     "processor": "atmega32u4",
     "bootloader": "caterina",
     "layouts": {

+ 9 - 0
keyboards/sirius/uni660/rev2/iso/keyboard.json

@@ -8,6 +8,15 @@
         "pid": "0x0203",
         "device_version": "20.0.4"
     },
+    "features": {
+        "bootmagic": true,
+        "mousekey": false,
+        "extrakey": true,
+        "console": true,
+        "command": true,
+        "nkro": true,
+        "unicode": true
+    },
     "processor": "atmega32u4",
     "bootloader": "caterina",
     "layouts": {

+ 0 - 13
keyboards/sirius/uni660/rev2/rules.mk

@@ -1,16 +1,3 @@
-# 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 = yes        # Console for debug
-COMMAND_ENABLE = yes        # 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
-UNICODE_ENABLE = yes        # Unicode
 CUSTOM_MATRIX = lite
 
 # project specific files