From 188c0bacb05335067bf79c2380eb0dca189a5c55 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 23 Jan 2021 03:48:27 +1100 Subject: Woodpad refactor (#11651) --- keyboards/handwired/woodpad/woodpad.c | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) (limited to 'keyboards/handwired/woodpad/woodpad.c') 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 . */ -#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); } -- cgit v1.2.3