status/status.rs
1use std::time::Duration;
2
3use alienrgb::{Commands, Elc};
4
5/*
6 * Copyright (c) 2025 Matteo Franceschini
7 * All rights reserved.
8 *
9 * Use of this source code is governed by BSD-3-Clause-Clear
10 * license that can be found in the LICENSE file
11 */
12fn main() {
13 let mut elc = Elc::new();
14 let status = elc.execute(&Commands::Query(alienrgb::QuerySub::AnimationCount));
15 println!("{status:#?}");
16 std::thread::sleep(Duration::from_secs(1));
17 let status = elc.execute(&Commands::Query(alienrgb::QuerySub::Status));
18 println!("{status:#?}");
19}