alienrgb 0.1.0

A library for Alienware RGB Controller device communication
Documentation
use std::time::Duration;

use alienrgb::{Commands, Elc};

/*
 * Copyright (c) 2025 Matteo Franceschini
 * All rights reserved.
 *
 * Use of this source code is governed by BSD-3-Clause-Clear
 * license that can be found in the LICENSE file
 */
fn main() {
    let mut elc = Elc::new();
    let status = elc.execute(&Commands::Query(alienrgb::QuerySub::AnimationCount));
    println!("{status:#?}");
    std::thread::sleep(Duration::from_secs(1));
    let status = elc.execute(&Commands::Query(alienrgb::QuerySub::Status));
    println!("{status:#?}");
}