aboutsummaryrefslogtreecommitdiff
path: root/keyboards/hineybush/h60
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2024-06-22 09:10:12 +0100
committerGitHub <[email protected]>2024-06-22 09:10:12 +0100
commit99aa4f5191ae0e120503385869b3b24baeaf223a (patch)
treec36b9d15fb613e9358d278c4e63da852c82a2e0f /keyboards/hineybush/h60
parent35f0a1767981f0b490858c68cb5b23ee92327a25 (diff)
downloadqmk_firmware-99aa4f5191ae0e120503385869b3b24baeaf223a.tar.gz
qmk_firmware-99aa4f5191ae0e120503385869b3b24baeaf223a.zip
Migrate `led_update_kb` implementations to DD (#23980)
Diffstat (limited to 'keyboards/hineybush/h60')
-rw-r--r--keyboards/hineybush/h60/h60.c31
-rw-r--r--keyboards/hineybush/h60/keyboard.json4
2 files changed, 4 insertions, 31 deletions
diff --git a/keyboards/hineybush/h60/h60.c b/keyboards/hineybush/h60/h60.c
deleted file mode 100644
index 472b99d8ba..0000000000
--- a/keyboards/hineybush/h60/h60.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Copyright 2020 hineybush
- *
- * 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"
-
-void matrix_init_kb(void) {
- // put your keyboard start-up code here
- // runs once when the firmware starts up
- gpio_set_pin_output(C6);
-}
-
-bool led_update_kb(led_t led_state) {
- if(led_update_user(led_state)) {
- gpio_write_pin(C6, !led_state.caps_lock);
- }
- return true;
-}
-
diff --git a/keyboards/hineybush/h60/keyboard.json b/keyboards/hineybush/h60/keyboard.json
index 8a019d42da..ea058b6d64 100644
--- a/keyboards/hineybush/h60/keyboard.json
+++ b/keyboards/hineybush/h60/keyboard.json
@@ -34,6 +34,10 @@
"pin": "B7",
"levels": 12
},
+ "indicators": {
+ "caps_lock": "C6",
+ "on_state": 0
+ },
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,