summaryrefslogtreecommitdiff
path: root/keyboards/peej
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2023-02-19 04:35:43 +1100
committerfauxpark <fauxpark@gmail.com>2023-02-19 04:35:43 +1100
commitb8b1cb04b27e18f506b74e72d721616bb28ab688 (patch)
treed4358468c379ddb131e1eb7489b05545d83e1e22 /keyboards/peej
parentf587a0c548d966bd4381236ed726f5ba733b67e2 (diff)
parent3110a70f6f208e20174056e8600830e767b911ff (diff)
Merge remote-tracking branch 'upstream/master' into develop
Diffstat (limited to 'keyboards/peej')
-rw-r--r--keyboards/peej/lumberjack/keymaps/via/keymap.c22
-rw-r--r--keyboards/peej/lumberjack/lumberjack.c13
2 files changed, 26 insertions, 9 deletions
diff --git a/keyboards/peej/lumberjack/keymaps/via/keymap.c b/keyboards/peej/lumberjack/keymaps/via/keymap.c
index a1981cd5be..018f284a4f 100644
--- a/keyboards/peej/lumberjack/keymaps/via/keymap.c
+++ b/keyboards/peej/lumberjack/keymaps/via/keymap.c
@@ -48,3 +48,25 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
};
+
+void keyboard_pre_init_user() {
+ writePin(LED1, true);
+ writePin(LED2, true);
+}
+
+void keyboard_post_init_user() {
+ writePin(LED1, false);
+ writePin(LED2, false);
+}
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ writePin(LED1, record->event.pressed);
+
+ return true;
+}
+
+layer_state_t layer_state_set_user(layer_state_t state) {
+ writePin(LED2, state);
+
+ return state;
+}
diff --git a/keyboards/peej/lumberjack/lumberjack.c b/keyboards/peej/lumberjack/lumberjack.c
index 2bdb49f6e3..111092d579 100644
--- a/keyboards/peej/lumberjack/lumberjack.c
+++ b/keyboards/peej/lumberjack/lumberjack.c
@@ -16,14 +16,9 @@
#include "lumberjack.h"
-bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
- writePin(LED1, record->event.pressed);
+void keyboard_pre_init_kb() {
+ setPinOutput(LED1);
+ setPinOutput(LED2);
- return process_record_user(keycode, record);
-}
-
-layer_state_t layer_state_set_kb(layer_state_t state) {
- writePin(LED2, state);
-
- return layer_state_set_user(state);
+ keyboard_pre_init_user();
}