Skip to content

Commit f2d0037

Browse files
committed
ledmatrix: Limit max current to ~250mA
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 163b0c0 commit f2d0037

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ledmatrix/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ const MAX_CURRENT: usize = 500;
4141

4242
/// Maximum brightness out of 255
4343
/// On HW Rev 1 from BizLink set to 94 to have just below 500mA current draw.
44-
/// BizLink HW Rev 2 has a larger current limiting resistor
44+
///
45+
/// BizLink HW Rev 2 has a larger current limiting resistor.
46+
/// 100/255 results in 250mA current draw which is plenty bright.
4547
#[cfg(feature = "10k")]
4648
const MAX_BRIGHTNESS: u8 = 94;
4749
#[cfg(not(feature = "10k"))]
48-
const MAX_BRIGHTNESS: u8 = 255;
50+
const MAX_BRIGHTNESS: u8 = 100;
4951

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

0 commit comments

Comments
 (0)