Skip to content

Commit 182e651

Browse files
committed
ledmatrix: Reduce maximum brightness to a more reasonable level
Even though we can, we don't need to go as high as possible and blind the user. Signed-off-by: Daniel Schaefer <[email protected]>
1 parent a53de67 commit 182e651

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ledmatrix/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ const MAX_CURRENT: usize = 500;
4444
///
4545
/// BizLink HW Rev 2 has a larger current limiting resistor.
4646
/// 100/255 results in 250mA current draw which is plenty bright.
47+
/// 50/255 results in 160mA current draw which is plenty bright.
4748
#[cfg(feature = "10k")]
4849
const MAX_BRIGHTNESS: u8 = 94;
4950
#[cfg(not(feature = "10k"))]
50-
const MAX_BRIGHTNESS: u8 = 100;
51+
const MAX_BRIGHTNESS: u8 = 50;
5152

5253
// TODO: Doesn't work yet, unless I panic right at the beginning of main
5354
//#[cfg(not(debug_assertions))]
@@ -233,7 +234,7 @@ fn main() -> ! {
233234
grid: percentage(0),
234235
col_buffer: Grid::default(),
235236
animate: false,
236-
brightness: 26, // Default to 26/255 = 10% brightness
237+
brightness: 51, // Default to 51/255 = 20% brightness
237238
sleeping: SleepState::Awake,
238239
game: None,
239240
animation_period: 31_250, // 31,250 us = 32 FPS

0 commit comments

Comments
 (0)