implement histogram correction from CCCB_Ledwand

This commit is contained in:
Vinzenz Schroeter 2025-02-28 10:48:03 +01:00
commit 1de6caa8a7
7 changed files with 158 additions and 17 deletions

View file

@ -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:?}");
}
}