summaryrefslogtreecommitdiff
path: root/keyboards/bear_face
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2024-06-25 03:25:05 +0100
committerGitHub <noreply@github.com>2024-06-25 03:25:05 +0100
commita2176f6a039b5f92ba4cb473f7a2de560b57dd86 (patch)
treed463c13b44a4139b619c2b3e4a9abab929bd1465 /keyboards/bear_face
parent751482580ed992acdbafc262c281e5d179cebe69 (diff)
Migrate `led_update_kb` implementations to DD (#23985)
Diffstat (limited to 'keyboards/bear_face')
-rw-r--r--keyboards/bear_face/info.json3
-rw-r--r--keyboards/bear_face/v1/v1.c34
-rw-r--r--keyboards/bear_face/v2/v2.c34
3 files changed, 3 insertions, 68 deletions
diff --git a/keyboards/bear_face/info.json b/keyboards/bear_face/info.json
index ad12468d56..ad5b1dd7d9 100644
--- a/keyboards/bear_face/info.json
+++ b/keyboards/bear_face/info.json
@@ -24,6 +24,9 @@
24 "resync": true 24 "resync": true
25 } 25 }
26 }, 26 },
27 "indicators": {
28 "caps_lock": "F7"
29 },
27 "matrix_pins": { 30 "matrix_pins": {
28 "cols": ["B5", "C7", "C6", "F0", "E6", "B7", "D0", "D1", "D2", "D3", "D5", "D4", "D6", "D7", "B4"], 31 "cols": ["B5", "C7", "C6", "F0", "E6", "B7", "D0", "D1", "D2", "D3", "D5", "D4", "D6", "D7", "B4"],
29 "rows": ["F5", "F6", "F4", "F1", "B0", "B6"] 32 "rows": ["F5", "F6", "F4", "F1", "B0", "B6"]
diff --git a/keyboards/bear_face/v1/v1.c b/keyboards/bear_face/v1/v1.c
deleted file mode 100644
index b64a63f0b4..0000000000
--- a/keyboards/bear_face/v1/v1.c
+++ /dev/null
@@ -1,34 +0,0 @@
1/*
2Copyright 2020 chemicalwill <https://github.com/chemicalwill>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include "quantum.h"
19
20void keyboard_pre_init_kb(void) {
21 //Sets LED pin as output
22 gpio_set_pin_output(F7);
23
24 keyboard_pre_init_user();
25}
26
27bool led_update_kb(led_t led_state) {
28 // Caps Lock LED indicator toggling code here
29 bool res = led_update_user(led_state);
30 if(res) {
31 gpio_write_pin(F7, led_state.caps_lock);
32 }
33 return res;
34}
diff --git a/keyboards/bear_face/v2/v2.c b/keyboards/bear_face/v2/v2.c
deleted file mode 100644
index b64a63f0b4..0000000000
--- a/keyboards/bear_face/v2/v2.c
+++ /dev/null
@@ -1,34 +0,0 @@
1/*
2Copyright 2020 chemicalwill <https://github.com/chemicalwill>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include "quantum.h"
19
20void keyboard_pre_init_kb(void) {
21 //Sets LED pin as output
22 gpio_set_pin_output(F7);
23
24 keyboard_pre_init_user();
25}
26
27bool led_update_kb(led_t led_state) {
28 // Caps Lock LED indicator toggling code here
29 bool res = led_update_user(led_state);
30 if(res) {
31 gpio_write_pin(F7, led_state.caps_lock);
32 }
33 return res;
34}