Fix YMDK NP21 keyboard to use proper keyboard level functions (#3042)

* Use proper function levels

* Add matrix init functions

* Convert KEYMAP to LAYOUT

Or @mechmerlin is going to hunt me down and harm me... probably :)

* Fix conflict issues
This commit is contained in:
Drashna Jaelre 2018-10-01 08:09:57 -07:00 committed by Jack Humbert
parent 9d949389f9
commit 3907ed034b
4 changed files with 19 additions and 9 deletions

View file

@ -34,7 +34,7 @@ extern rgblight_config_t rgblight_config;
// @Override
void matrix_init_kb(void) {
// call user level keymaps, if any
// matrix_init_user();
matrix_init_user();
}
#ifdef BACKLIGHT_ENABLE
@ -67,7 +67,7 @@ void rgblight_set(void) {
}
bool rgb_init = false;
void matrix_scan_user(void) {
void matrix_scan_kb(void) {
// if LEDs were previously on before poweroff, turn them back on
if (rgb_init == false && rgblight_config.enable) {
i2c_init();
@ -77,4 +77,6 @@ void matrix_scan_user(void) {
rgblight_task();
/* Nothing else for now. */
matrix_scan_user();
}