/* This file is part of wiimote-rs (https://codeberg.org/metamuffin/wiimote-rs) which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2023 metamuffin */ use std::{thread::sleep, time::Duration}; use wiimote::{Action, Wiimote}; fn main() { env_logger::init_from_env("LOG"); let w = Wiimote::open(); w.write(Action::RumbleEnable(true)); sleep(Duration::from_millis(1000)); w.write(Action::RumbleEnable(false)); }