Skip to content

Commit

Permalink
ledmatrix: Reduce default brightness to 10%
Browse files Browse the repository at this point in the history
Otherwise it's too much in your face.

Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Nov 4, 2023
1 parent 76a7db5 commit 92d43b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions fl16-inputmodules/src/games/game_of_life.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ impl GameOfLifeState {
GameOfLifeStartParam::Blinker => Self::blinker(),
GameOfLifeStartParam::Toad => Self::toad(),
GameOfLifeStartParam::Glider => Self::glider(),
GameOfLifeStartParam::BeaconToadBlinker =>
Self::beacon().combine(&Self::toad()).combine(&Self::blinker()),
GameOfLifeStartParam::BeaconToadBlinker => Self::beacon()
.combine(&Self::toad())
.combine(&Self::blinker()),
}
}
fn pattern1() -> Self {
Expand Down
7 changes: 5 additions & 2 deletions ledmatrix/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ fn main() -> ! {
grid: percentage(0),
col_buffer: Grid::default(),
animate: false,
brightness: 51, // Default to 51/255 = 20% brightness
brightness: 26, // Default to 26/255 = 10% brightness
sleeping: SleepState::Awake,
game: None,
animation_period: 31_250, // 31,250 us = 32 FPS
Expand All @@ -245,7 +245,10 @@ fn main() -> ! {
0 => Animation::Percentage(StartupPercentageIterator::default()),
1 => Animation::ZigZag(ZigZagIterator::default()),
2 => Animation::Gof(GameOfLifeIterator::new(GameOfLifeStartParam::Pattern1, 200)),
3 => Animation::Gof(GameOfLifeIterator::new(GameOfLifeStartParam::BeaconToadBlinker, 128)),
3 => Animation::Gof(GameOfLifeIterator::new(
GameOfLifeStartParam::BeaconToadBlinker,
128,
)),
4 => Animation::Gof(GameOfLifeIterator::new(GameOfLifeStartParam::Glider, 128)),
5 => Animation::Breathing(BreathingIterator::default()),
6 => Animation::Pong(PongIterator::default()),
Expand Down

0 comments on commit 92d43b8

Please sign in to comment.