Skip to content

Commit

Permalink
ledmatrix: Remove brightness scaling
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Aug 31, 2023
1 parent 4669614 commit 9d0664a
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 9d0664a

Please sign in to comment.