Skip to content

ledmatrix: Remove brightness scaling #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ledmatrix/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ const SLEEP_TIMEOUT: u64 = 60_000_000;
const MAX_CURRENT: usize = 500;

/// Maximum brightness out of 255
/// Set to 94 because that results in just below 500mA current draw.
const MAX_BRIGHTNESS: u8 = 94;
/// On HW Rev 1 from BizLink set to 94 to have just below 500mA current draw.
/// BizLink HW Rev 2 has a larger current limiting resistor
const MAX_BRIGHTNESS: u8 = 255;

// TODO: Doesn't work yet, unless I panic right at the beginning of main
//#[cfg(not(debug_assertions))]
Expand Down