use std::{thread::sleep, time::Duration}; use wooting_rgb::{Key, RgbKeyboard}; fn main() { println!( "Keyboard connected? {}", wooting_rgb::is_wooting_keyboard_connected() ); let mut keyboard = RgbKeyboard; keyboard.direct_set_key(Key::Q, 255, 255, 255); sleep(Duration::from_millis(1000)); keyboard.direct_reset_key(Key::Q); sleep(Duration::from_millis(1000)); keyboard.direct_set_key(Key::W, 255, 255, 255); sleep(Duration::from_millis(1000)); keyboard.direct_reset_key(Key::W); sleep(Duration::from_millis(1000)); keyboard.direct_set_key(Key::E, 255, 255, 255); sleep(Duration::from_millis(1000)); keyboard.direct_reset_key(Key::E); sleep(Duration::from_millis(1000)); keyboard.direct_set_key(Key::R, 255, 255, 255); sleep(Duration::from_millis(1000)); keyboard.direct_reset_key(Key::R); sleep(Duration::from_millis(1000)); keyboard.direct_set_key(Key::T, 255, 255, 255); sleep(Duration::from_millis(1000)); keyboard.direct_reset_key(Key::T); sleep(Duration::from_millis(1000)); keyboard.direct_set_key(Key::Y, 255, 255, 255); sleep(Duration::from_millis(1000)); keyboard.direct_reset_key(Key::Y); sleep(Duration::from_millis(1000)); println!("Finished!"); }