aboutsummaryrefslogtreecommitdiff
path: root/keyboards/hfdkb/ac001
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/hfdkb/ac001')
-rw-r--r--keyboards/hfdkb/ac001/ac001.c36
-rw-r--r--keyboards/hfdkb/ac001/keyboard.json7
2 files changed, 7 insertions, 36 deletions
diff --git a/keyboards/hfdkb/ac001/ac001.c b/keyboards/hfdkb/ac001/ac001.c
deleted file mode 100644
index 83dbdeb628..0000000000
--- a/keyboards/hfdkb/ac001/ac001.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Copyright (C) 2022 jonylee@hfd
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "quantum.h"
-/*
- 3---------------2
- | | |
- | | |
- 4-------0-------1
-*/
-#ifdef RGB_MATRIX_ENABLE
-led_config_t g_led_config = { {
- // Key Matrix to LED Index
- { 0, 1, 2, 3, 4}
-}, {
- // LED Index to Physical Position
- { 64, 112 }, { 64, 224 }, { 224, 0 }, { 0, 0 }, { 64, 0 },
-
-}, {
- // LED Index to Flag
- 4, 4, 4, 4, 4
-} };
-#endif
diff --git a/keyboards/hfdkb/ac001/keyboard.json b/keyboards/hfdkb/ac001/keyboard.json
index ee9aab074b..ffb20e3c01 100644
--- a/keyboards/hfdkb/ac001/keyboard.json
+++ b/keyboards/hfdkb/ac001/keyboard.json
@@ -21,6 +21,13 @@
"multisplash": true
},
"driver": "ws2812",
+ "layout": [
+ {"matrix": [0, 0], "x": 112, "y": 64, "flags": 4},
+ {"matrix": [0, 1], "x": 224, "y": 64, "flags": 4},
+ {"matrix": [0, 2], "x": 224, "y": 0, "flags": 4},
+ {"matrix": [0, 3], "x": 0, "y": 0, "flags": 4},
+ {"matrix": [0, 4], "x": 0, "y": 64, "flags": 4}
+ ],
"react_on_keyup": true,
"sleep": true
},