fix emoji LED indicators.

daktil_manuform
Priyadi Iman Nurcahyo 2016-12-04 23:55:06 +07:00
parent 75b18773bd
commit a8e5f61805
1 changed files with 27 additions and 19 deletions

View File

@ -282,25 +282,25 @@ void led_layer_func(void) {
rgbsps_set(LED_K, 15, 0, 15);
rgbsps_set(LED_L, 15, 0, 15);
rgbsps_set(LED_U, 15, 0, 10);
rgbsps_set(LED_O, 15, 0, 10);
rgbsps_set(LED_COMM, 15, 0, 10);
rgbsps_set(LED_DOT, 15, 0, 10);
rgbsps_set(LED_SCLN, 15, 0, 10);
rgbsps_set(LED_P, 15, 0, 10);
rgbsps_set(LED_U, 15, 0, 0);
rgbsps_set(LED_O, 15, 0, 0);
rgbsps_set(LED_COMM, 15, 0, 0);
rgbsps_set(LED_DOT, 15, 0, 0);
rgbsps_set(LED_SCLN, 15, 0, 0);
rgbsps_set(LED_P, 15, 0, 0);
rgbsps_set(LED_Q, 10, 0, 15);
rgbsps_set(LED_W, 10, 0, 15);
rgbsps_set(LED_E, 10, 0, 15);
rgbsps_set(LED_R, 10, 0, 15);
rgbsps_set(LED_A, 10, 0, 15);
rgbsps_set(LED_S, 10, 0, 15);
rgbsps_set(LED_D, 10, 0, 15);
rgbsps_set(LED_F, 10, 0, 15);
rgbsps_set(LED_Z, 10, 0, 15);
rgbsps_set(LED_X, 10, 0, 15);
rgbsps_set(LED_C, 10, 0, 15);
rgbsps_set(LED_V, 10, 0, 15);
rgbsps_set(LED_Q, 0, 15, 0);
rgbsps_set(LED_W, 0, 15, 0);
rgbsps_set(LED_E, 0, 15, 0);
rgbsps_set(LED_R, 0, 15, 0);
rgbsps_set(LED_A, 0, 15, 0);
rgbsps_set(LED_S, 0, 15, 0);
rgbsps_set(LED_D, 0, 15, 0);
rgbsps_set(LED_F, 0, 15, 0);
rgbsps_set(LED_Z, 0, 15, 0);
rgbsps_set(LED_X, 0, 15, 0);
rgbsps_set(LED_C, 0, 15, 0);
rgbsps_set(LED_V, 0, 15, 0);
rgbsps_send();
}
@ -361,7 +361,15 @@ void led_layer_num(void) {
}
void led_layer_emoji(void) {
rgbsps_setall(15, 15, 0);
for(uint8_t i = 0; i < COUNT(LED_ALNUM); i++) {
rgbsps_set(pgm_read_byte(&LED_ALNUM[i]), 15, 15, 0);
}
for(uint8_t i = 0; i < COUNT(LED_MODS); i++) {
rgbsps_set(pgm_read_byte(&LED_MODS[i]), 15, 15, 0);
}
for(uint8_t i = 0; i < COUNT(LED_FN); i++) {
rgbsps_set(pgm_read_byte(&LED_FN[i]), 15, 15, 0);
}
rgbsps_set(LED_IND_FUNC, 0, 0, 0);
rgbsps_set(LED_IND_NUM, 0, 0, 0);