dd
This commit is contained in:
parent
dc8f5430ac
commit
e7eb0464c7
1 changed files with 33 additions and 8 deletions
|
@ -24,12 +24,20 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
|||
const uint8_t led_sym_indexes[16] = {1, 5, 6, 10, 13, 14, 15, 16, 19, 20, 21, 22, 25, 32, 33, 34};
|
||||
const uint8_t led_mov_indexes[20] = {2, 3, 4, 7, 8, 9, 10, 11, 13, 14, 15, 16, 19, 20, 21, 22, 26, 27, 31, 33};
|
||||
const uint8_t led_media_indexes[6] = {1, 4, 5, 17, 28, 29};
|
||||
const uint8_t led_border_indexes[6] = {0, 12, 24, 36, 37, 38, 45, 46, 42, 43, 44, 39, 40, 41, 35, 23, 11};
|
||||
|
||||
for (uint8_t i = led_min; i < led_max; i++) {
|
||||
switch(get_highest_layer(layer_state|default_layer_state)) {
|
||||
//base
|
||||
case 0:
|
||||
rgblight_sethsv(0, 0, 100); // pure white (werte = hue, saturation, value)
|
||||
// All
|
||||
for (int i=0; i<=46; i++) {
|
||||
rgb_matrix_set_color(i, 24, 158, 230); // blue
|
||||
}
|
||||
// only border
|
||||
for (int i=0; i<17; i++) {
|
||||
rgb_matrix_set_color(led_border_indexes[i], 255, 88, 0); // orange
|
||||
}
|
||||
break;
|
||||
// num
|
||||
case 1:
|
||||
|
@ -47,6 +55,10 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
|||
}
|
||||
// capsword
|
||||
rgb_matrix_set_color(25, 235, 235, 19); // 50 shades of yellow
|
||||
// only border
|
||||
for (int i=0; i<17; i++) {
|
||||
rgb_matrix_set_color(led_border_indexes[i], 255, 88, 0); // orange
|
||||
}
|
||||
break;
|
||||
// sym
|
||||
case 2:
|
||||
|
@ -73,21 +85,40 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
|||
for (int i=0; i<16; i++) {
|
||||
rgb_matrix_set_color(led_sym_indexes[i], 234, 221, 13); // other yellow
|
||||
}
|
||||
// only border
|
||||
for (int i=0; i<17; i++) {
|
||||
rgb_matrix_set_color(led_border_indexes[i], 255, 88, 0); // orange
|
||||
}
|
||||
break;
|
||||
// mov
|
||||
case 3:
|
||||
for (int i=0; i<20; i++) {
|
||||
rgb_matrix_set_color(led_mov_indexes[i], 4, 147, 4); // green
|
||||
}
|
||||
// only border
|
||||
for (int i=0; i<17; i++) {
|
||||
rgb_matrix_set_color(led_border_indexes[i], 255, 88, 0); // orange
|
||||
}
|
||||
break;
|
||||
// media
|
||||
case 4:
|
||||
for (int i=0; i<6; i++) {
|
||||
rgb_matrix_set_color(led_media_indexes[i], 235, 56, 19); // 50 shades of red
|
||||
}
|
||||
// only border
|
||||
for (int i=0; i<17; i++) {
|
||||
rgb_matrix_set_color(led_border_indexes[i], 255, 88, 0); // orange
|
||||
}
|
||||
break;
|
||||
default:
|
||||
rgblight_sethsv(0, 0, 100); // pure white (werte = hue, saturation, value)
|
||||
// All
|
||||
for (int i=0; i<=46; i++) {
|
||||
rgb_matrix_set_color(i, 24, 158, 230); // blue
|
||||
}
|
||||
// only border
|
||||
for (int i=0; i<17; i++) {
|
||||
rgb_matrix_set_color(led_border_indexes[i], 255, 88, 0); // orange
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -203,9 +234,3 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// README + farben TODO
|
||||
// rerset buttor fur alle? TODO
|
||||
// base layer farbe TODO
|
||||
// farbe testen in allen layern TODO
|
||||
// index "rayhmen"-ekys ganz oben un in jedemlayer einfärben TODO
|
||||
|
|
Loading…
Reference in a new issue