mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Initial groundwork of animatrix
This commit is contained in:
13
aura/examples/animatrix.rs
Normal file
13
aura/examples/animatrix.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use rog_aura::AnimatrixDbusWriter;
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let mut writer = AnimatrixDbusWriter::new()?;
|
||||
|
||||
let mut send_buffer = [vec![0; 640], vec![0; 640]];
|
||||
|
||||
loop {
|
||||
writer.write_image(&send_buffer)?;
|
||||
|
||||
//std::thread::sleep(std::time::Duration::from_millis(60));
|
||||
}
|
||||
}
|
||||
@@ -23,7 +23,5 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
}
|
||||
|
||||
writer.write_colour_block(&key_colours)?;
|
||||
|
||||
//std::thread::sleep(std::time::Duration::from_millis(250));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user