aboutsummaryrefslogtreecommitdiff
path: root/keyboards/preonic
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2024-03-15 22:24:00 +0000
committerGitHub <[email protected]>2024-03-15 22:24:00 +0000
commit1a903372846f24028431d20bc25e64b4da69da27 (patch)
treed628946d38d303f98f24c14db6b3cdd85f7397bb /keyboards/preonic
parent24d824aae40b932dbcdc5036d7f30a6f2f352442 (diff)
downloadqmk_firmware-1a903372846f24028431d20bc25e64b4da69da27.tar.gz
qmk_firmware-1a903372846f24028431d20bc25e64b4da69da27.zip
Migrate features from rules.mk to data driven - OPQR (#23285)
Diffstat (limited to 'keyboards/preonic')
-rw-r--r--keyboards/preonic/rev3/keyboard.json (renamed from keyboards/preonic/rev3/info.json)12
-rw-r--r--keyboards/preonic/rev3/rules.mk18
2 files changed, 12 insertions, 18 deletions
diff --git a/keyboards/preonic/rev3/info.json b/keyboards/preonic/rev3/keyboard.json
index 6112699cfa..472229c0da 100644
--- a/keyboards/preonic/rev3/info.json
+++ b/keyboards/preonic/rev3/keyboard.json
@@ -28,6 +28,18 @@
"rgb_matrix": {
"driver": "ws2812"
},
+ "features": {
+ "audio": true,
+ "bootmagic": true,
+ "command": true,
+ "console": true,
+ "dip_switch": true,
+ "encoder": true,
+ "extrakey": true,
+ "mousekey": true,
+ "nkro": true,
+ "rgblight": true
+ },
"matrix_pins": {
"cols": ["B11", "B10", "B2", "B1", "A7", "B0"],
"rows": ["A10", "A9", "A8", "B15", "C13", "C14", "C15", "A2", "A3", "A6"]
diff --git a/keyboards/preonic/rev3/rules.mk b/keyboards/preonic/rev3/rules.mk
deleted file mode 100644
index 6836d19541..0000000000
--- a/keyboards/preonic/rev3/rules.mk
+++ /dev/null
@@ -1,18 +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 = 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
-AUDIO_ENABLE = yes # Audio output
-RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
-
-# Do not enable RGB_MATRIX_ENABLE together with RGBLIGHT_ENABLE
-RGB_MATRIX_ENABLE = no
-
-ENCODER_ENABLE = yes
-DIP_SWITCH_ENABLE = yes