Skip to content

Commit

Permalink
Merge pull request #63 from Nitrokey/wink-color
Browse files Browse the repository at this point in the history
Change LED color for winking to white
  • Loading branch information
robin-nitrokey authored Jul 13, 2022
2 parents 5f6e2a1 + a708d4b commit 8a0ea23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# v1.0.4 (unreleased)

### Features

- Use white instead of blue as the LED color for winking ([#34][])

## v1.0.4-rc.3 (2022-07-05)

### Features
Expand Down
3 changes: 1 addition & 2 deletions runners/lpc55/board/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use crate::traits::rgb_led::Intensities;

const BLACK: Intensities = Intensities { red: 0, green: 0, blue: 0 };
const RED: Intensities = Intensities { red: u8::MAX, green: 0, blue: 0 };
const BLUE: Intensities = Intensities { red: 0, green: 0, blue: u8::MAX };
const TEAL: Intensities = Intensities { red: 0, green: u8::MAX, blue: 0x5a };
const WHITE: Intensities = Intensities { red: u8::MAX, green: u8::MAX, blue: u8::MAX };

Expand Down Expand Up @@ -53,7 +52,7 @@ impl Status {
Self::Processing => LedMode::constant(TEAL),
Self::WaitingForUserPresence(start) => LedMode::simple_blinking(WHITE, *start),
Self::Error => LedMode::constant(RED),
Self::Winking(range) => LedMode::simple_blinking(BLUE, range.start),
Self::Winking(range) => LedMode::simple_blinking(WHITE, range.start),
}
}
}
Expand Down

0 comments on commit 8a0ea23

Please sign in to comment.