Skip to content

Commit

Permalink
Change LED colour with prof
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Mar 5, 2024
1 parent 00f267d commit 9bf76b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/src/stp_indicators.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ static void zmk_stp_indicators_bluetooth(struct k_work *work) {
}

static void zmk_stp_indicators_caps(struct k_work *work) {
if (ble_status.prof) {
color0.h = 240;
color0.s = 100;
} else if (usb) {
color0.h = 120;
color0.s = 100;
} else
color0.s = 0;
// Set LED on if capslock pressed
if (caps)
color0.b = CONFIG_ZMK_STP_INDICATORS_BRT_MAX;
Expand Down

0 comments on commit 9bf76b8

Please sign in to comment.