summaryrefslogtreecommitdiff
path: root/keyboards/exclusive/e6_rgb/e6_rgb.c
diff options
context:
space:
mode:
authoryulei <yuleiz@gmail.com>2020-01-08 16:11:45 +0800
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2020-01-08 00:11:45 -0800
commitfe860131dd60e38d95e12da3d5ecaf22f82aa344 (patch)
treec7a30be7fd784574f8d25405bfdddbb5b4724499 /keyboards/exclusive/e6_rgb/e6_rgb.c
parent4a09679d740a68ba0cf3020cdaf4d010bd2beca5 (diff)
[Keyboard] fixed hhkb keymap issue on e6_rgb (#7684)
* fixed hhkb keymap issue and added allleds configuration * fixed layout mismatch * add more matrix control * remove redundent define in rules.mk * turn NKRO on * remove allled macro, adding readme in allleds mode, add via support * add two more layers for via * update readme file * Update keyboards/exclusive/e6_rgb/keymaps/allleds/readme * Update keyboards/exclusive/e6_rgb/keymaps/allleds/readme.md
Diffstat (limited to 'keyboards/exclusive/e6_rgb/e6_rgb.c')
-rw-r--r--keyboards/exclusive/e6_rgb/e6_rgb.c43
1 files changed, 28 insertions, 15 deletions
diff --git a/keyboards/exclusive/e6_rgb/e6_rgb.c b/keyboards/exclusive/e6_rgb/e6_rgb.c
index 106e58497e..0e248a2023 100644
--- a/keyboards/exclusive/e6_rgb/e6_rgb.c
+++ b/keyboards/exclusive/e6_rgb/e6_rgb.c
@@ -5,24 +5,10 @@
#include "e6_rgb.h"
#ifdef RGB_MATRIX_ENABLE
-__attribute__ ((weak))
void matrix_init_kb(void) {
- matrix_init_user();
-}
-
-__attribute__ ((weak))
-void matrix_scan_kb(void) {
- matrix_scan_user();
-}
-
-__attribute__ ((weak))
-void matrix_init_user(void) {
setPinOutput(D5);
writePinHigh(D5);
-}
-
-__attribute__ ((weak))
-void matrix_scan_user(void) {
+ matrix_init_user();
}
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
@@ -190,3 +176,30 @@ led_config_t g_led_config = { {
} };
#endif
+
+bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
+ if (record->event.pressed) {
+ switch(keycode) {
+#if defined(RGBLIGHT_ENABLE) && defined(RGB_MATRIX_ENABLE)
+ case KC_F13: // toggle rgb matrix
+ rgb_matrix_toggle();
+ return false;
+ case KC_F14:
+ rgb_matrix_step();
+ return false;
+ case KC_F15:
+ rgb_matrix_increase_hue();
+ return false;
+ case KC_F16:
+ rgb_matrix_increase_sat();
+ return false;
+ case KC_F17:
+ rgb_matrix_increase_val();
+ return false;
+#endif
+ default:
+ break;
+ }
+ }
+ return true;
+}