summaryrefslogtreecommitdiff
path: root/keyboards/handwired/promethium
diff options
context:
space:
mode:
authorPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-04-19 12:03:48 +0700
committerPriyadi Iman Nurcahyo <priyadi@priyadi.net>2017-04-19 12:03:48 +0700
commitce0efa6b9a92387af395fded796e8ccb8927b52d (patch)
tree7966bd4352a4207553015b5e141d42304a9498d4 /keyboards/handwired/promethium
parent5bc0c4a0115c5d434ba3840c63222d1daefda758 (diff)
Fix LED sequence; bug fixes
Diffstat (limited to 'keyboards/handwired/promethium')
-rw-r--r--keyboards/handwired/promethium/config.h12
-rw-r--r--keyboards/handwired/promethium/keymaps/priyadi/keymap.c16
2 files changed, 18 insertions, 10 deletions
diff --git a/keyboards/handwired/promethium/config.h b/keyboards/handwired/promethium/config.h
index a13406b0dd..04f7caa55c 100644
--- a/keyboards/handwired/promethium/config.h
+++ b/keyboards/handwired/promethium/config.h
@@ -205,7 +205,7 @@ enum led_sequence {
LED_RSFT,
LED_RCTL,
- LED_RGUI,
+ LED_RALT,
LED_SLSH,
LED_SCLN,
LED_P,
@@ -213,9 +213,9 @@ enum led_sequence {
LED_O,
LED_L,
LED_DOT,
- LED_RALT,
+ LED_RGUI,
- LED_EMOJI,
+ LED_GREEK,
LED_COMM,
LED_K,
LED_I,
@@ -244,7 +244,7 @@ enum led_sequence {
LED_V,
LED_NUM,
- LED_PUNC,
+ LED_EMPTY,
LED_C,
LED_D,
LED_E,
@@ -252,9 +252,9 @@ enum led_sequence {
LED_W,
LED_S,
LED_X,
- LED_LALT,
-
LED_LGUI,
+
+ LED_LALT,
LED_Z,
LED_A,
LED_Q,
diff --git a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
index efa5d9756e..7a18b02fd4 100644
--- a/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
+++ b/keyboards/handwired/promethium/keymaps/priyadi/keymap.c
@@ -434,10 +434,10 @@ const uint8_t PROGMEM LED_MODS[] = {
};
const uint8_t PROGMEM LED_FN[] = {
- LED_PUNC,
+ LED_EMPTY,
LED_NUM,
LED_FUN,
- LED_EMOJI
+ LED_GREEK
};
const uint8_t PROGMEM LED_INDICATORS[] = {
@@ -632,6 +632,14 @@ void led_init(void) {
// layer indicator
led_set_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:
#ifdef RGBSPS_ENABLE
if (fauxclicky_enabled) {
- rgbsps_set(LED_IND_AUDIO, 0, 0, 0);
- } else {
rgbsps_set(LED_IND_AUDIO, 5, 11, 13);
+ } else {
+ rgbsps_set(LED_IND_AUDIO, 0, 0, 0);
}
rgbsps_send();
#endif