Migrate led_update_kb
implementations to DD (#23983)
This commit is contained in:
parent
17498fa48a
commit
7824e7ed9b
@ -1,18 +0,0 @@
|
||||
#include "quantum.h"
|
||||
|
||||
void keyboard_pre_init_kb(void) {
|
||||
gpio_set_pin_output(A0);
|
||||
gpio_set_pin_output(A1);
|
||||
gpio_set_pin_output(A2);
|
||||
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if (led_update_user(led_state)) {
|
||||
gpio_write_pin(A2, led_state.num_lock);
|
||||
gpio_write_pin(A0, led_state.caps_lock);
|
||||
gpio_write_pin(A1, led_state.scroll_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
@ -33,6 +33,11 @@
|
||||
"levels": 6,
|
||||
"breathing": true
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "A0",
|
||||
"num_lock": "A2",
|
||||
"scroll_lock": "A1"
|
||||
},
|
||||
"processor": "STM32F072",
|
||||
"bootloader": "stm32-dfu",
|
||||
"layouts": {
|
||||
|
@ -1,17 +0,0 @@
|
||||
#include "quantum.h"
|
||||
|
||||
void matrix_init_board(void){
|
||||
gpio_set_pin_output(A8);
|
||||
gpio_set_pin_output(A9);
|
||||
gpio_set_pin_output(A10);
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
bool runDefault = led_update_user(led_state);
|
||||
if (runDefault) {
|
||||
gpio_write_pin(A8, !led_state.num_lock);
|
||||
gpio_write_pin(A9, !led_state.caps_lock);
|
||||
gpio_write_pin(A10, !led_state.scroll_lock);
|
||||
}
|
||||
return runDefault;
|
||||
}
|
@ -7,6 +7,12 @@
|
||||
"pid": "0x0FAD",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "A9",
|
||||
"num_lock": "A8",
|
||||
"scroll_lock": "A10",
|
||||
"on_state": 0
|
||||
},
|
||||
"rgblight": {
|
||||
"led_count": 14,
|
||||
"animations": {
|
||||
|
@ -16,21 +16,9 @@
|
||||
#include "quantum.h"
|
||||
|
||||
void keyboard_pre_init_kb(void) {
|
||||
gpio_set_pin_output(C6);
|
||||
gpio_set_pin_output(B0);
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
bool res = led_update_user(led_state);
|
||||
if (res) {
|
||||
// gpio_write_pin sets the pin high for 1 and low for 0.
|
||||
// In this example the pins are inverted, setting
|
||||
// it low/0 turns it on, and high/1 turns the LED off.
|
||||
// This behavior depends on whether the LED is between the pin
|
||||
// and VCC or the pin and GND.
|
||||
gpio_write_pin(C6, !led_state.caps_lock);
|
||||
}
|
||||
return res;
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
__attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
|
@ -8,6 +8,10 @@
|
||||
"pid": "0x4447",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "C6",
|
||||
"on_state": 0
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["F4", "F0", "B7", "B3", "B2", "B1", "D5", "D3", "D2"],
|
||||
"rows": ["E6", "F1", "C7", "F7", "F6"]
|
||||
|
@ -18,6 +18,10 @@
|
||||
"levels": 6,
|
||||
"breathing": true
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "C7",
|
||||
"scroll_lock": "B5"
|
||||
},
|
||||
"rgblight": {
|
||||
"saturation_steps": 8,
|
||||
"brightness_steps": 8,
|
||||
|
@ -1,32 +0,0 @@
|
||||
/* Copyright 2020 VashtaNerada
|
||||
*
|
||||
* 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 keyboard_pre_init_kb(void) {
|
||||
gpio_set_pin_output(C7);
|
||||
gpio_set_pin_output(B5);
|
||||
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if (led_update_user(led_state)) {
|
||||
gpio_write_pin(C7, led_state.caps_lock);
|
||||
gpio_write_pin(B5, led_state.scroll_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
@ -8,6 +8,10 @@
|
||||
"pid": "0x0001",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "B1",
|
||||
"scroll_lock": "B3"
|
||||
},
|
||||
"rgblight": {
|
||||
"led_count": 17,
|
||||
"animations": {
|
||||
|
@ -1,36 +0,0 @@
|
||||
/* Copyright 2020 Gone Hacking Studio
|
||||
*
|
||||
* 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 keyboard_pre_init_kb(void) {
|
||||
// Set our LED pins as output.
|
||||
gpio_set_pin_output(B1);
|
||||
gpio_set_pin_output(B3);
|
||||
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
bool res = led_update_user(led_state);
|
||||
|
||||
if (res) {
|
||||
gpio_write_pin(B1, led_state.caps_lock);
|
||||
gpio_write_pin(B3, led_state.scroll_lock);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
@ -41,6 +41,10 @@
|
||||
"nkro": false,
|
||||
"rgblight": true
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "C7",
|
||||
"on_state": 0
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["D1", "D0", "D2", "D3", "D5", "D4", "D6", "D7", "B4", "B5", "F0", "F1", "B6", "F4", "F5", "F6"],
|
||||
"rows": ["B0", "B1", "B2", "B3", "E6"]
|
||||
|
@ -1,36 +0,0 @@
|
||||
/* Copyright 2019 MechMerlin
|
||||
*
|
||||
* 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"
|
||||
|
||||
// Optional override functions below.
|
||||
// You can leave any or all of these undefined.
|
||||
// These are only required if you want to perform custom actions.
|
||||
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// put your keyboard start-up code here
|
||||
// runs once when the firmware starts up
|
||||
|
||||
gpio_set_pin_output(C7);
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if(led_update_user(led_state)) {
|
||||
gpio_write_pin(C7, !led_state.caps_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
@ -32,6 +32,12 @@
|
||||
"pin": "B7",
|
||||
"levels": 5
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "D2",
|
||||
"num_lock": "D0",
|
||||
"scroll_lock": "D1",
|
||||
"on_state": 0
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"community_layouts": [
|
||||
|
@ -1,34 +0,0 @@
|
||||
/* Copyright 2020 dztech
|
||||
*
|
||||
* 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) {
|
||||
gpio_set_pin_output(D0);
|
||||
gpio_set_pin_output(D1);
|
||||
gpio_set_pin_output(D2);
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
bool res = led_update_user(led_state);
|
||||
if(res) {
|
||||
gpio_write_pin(D0, !led_state.num_lock);
|
||||
gpio_write_pin(D2, !led_state.caps_lock);
|
||||
gpio_write_pin(D1, !led_state.scroll_lock);
|
||||
|
||||
}
|
||||
return res;
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
/* Copyright Evy Dekkers
|
||||
*
|
||||
* 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"
|
||||
|
||||
// Optional override functions below.
|
||||
// You can leave any or all of these undefined.
|
||||
// These are only required if you want to perform custom actions.
|
||||
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// put your keyboard start-up code here
|
||||
// runs once when the firmware starts up
|
||||
|
||||
matrix_init_user();
|
||||
gpio_set_pin_output(E6);
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if(led_update_user(led_state)) {
|
||||
gpio_write_pin(E6, !led_state.caps_lock);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
@ -33,6 +33,10 @@
|
||||
"levels": 4,
|
||||
"breathing": true
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "E6",
|
||||
"on_state": 0
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [0, 2]
|
||||
},
|
||||
|
@ -22,6 +22,10 @@
|
||||
"resync": true
|
||||
}
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "B6",
|
||||
"scroll_lock": "B7"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["D5", "C7", "C6", "D4", "D0", "E6", "F0", "F1", "F4", "F5", "F6", "F7", "D7", "D6", "D1", "D2", "D3"],
|
||||
"rows": ["B5", "B4", "B3", "B2", "B1", "B0"]
|
||||
|
@ -1,25 +0,0 @@
|
||||
/* Copyright 2020 Koichi Katano
|
||||
*
|
||||
* 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"
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if (led_update_user(led_state)) {
|
||||
gpio_write_pin(B6, led_state.caps_lock);
|
||||
gpio_write_pin(B7, led_state.scroll_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
@ -22,6 +22,10 @@
|
||||
"resync": true
|
||||
}
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "B6",
|
||||
"scroll_lock": "B7"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["D5", "C7", "C6", "D4", "D0", "E6", "F0", "F1", "F4", "F5", "F6", "F7", "D7", "D6", "D1", "D2", "D3"],
|
||||
"rows": ["B5", "B4", "B3", "B2", "B1", "B0"]
|
||||
|
@ -1,25 +0,0 @@
|
||||
/* Copyright 2019 Koichi Katano
|
||||
*
|
||||
* 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"
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if (led_update_user(led_state)) {
|
||||
gpio_write_pin(B6, led_state.caps_lock);
|
||||
gpio_write_pin(B7, led_state.scroll_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
@ -33,6 +33,10 @@
|
||||
{"pin_a": "F4", "pin_b": "F5"}
|
||||
]
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "D1",
|
||||
"num_lock": "D2"
|
||||
},
|
||||
"rgblight": {
|
||||
"saturation_steps": 8,
|
||||
"brightness_steps": 8,
|
||||
|
@ -1,37 +0,0 @@
|
||||
/* Copyright 2020 marksard
|
||||
*
|
||||
* 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"
|
||||
|
||||
// Optional override functions below.
|
||||
// You can leave any or all of these undefined.
|
||||
// These are only required if you want to perform custom actions.
|
||||
|
||||
void keyboard_pre_init_user(void) {
|
||||
/* Set CAPSLOCK indicator pin as output */
|
||||
gpio_set_pin_output(D1);
|
||||
/* Set NUMLOCK indicator pin as output */
|
||||
gpio_set_pin_output(D2);
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
bool res = led_update_user(led_state);
|
||||
if(res) {
|
||||
gpio_write_pin(D2, led_state.num_lock);
|
||||
gpio_write_pin(D1, led_state.caps_lock);
|
||||
}
|
||||
return res;
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
/* Copyright 2020 Rozakiin
|
||||
*
|
||||
* 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"
|
||||
|
||||
// Optional override functions below.
|
||||
// You can leave any or all of these undefined.
|
||||
// These are only required if you want to perform custom actions.
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// put your keyboard start-up code here
|
||||
// runs once when the firmware starts up
|
||||
gpio_set_pin_output(C6);
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if(led_update_user(led_state)) {
|
||||
gpio_write_pin(C6, led_state.num_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
@ -32,6 +32,9 @@
|
||||
"pin": "B7",
|
||||
"breathing": true
|
||||
},
|
||||
"indicators": {
|
||||
"num_lock": "C6"
|
||||
},
|
||||
"processor": "atmega32u2",
|
||||
"bootloader": "atmel-dfu",
|
||||
"community_layouts": ["ortho_6x4"],
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* Copyright 2018 Rozakiin
|
||||
*
|
||||
* 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(B0);
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if(led_update_user(led_state)) {
|
||||
gpio_write_pin(B0, led_state.caps_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
@ -31,6 +31,9 @@
|
||||
"backlight": {
|
||||
"pin": "B7"
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "B0"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"community_layouts": ["65_ansi_blocker"],
|
||||
|
@ -1,37 +0,0 @@
|
||||
/* Copyright 2019 %YOUR_NAME%
|
||||
*
|
||||
* 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"
|
||||
|
||||
// Optional override functions below.
|
||||
// You can leave any or all of these undefined.
|
||||
// These are only required if you want to perform custom actions.
|
||||
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// put your keyboard start-up code here
|
||||
// runs once when the firmware starts up
|
||||
gpio_set_pin_output(D5);
|
||||
gpio_set_pin_output(D0);
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if(led_update_user(led_state)) {
|
||||
gpio_write_pin(D5, led_state.caps_lock);
|
||||
gpio_write_pin(D0, led_state.scroll_lock);
|
||||
}
|
||||
return true;
|
||||
}
|
@ -32,6 +32,10 @@
|
||||
"pin": "B7",
|
||||
"breathing": true
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "D5",
|
||||
"scroll_lock": "D0"
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
@ -22,6 +22,10 @@
|
||||
"resync": true
|
||||
}
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "C5",
|
||||
"num_lock": "C4"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["C2", "D0", "D1", "D4", "C3", "C1"],
|
||||
"rows": ["B5", "B1", "B2", "B3", "B4", "C0", "D5", "D6", "D7", "B0"]
|
||||
|
@ -1,30 +0,0 @@
|
||||
/* Copyright 2019 Takuya Urakawa (dm9records.com)
|
||||
*
|
||||
* 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) {
|
||||
gpio_set_pin_output(C4);
|
||||
gpio_set_pin_output(C5);
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
bool res = led_update_user(led_state);
|
||||
if(res) {
|
||||
gpio_write_pin(C4, led_state.num_lock);
|
||||
gpio_write_pin(C5, led_state.caps_lock);
|
||||
}
|
||||
return res;
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user