Fix LED sequence; bug fixes

daktil_thumb_popravljen
Priyadi Iman Nurcahyo 2017-04-19 12:03:48 +07:00
parent 5bc0c4a011
commit ce0efa6b9a
2 changed files with 18 additions and 10 deletions

View File

@ -205,7 +205,7 @@ enum led_sequence {
LED_RSFT, LED_RSFT,
LED_RCTL, LED_RCTL,
LED_RGUI, LED_RALT,
LED_SLSH, LED_SLSH,
LED_SCLN, LED_SCLN,
LED_P, LED_P,
@ -213,9 +213,9 @@ enum led_sequence {
LED_O, LED_O,
LED_L, LED_L,
LED_DOT, LED_DOT,
LED_RALT, LED_RGUI,
LED_EMOJI, LED_GREEK,
LED_COMM, LED_COMM,
LED_K, LED_K,
LED_I, LED_I,
@ -244,7 +244,7 @@ enum led_sequence {
LED_V, LED_V,
LED_NUM, LED_NUM,
LED_PUNC, LED_EMPTY,
LED_C, LED_C,
LED_D, LED_D,
LED_E, LED_E,
@ -252,9 +252,9 @@ enum led_sequence {
LED_W, LED_W,
LED_S, LED_S,
LED_X, LED_X,
LED_LALT,
LED_LGUI, LED_LGUI,
LED_LALT,
LED_Z, LED_Z,
LED_A, LED_A,
LED_Q, LED_Q,

View File

@ -434,10 +434,10 @@ const uint8_t PROGMEM LED_MODS[] = {
}; };
const uint8_t PROGMEM LED_FN[] = { const uint8_t PROGMEM LED_FN[] = {
LED_PUNC, LED_EMPTY,
LED_NUM, LED_NUM,
LED_FUN, LED_FUN,
LED_EMOJI LED_GREEK
}; };
const uint8_t PROGMEM LED_INDICATORS[] = { const uint8_t PROGMEM LED_INDICATORS[] = {
@ -632,6 +632,14 @@ void led_init(void) {
// layer indicator // layer indicator
led_set_layer_indicator(); led_set_layer_indicator();
led_set_default_layer_indicator(); led_set_default_layer_indicator();
// clicky
if (fauxclicky_enabled) {
rgbsps_set(LED_IND_AUDIO, 5, 11, 13);
} else {
rgbsps_set(LED_IND_AUDIO, 0, 0, 0);
}
rgbsps_send();
} }
@ -1211,9 +1219,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case FC_TOG: case FC_TOG:
#ifdef RGBSPS_ENABLE #ifdef RGBSPS_ENABLE
if (fauxclicky_enabled) { if (fauxclicky_enabled) {
rgbsps_set(LED_IND_AUDIO, 0, 0, 0);
} else {
rgbsps_set(LED_IND_AUDIO, 5, 11, 13); rgbsps_set(LED_IND_AUDIO, 5, 11, 13);
} else {
rgbsps_set(LED_IND_AUDIO, 0, 0, 0);
} }
rgbsps_send(); rgbsps_send();
#endif #endif