summaryrefslogtreecommitdiff
path: root/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
diff options
context:
space:
mode:
authorPriyadi Iman Nurcahyo <priyadi@priyadi.net>2016-12-04 23:55:06 +0700
committerPriyadi Iman Nurcahyo <priyadi@priyadi.net>2016-12-04 23:55:06 +0700
commita8e5f6180585f46684d713976ad05d4d81b11ab1 (patch)
tree1ddb67ae051f305f3027ae342f3801c8cb84580d /keyboards/handwired/promethium/keymaps/priyadi/keymap.c
parent75b18773bd9368ad53d7072d73a6280e053123a3 (diff)
downloadqmk_firmware-a8e5f6180585f46684d713976ad05d4d81b11ab1.tar.gz
qmk_firmware-a8e5f6180585f46684d713976ad05d4d81b11ab1.zip
fix emoji LED indicators.
Diffstat (limited to 'keyboards/handwired/promethium/keymaps/priyadi/keymap.c')
-rw-r--r--keyboards/handwired/promethium/keymaps/priyadi/keymap.c48
1 files changed, 28 insertions, 20 deletions
diff --git a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
index b2da2f97b7..3d34e98229 100644
--- a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
+++ b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
@@ -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_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_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, 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);