aboutsummaryrefslogtreecommitdiff
path: root/keyboards/preonic/rev1
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/preonic/rev1')
-rw-r--r--keyboards/preonic/rev1/keyboard.json (renamed from keyboards/preonic/rev1/info.json)13
-rw-r--r--keyboards/preonic/rev1/rev1.c4
-rw-r--r--keyboards/preonic/rev1/rules.mk14
3 files changed, 15 insertions, 16 deletions
diff --git a/keyboards/preonic/rev1/info.json b/keyboards/preonic/rev1/keyboard.json
index e25c41d9b0..aa43fe2c47 100644
--- a/keyboards/preonic/rev1/info.json
+++ b/keyboards/preonic/rev1/keyboard.json
@@ -6,6 +6,19 @@
"pid": "0x67F3",
"device_version": "0.0.1"
},
+ "build": {
+ "lto": true
+ },
+ "features": {
+ "audio": true,
+ "backlight": true,
+ "bootmagic": true,
+ "command": false,
+ "console": false,
+ "extrakey": true,
+ "mousekey": false,
+ "nkro": false
+ },
"matrix_pins": {
"cols": ["F1", "F0", "B0", "C7", "F4", "F5", "F6", "F7", "D4", "D6", "B4", "D7"],
"rows": ["D2", "D5", "B5", "B6", "D3"]
diff --git a/keyboards/preonic/rev1/rev1.c b/keyboards/preonic/rev1/rev1.c
index eed51f2d84..8613da79ee 100644
--- a/keyboards/preonic/rev1/rev1.c
+++ b/keyboards/preonic/rev1/rev1.c
@@ -18,8 +18,8 @@
void matrix_init_kb(void) {
// Turn status LED on
- setPinOutput(E6);
- writePinHigh(E6);
+ gpio_set_pin_output(E6);
+ gpio_write_pin_high(E6);
matrix_init_user();
};
diff --git a/keyboards/preonic/rev1/rules.mk b/keyboards/preonic/rev1/rules.mk
deleted file mode 100644
index 5700acd66c..0000000000
--- a/keyboards/preonic/rev1/rules.mk
+++ /dev/null
@@ -1,14 +0,0 @@
-# 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
-NKRO_ENABLE = no # Enable N-Key Rollover
-BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
-AUDIO_ENABLE = yes # Audio output
-RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
-
-LTO_ENABLE = yes