Skip to content

Commit

Permalink
Refactor to latest QMK and bug fix
Browse files Browse the repository at this point in the history
- Rename info.json to keyboard.json for latest QMK update
- Fix side LED short last blink for sleep mode and sw switch mode.
  • Loading branch information
jincao1 committed May 31, 2024
1 parent df6e2f2 commit 2c6489b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
File renamed without changes.
18 changes: 11 additions & 7 deletions keyboards/nuphy/air75_v2/ansi/side.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ void side_rgb_refresh(void) {
pwr_side_led_on(); // power on side LED before refresh
}
if (!flush_side_leds) return;
side_led_last_act = 0;
side_ws2812_setleds(side_leds, SIDE_LED_NUM);
flush_side_leds = false;
}
Expand Down Expand Up @@ -280,14 +281,16 @@ void sys_sw_led_show(void) {
g_temp = 0x00;
b_temp = 0x80;
}
if (timer_elapsed32(sys_show_timer) >= 3000) {
sys_show_flag = false;
return;
}
if ((timer_elapsed32(sys_show_timer) / 500) % 2 == 0) {
set_right_rgb(r_temp, g_temp, b_temp);
} else {
set_right_rgb(0x00, 0x00, 0x00);
}
if (timer_elapsed32(sys_show_timer) >= 3000) {
sys_show_flag = false;
}

}
}

Expand Down Expand Up @@ -320,15 +323,16 @@ void sleep_sw_led_show(void) {
g_temp = 0x80;
break;
}


if (timer_elapsed32(sleep_show_timer) >= 3000) {
sleep_show_flag = false;
return;
}
if ((timer_elapsed32(sleep_show_timer) / 500) % 2 == 0) {
set_right_rgb(r_temp, g_temp, b_temp);
} else {
set_right_rgb(0x00, 0x00, 0x00);
}
if (timer_elapsed32(sleep_show_timer) >= 3000) {
sleep_show_flag = false;
}
}
}

Expand Down

0 comments on commit 2c6489b

Please sign in to comment.