Browse Source

Changed colors a bit

pull/14484/head^2
Batuhan Başerdem 2 years ago
parent
commit
5f8b1fe85b
2 changed files with 17 additions and 8 deletions
  1. +9
    -0
      layouts/community/split_3x6_3/bbaserdem/keymap.c
  2. +8
    -8
      users/bbaserdem/bb-rgb.c

+ 9
- 0
layouts/community/split_3x6_3/bbaserdem/keymap.c View File

@ -94,6 +94,15 @@ void keyboard_post_init_keymap(void) {
OPAMP3->CSR = OPAMP3_CSR_VMSEL_1 | OPAMP3_CSR_VMSEL_0 | OPAMP3_CSR_VPSEL_0 | OPAMP3_CSR_OPAMP3EN;
}
// Flip the display on the right half
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
if (!is_keyboard_left()) {
return OLED_ROTATION_180;
}
return rotation;
}
bool oled_task_keymap(void) {
if (is_keyboard_left()) {
render_status_left();


+ 8
- 8
users/bbaserdem/bb-rgb.c View File

@ -28,17 +28,17 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
}
// Do each layer seperately
switch (get_highest_layer(layer_state)) {
case _GAME: // Set left side as turquoise
case _GAME: // Set left side as purple
for(uint8_t i = led_min; i <= led_max; i++) {
if(g_led_config.point[i].x < SPLIT_POINT) {
rgb_matrix_set_color(i, RGB_PURPLE);
}
}
break;
case _CHAR: // Set full board as chartreuse
case _CHAR: // Set full board as gold
rgb_matrix_set_color_all(RGB_GOLD);
break;
case _MEDI: // Set right side as coral
case _MEDI: // Set right side as pink
for(uint8_t i = led_min; i <= led_max; i++) {
if(g_led_config.point[i].x > SPLIT_POINT) {
rgb_matrix_set_color(i, RGB_PINK);
@ -52,17 +52,17 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
}
}
break;
case _SYMB: // Set right side as purple
case _SYMB: // Set right side as yellow
for(uint8_t i = led_min; i <= led_max; i++) {
if(g_led_config.point[i].x > SPLIT_POINT) {
rgb_matrix_set_color(i, RGB_YELLOW);
}
}
break;
case _NUMB: // Set left side as cyan
case _NUMB: // Set left side as blue
for(uint8_t i = led_min; i <= led_max; i++) {
if(g_led_config.point[i].x < SPLIT_POINT) {
rgb_matrix_set_color(i, RGB_CYAN);
rgb_matrix_set_color(i, RGB_BLUE);
}
}
break;
@ -73,14 +73,14 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
}
}
break;
case _MOUS: // Set left side as yellow
case _MOUS: // Set left side as blue-green
for(uint8_t i = led_min; i <= led_max; i++) {
if(g_led_config.point[i].x < SPLIT_POINT) {
rgb_matrix_set_color(i, RGB_SPRINGGREEN);
}
}
break;
case _MUSI: // Set full board as magenta
case _MUSI: // Set full board as orange
rgb_matrix_set_color_all(RGB_ORANGE);
break;
}


Loading…
Cancel
Save