mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-10-02 06:49:16 +02:00
Add LED documentation (#26)
* add LED documentation * add LED documentation to other default profiles
This commit is contained in:
@@ -8,6 +8,7 @@ enum anne_pro_layers {
|
||||
_FN2_LAYER,
|
||||
};
|
||||
|
||||
// Key symbols are based on QMK. Use them to remap your keyboard
|
||||
/*
|
||||
* Layer _BASE_LAYER
|
||||
* ,-----------------------------------------------------------------------------------------.
|
||||
@@ -97,6 +98,18 @@ void matrix_init_user(void) {
|
||||
void matrix_scan_user(void) {
|
||||
}
|
||||
|
||||
// Code to run after initializing the keyboard
|
||||
void keyboard_post_init_user(void) {
|
||||
// Here are two common functions that you can use. For more LED functions, refer to the file "qmk_ap2_led.h"
|
||||
|
||||
// annepro2-shine disables LEDs by default. Uncomment this function to enable them at startup.
|
||||
// annepro2LedEnable();
|
||||
|
||||
// Additionally, it also chooses the first LED profile by default. Refer to the "profiles" array in main.c in
|
||||
// annepro2-shine to see the order. Replace "i" with the index of your preferred profile. (i.e the RED profile is index 0)
|
||||
// annepro2LedSetProfile(i);
|
||||
}
|
||||
|
||||
layer_state_t layer_state_set_user(layer_state_t layer) {
|
||||
return layer;
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ enum anne_pro_layers {
|
||||
_FN2_LAYER,
|
||||
};
|
||||
|
||||
// Key symbols are based on QMK. Use them to remap your keyboard
|
||||
/*
|
||||
* Layer _BASE_LAYER
|
||||
* ,-----------------------------------------------------------------------------------------.
|
||||
@@ -97,6 +98,18 @@ void matrix_init_user(void) {
|
||||
void matrix_scan_user(void) {
|
||||
}
|
||||
|
||||
// Code to run after initializing the keyboard
|
||||
void keyboard_post_init_user(void) {
|
||||
// Here are two common functions that you can use. For more LED functions, refer to the file "qmk_ap2_led.h"
|
||||
|
||||
// annepro2-shine disables LEDs by default. Uncomment this function to enable them at startup.
|
||||
// annepro2LedEnable();
|
||||
|
||||
// Additionally, it also chooses the first LED profile by default. Refer to the "profiles" array in main.c in
|
||||
// annepro2-shine to see the order. Replace "i" with the index of your preferred profile. (i.e the RED profile is index 0)
|
||||
// annepro2LedSetProfile(i);
|
||||
}
|
||||
|
||||
layer_state_t layer_state_set_user(layer_state_t layer) {
|
||||
switch(get_highest_layer(layer)) {
|
||||
case _FN1_LAYER:
|
||||
|
||||
@@ -8,6 +8,7 @@ enum anne_pro_layers {
|
||||
_FN2_LAYER,
|
||||
};
|
||||
|
||||
// Key symbols are based on QMK. Use them to remap your keyboard
|
||||
/*
|
||||
* Layer _BASE_LAYER
|
||||
* ,-----------------------------------------------------------------------------------------.
|
||||
@@ -97,6 +98,18 @@ void matrix_init_user(void) {
|
||||
void matrix_scan_user(void) {
|
||||
}
|
||||
|
||||
// Code to run after initializing the keyboard
|
||||
void keyboard_post_init_user(void) {
|
||||
// Here are two common functions that you can use. For more LED functions, refer to the file "qmk_ap2_led.h"
|
||||
|
||||
// annepro2-shine disables LEDs by default. Uncomment this function to enable them at startup.
|
||||
// annepro2LedEnable();
|
||||
|
||||
// Additionally, it also chooses the first LED profile by default. Refer to the "profiles" array in main.c in
|
||||
// annepro2-shine to see the order. Replace "i" with the index of your preferred profile. (i.e the RED profile is index 0)
|
||||
// annepro2LedSetProfile(i);
|
||||
}
|
||||
|
||||
layer_state_t layer_state_set_user(layer_state_t layer) {
|
||||
return layer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user