aboutsummaryrefslogtreecommitdiff
path: root/keyboards/jj40/jj40.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/jj40/jj40.c')
-rw-r--r--keyboards/jj40/jj40.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/keyboards/jj40/jj40.c b/keyboards/jj40/jj40.c
index 9c1775d6a..4affe199b 100644
--- a/keyboards/jj40/jj40.c
+++ b/keyboards/jj40/jj40.c
@@ -34,7 +34,7 @@ extern rgblight_config_t rgblight_config;
34// @Override 34// @Override
35void matrix_init_kb(void) { 35void matrix_init_kb(void) {
36 // call user level keymaps, if any 36 // call user level keymaps, if any
37 // matrix_init_user(); 37 matrix_init_user();
38} 38}
39 39
40#ifdef BACKLIGHT_ENABLE 40#ifdef BACKLIGHT_ENABLE
@@ -67,7 +67,8 @@ void rgblight_set(void) {
67} 67}
68 68
69bool rgb_init = false; 69bool rgb_init = false;
70void matrix_scan_user(void) { 70
71void matrix_scan_kb(void) {
71 // if LEDs were previously on before poweroff, turn them back on 72 // if LEDs were previously on before poweroff, turn them back on
72 if (rgb_init == false && rgblight_config.enable) { 73 if (rgb_init == false && rgblight_config.enable) {
73 i2c_init(); 74 i2c_init();
@@ -76,5 +77,18 @@ void matrix_scan_user(void) {
76 } 77 }
77 78
78 rgblight_task(); 79 rgblight_task();
80
81 matrix_scan_user();
79 /* Nothing else for now. */ 82 /* Nothing else for now. */
80} 83}
84
85__attribute__((weak)) // overridable
86void matrix_init_user(void) {
87
88}
89
90
91__attribute__((weak)) // overridable
92void matrix_scan_user(void) {
93
94}