mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
implementation side of non-blocking dimming
This commit is contained in:
parent
4d505f188d
commit
351830c7d0
1 changed files with 5 additions and 0 deletions
|
|
@ -948,6 +948,11 @@ pub fn wrapped_main(main_thread_token: MainThreadToken) -> ! {
|
||||||
display
|
display
|
||||||
.brightness(brightness)
|
.brightness(brightness)
|
||||||
.unwrap_or_else(|_| display_timeout_handler(&udma_global, &mut display));
|
.unwrap_or_else(|_| display_timeout_handler(&udma_global, &mut display));
|
||||||
|
} else if let Some(scalar) = msg.body.scalar_message() {
|
||||||
|
let brightness = scalar.arg1.min(255) as u8;
|
||||||
|
display
|
||||||
|
.brightness(brightness)
|
||||||
|
.unwrap_or_else(|_| display_timeout_handler(&udma_global, &mut display));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[cfg(feature = "board-baosec")]
|
#[cfg(feature = "board-baosec")]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue