2019-03-03 15:31:12 -08:00
|
|
|
#include "stanrc85.h"
|
|
|
|
|
|
|
|
void matrix_init_user(void) {
|
2019-05-21 10:59:08 -07:00
|
|
|
rgblight_setrgb(0xFF, 0x00, 0x00);
|
2019-03-03 15:31:12 -08:00
|
|
|
};
|
|
|
|
|
2021-07-19 09:50:55 -07:00
|
|
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
2022-06-18 14:37:51 -07:00
|
|
|
switch (get_highest_layer(state)) {
|
2019-03-03 15:31:12 -08:00
|
|
|
case 0:
|
2019-05-21 10:59:08 -07:00
|
|
|
rgblight_setrgb (0xFF, 0x00, 0x00);
|
|
|
|
break;
|
2019-03-03 15:31:12 -08:00
|
|
|
case 1:
|
2019-05-21 10:59:08 -07:00
|
|
|
rgblight_setrgb (0x00, 0xFF, 0x00);
|
|
|
|
break;
|
2019-03-03 15:31:12 -08:00
|
|
|
case 2:
|
2019-05-21 10:59:08 -07:00
|
|
|
rgblight_setrgb (0x00, 0x00, 0xFF);
|
|
|
|
break;
|
2019-03-03 15:31:12 -08:00
|
|
|
case 3:
|
2019-05-21 10:59:08 -07:00
|
|
|
rgblight_setrgb (0xFF, 0xFF, 0xFF);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
rgblight_setrgb (0xFF, 0x00, 0xFF);
|
|
|
|
break;
|
2019-03-03 15:31:12 -08:00
|
|
|
default: // for any other layers, or the default layer
|
2019-05-21 10:59:08 -07:00
|
|
|
rgblight_setrgb (0xFF, 0x00, 0x00);
|
|
|
|
break;
|
2019-03-03 15:31:12 -08:00
|
|
|
}
|
|
|
|
return state;
|
|
|
|
}
|