1
0
Fork 0

[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
This commit is contained in:
yulei 2020-01-08 16:11:45 +08:00 committed by James Young
parent 4a09679d74
commit fe860131dd
10 changed files with 1418 additions and 105 deletions

View file

@ -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;
}