Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Add LED documentation (qmk#26)
Browse files Browse the repository at this point in the history
* add LED documentation

* add LED documentation to other default profiles
  • Loading branch information
jmarmstrong1207 authored and shearn89 committed Feb 16, 2022
1 parent 58a3e36 commit 8c2da4e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
13 changes: 13 additions & 0 deletions keyboards/annepro2/keymaps/default-full-caps/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* ,-----------------------------------------------------------------------------------------.
Expand Down Expand Up @@ -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;
}
Expand Down
13 changes: 13 additions & 0 deletions keyboards/annepro2/keymaps/default-layer-indicators/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* ,-----------------------------------------------------------------------------------------.
Expand Down Expand Up @@ -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:
Expand Down
13 changes: 13 additions & 0 deletions keyboards/annepro2/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* ,-----------------------------------------------------------------------------------------.
Expand Down Expand Up @@ -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;
}

0 comments on commit 8c2da4e

Please sign in to comment.