summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/promethium/keymaps/priyadi/keymap.c48
-rw-r--r--keyboards/handwired/promethium/promethium.h108
2 files changed, 82 insertions, 74 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);
diff --git a/keyboards/handwired/promethium/promethium.h b/keyboards/handwired/promethium/promethium.h
index 8f2a8c3be2..662eeab990 100644
--- a/keyboards/handwired/promethium/promethium.h
+++ b/keyboards/handwired/promethium/promethium.h
@@ -23,77 +23,77 @@
}
enum led_sequence {
- LED_IND_EMOJI,
- LED_IND_NUM,
- LED_IND_FUNC,
-
- LED_IND_BATTERY,
- LED_IND_USB,
LED_IND_BLUETOOTH,
+ LED_IND_USB,
+ LED_IND_BATTERY,
- LED_TAB,
- LED_ESC,
- LED_LSFT,
- LED_LCTL,
-
- LED_LGUI,
- LED_Z,
- LED_A,
- LED_Q,
+ LED_IND_FUNC,
+ LED_IND_NUM,
+ LED_IND_EMOJI,
- LED_W,
- LED_S,
- LED_X,
- LED_LALT,
+ LED_BKSP,
+ LED_ENT,
+ LED_RSFT,
+ LED_RCTL,
- LED_PUNC,
- LED_C,
- LED_D,
- LED_E,
+ LED_RGUI,
+ LED_SLSH,
+ LED_SCLN,
+ LED_P,
- LED_R,
- LED_F,
- LED_V,
- LED_NUM,
+ LED_O,
+ LED_L,
+ LED_DOT,
+ LED_RALT,
- LED_LSPC,
- LED_B,
- LED_G,
- LED_T,
+ LED_EMOJI,
+ LED_COMM,
+ LED_K,
+ LED_I,
- LED_TRACKPOINT1,
- LED_TRACKPOINT2,
- LED_TRACKPOINT3,
+ LED_U,
+ LED_J,
+ LED_M,
+ LED_FUNC,
LED_RSPC,
LED_N,
LED_HH,
LED_Y,
- LED_U,
- LED_J,
- LED_M,
- LED_FUNC,
+ LED_TRACKPOINT3,
+ LED_TRACKPOINT2,
+ LED_TRACKPOINT1,
- LED_EMOJI,
- LED_COMM,
- LED_K,
- LED_I,
+ LED_LSPC,
+ LED_B,
+ LED_G,
+ LED_T,
- LED_O,
- LED_L,
- LED_DOT,
- LED_RALT,
+ LED_R,
+ LED_F,
+ LED_V,
+ LED_NUM,
- LED_RGUI,
- LED_SLSH,
- LED_SCLN,
- LED_P,
+ LED_PUNC,
+ LED_C,
+ LED_D,
+ LED_E,
- LED_BKSP,
- LED_ENT,
- LED_RSFT,
- LED_RCTL
+ LED_W,
+ LED_S,
+ LED_X,
+ LED_LALT,
+
+ LED_LGUI,
+ LED_Z,
+ LED_A,
+ LED_Q,
+
+ LED_TAB,
+ LED_ESC,
+ LED_LSFT,
+ LED_LCTL,
};
#endif