Woodpad refactor (#11651)
This commit is contained in:
parent
a7d79f4c00
commit
188c0bacb0
10 changed files with 215 additions and 304 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2017 REPLACE_WITH_YOUR_NAME
|
||||
/* Copyright 2017 WoodKeys
|
||||
*
|
||||
* 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
|
||||
|
@ -13,31 +13,18 @@
|
|||
* 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 "woodpad.h"
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// put your keyboard start-up code here
|
||||
// runs once when the firmware starts up
|
||||
|
||||
matrix_init_user();
|
||||
void keyboard_pre_init_kb(void) {
|
||||
setPinOutput(F7);
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
void matrix_scan_kb(void) {
|
||||
// put your looping keyboard code here
|
||||
// runs every cycle (a lot)
|
||||
|
||||
matrix_scan_user();
|
||||
inline void numlock_led_on(void) {
|
||||
writePinHigh(F7);
|
||||
}
|
||||
|
||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||
// put your per-action keyboard code here
|
||||
// runs for every action, just before processing by the firmware
|
||||
|
||||
return process_record_user(keycode, record);
|
||||
}
|
||||
|
||||
void led_set_kb(uint8_t usb_led) {
|
||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
||||
|
||||
led_set_user(usb_led);
|
||||
inline void numlock_led_off(void) {
|
||||
writePinLow(F7);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue