mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Fine tune RGB sleep period
This commit is contained in:
@@ -24,6 +24,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
|
||||
writer.write_colour_block(&key_colours)?;
|
||||
|
||||
std::thread::sleep(std::time::Duration::from_millis(250));
|
||||
//std::thread::sleep(std::time::Duration::from_millis(250));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
writer.init_effect()?;
|
||||
let rows = layout.get_rows();
|
||||
|
||||
let mut fade = 17;
|
||||
let mut fade = 50;
|
||||
let mut flip = false;
|
||||
loop {
|
||||
for row in rows {
|
||||
@@ -33,6 +33,5 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
} else {
|
||||
flip = !flip;
|
||||
}
|
||||
std::thread::sleep(std::time::Duration::from_millis(10));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user