summaryrefslogtreecommitdiff
path: root/keyboards/handwired/woodpad/woodpad.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-01-22 16:49:05 +0000
committerQMK Bot <hello@qmk.fm>2021-01-22 16:49:05 +0000
commitf52baa4bc10be215a249b8c6c1f9866d65191b91 (patch)
treeacacab6ce4a52de4587e88724e3c4ce4a6d03894 /keyboards/handwired/woodpad/woodpad.c
parent1c3ec3a91fa61ab39e0361e87314ca12187f1ba5 (diff)
parent188c0bacb05335067bf79c2380eb0dca189a5c55 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/handwired/woodpad/woodpad.c')
-rw-r--r--keyboards/handwired/woodpad/woodpad.c31
1 files changed, 9 insertions, 22 deletions
diff --git a/keyboards/handwired/woodpad/woodpad.c b/keyboards/handwired/woodpad/woodpad.c
index 15a87f2eae..71bc0ba71e 100644
--- a/keyboards/handwired/woodpad/woodpad.c
+++ b/keyboards/handwired/woodpad/woodpad.c
@@ -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 matrix_scan_kb(void) {
- // put your looping keyboard code here
- // runs every cycle (a lot)
+#include "woodpad.h"
- matrix_scan_user();
+void keyboard_pre_init_kb(void) {
+ setPinOutput(F7);
+ keyboard_pre_init_user();
}
-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);
+inline void numlock_led_on(void) {
+ writePinHigh(F7);
}
-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);
}