[Keymap] Phoebe keymap improvements (#7963)
authorMax Rumpf <max.rumpf1998@gmail.com>
Wed, 22 Jan 2020 22:46:00 +0000 (23:46 +0100)
committerDrashna Jaelre <drashna@live.com>
Wed, 22 Jan 2020 22:46:00 +0000 (14:46 -0800)
* [Phoebe] Allow to input pipe characters with only one modifier

* [Phoebe] Update RGB animations

keyboards/maxr1998/phoebe/config.h
keyboards/maxr1998/phoebe/keymaps/default/keymap.c
keyboards/maxr1998/phoebe/phoebe.c

index 2e912b0..2be26c6 100644 (file)
@@ -49,9 +49,14 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 /* RGB LED Setup */
 #define RGB_DI_PIN          F0 // pin the DI on the WS2812B is hooked-up to
-#define RGBLIGHT_ANIMATIONS    // run RGB animations
 #define RGBLED_NUM          8  // number of LEDs
 
+/* Selectively enable animation effects */
+#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
+#define RGBLIGHT_EFFECT_SNAKE
+#define RGBLIGHT_EFFECT_CHRISTMAS
+#define RGBLIGHT_EFFECT_CHRISTMAS_STEP 1
+
 /*
  * Feature disable options
  *  These options are also useful to firmware size reduction.
index da179c8..1b6052a 100644 (file)
@@ -74,7 +74,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 [_FN] = LAYOUT(
   _______, KC_F1,   KC_F2,   KC_F3,   KC_F4,   KC_F5,   KC_F6,   KC_F7,   KC_F8,   KC_F10,  KC_F11,  KC_F12,
   _______, _______, _______, _______, _______, _______, _______, DE_UE,   KC_F9,   DE_OE,   _______, KC_DEL,
-  KC_LOCK, DE_AE,   DE_SS,   _______, _______, G_1,     _______, RGB_M_P, RGB_M_B, RGB_M_SW,_______, _______,
+  KC_LOCK, DE_AE,   DE_SS,   _______, _______, G_1,     _______, RGB_M_P, RGB_M_SW,RGB_M_SN,_______, _______,
   _______, _______, _______, _______, _______, _______, _______, RGB_HUD, RGB_TOG, RGB_HUI, KC_PGUP, _______,
   XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX,      _______,     XXXXXXX, XXXXXXX, KC_HOME, KC_PGDN, KC_END
 ),
@@ -115,6 +115,16 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
                 return false;
             }
             break;
+        case KC_Z:
+            if (get_mods() & MODS_ALGR_MASK) {
+                if (record->event.pressed) {
+                    register_code(DE_LESS);
+                } else {
+                    unregister_code(DE_LESS);
+                }
+                return false;
+            }
+            break;
     }
     return true;
 };
index d8629f7..28d3afe 100644 (file)
@@ -1 +1,3 @@
 #include "phoebe.h"
+
+const uint8_t RGBLED_SNAKE_INTERVALS[] PROGMEM = {50, 50, 50};