forked from vial-kb/vial-qmk
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable power LED for liatris and disable magic functions for minimal…
… to reduce firmware size
- Loading branch information
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
/* Copyright 2024 splitkb.com <support@splitkb.com> */ | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
// Disable magic keycodes to save space for AVR as they are not available to set in vial anyways as we disable `QMK_SETTINGS`. | ||
|
||
#ifndef MAGIC_ENABLE | ||
uint16_t keycode_config(uint16_t keycode) { | ||
return keycode; | ||
} | ||
#endif | ||
|
||
#ifndef MAGIC_ENABLE | ||
uint8_t mod_config(uint8_t mod) { | ||
return mod; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SRC += disable-magic-keycodes.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include QMK_KEYBOARD_H | ||
|
||
void keyboard_pre_init_user(void) { | ||
// Set our LED pin as output | ||
gpio_set_pin_output(24); | ||
// Turn the LED off | ||
// (Due to technical reasons, high is off and low is on) | ||
gpio_write_pin_high(24); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SRC += power_led.c |