summaryrefslogtreecommitdiffstats
path: root/keyboards/coarse
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-17 13:14:29 +1100
committerGitHub <noreply@github.com>2023-02-17 13:14:29 +1100
commitf4ba17c4a0ee59603c167b04f2d6f6eee8b2cf1b (patch)
tree11fec680226404eb46d2c61305cf7e848450c4d9 /keyboards/coarse
parentd784f78bd0a034c1d6085379615014fd701536ab (diff)
Move LED indicator config to data driven (#19800)
Diffstat (limited to 'keyboards/coarse')
-rw-r--r--keyboards/coarse/cordillera/config.h5
-rw-r--r--keyboards/coarse/cordillera/info.json6
-rw-r--r--keyboards/coarse/ixora/config.h4
-rw-r--r--keyboards/coarse/ixora/info.json5
4 files changed, 11 insertions, 9 deletions
diff --git a/keyboards/coarse/cordillera/config.h b/keyboards/coarse/cordillera/config.h
index 9d680e19bf..f648e5f15f 100644
--- a/keyboards/coarse/cordillera/config.h
+++ b/keyboards/coarse/cordillera/config.h
@@ -25,11 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS { B15, B14, B13, B12, B11, B10, B2, B1, B8, B7, B6, B5, B4, B3, A15, A14 }
#define DIODE_DIRECTION COL2ROW
-#define LED_NUM_LOCK_PIN B0
-#define LED_CAPS_LOCK_PIN A1
-#define LED_SCROLL_LOCK_PIN A0
-#define LED_PIN_ON_STATE 0
-
#define BACKLIGHT_PIN A8
#define BACKLIGHT_PWM_DRIVER PWMD1
#define BACKLIGHT_PWM_CHANNEL 1
diff --git a/keyboards/coarse/cordillera/info.json b/keyboards/coarse/cordillera/info.json
index 53187917a1..3d968ab84d 100644
--- a/keyboards/coarse/cordillera/info.json
+++ b/keyboards/coarse/cordillera/info.json
@@ -8,6 +8,12 @@
"pid": "0x1401",
"device_version": "0.0.1"
},
+ "indicators": {
+ "caps_lock": "A1",
+ "num_lock": "B0",
+ "scroll_lock": "A0",
+ "on_state": 0
+ },
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"community_layouts": ["alice", "alice_split_bs"],
diff --git a/keyboards/coarse/ixora/config.h b/keyboards/coarse/ixora/config.h
index 9efba5d221..4223dc987f 100644
--- a/keyboards/coarse/ixora/config.h
+++ b/keyboards/coarse/ixora/config.h
@@ -10,7 +10,3 @@
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
-
-#define LED_NUM_LOCK_PIN A9
-#define LED_CAPS_LOCK_PIN A10
-#define LED_SCROLL_LOCK_PIN A8
diff --git a/keyboards/coarse/ixora/info.json b/keyboards/coarse/ixora/info.json
index a408b6127f..ef7bae5129 100644
--- a/keyboards/coarse/ixora/info.json
+++ b/keyboards/coarse/ixora/info.json
@@ -8,6 +8,11 @@
"pid": "0x0C61",
"device_version": "1.0.0"
},
+ "indicators": {
+ "caps_lock": "A10",
+ "num_lock": "A9",
+ "scroll_lock": "A8"
+ },
"processor": "STM32F042",
"bootloader": "stm32-dfu",
"debounce": 0,