mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2026-08-15 18:33:30 +01:00
bad_kb_funcs1
This commit is contained in:
@@ -16,21 +16,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "quantum.h"
|
||||
|
||||
/*
|
||||
* Hardware function pre initialisation.
|
||||
* See https://docs.qmk.fm/#/custom_quantum_functions?id=example-keyboard_pre_init_user-implementation
|
||||
*/
|
||||
void keyboard_pre_init_user(void) {
|
||||
// Call the keyboard pre init code.
|
||||
|
||||
void keyboard_pre_init_kb(void) {
|
||||
// Set our LED pins as output
|
||||
gpio_set_pin_output(C3);
|
||||
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
|
||||
// Flash the led 1 sec on startup.
|
||||
gpio_write_pin_high(C3);
|
||||
wait_ms(1000);
|
||||
gpio_write_pin_low(C3);
|
||||
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
@@ -19,4 +19,6 @@
|
||||
/* joystick button code (thumbstick pressed) */
|
||||
void keyboard_pre_init_kb(void) {
|
||||
gpio_set_pin_input_high(F6);
|
||||
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user