implement histogram correction from CCCB_Ledwand
This commit is contained in:
parent
2dcf092100
commit
1de6caa8a7
7 changed files with 158 additions and 17 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use servicepoint::{Brightness, Command, Connection};
|
||||
use log::info;
|
||||
use crate::cli::BrightnessCommand;
|
||||
use log::info;
|
||||
use servicepoint::{Brightness, Command, Connection};
|
||||
|
||||
pub(crate) fn brightness(connection: &Connection, brightness_command: BrightnessCommand) {
|
||||
match brightness_command {
|
||||
|
|
@ -17,4 +17,4 @@ pub(crate) fn brightness_set(connection: &Connection, brightness: Brightness) {
|
|||
.send(Command::Brightness(brightness))
|
||||
.expect("Failed to set brightness");
|
||||
info!("set brightness to {brightness:?}");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue