Skip to content

ForceFan

ForceFan is a command that forcibly turns the cooling fan on.

ForceFan { value };
Field Type Default Description
value bool false Force the fan on when true
use std::time::Duration;
use autd3_rs::commands::{Clear, ForceFan, Synchronize};
use autd3_rs::geometry::{Autd3, Geometry};
use autd3_rs::Client;
use autd3_rs::udp::TransportOption;
let geometry = Geometry::new(vec![Autd3::default()]);
let option = TransportOption::default();
let mut client = Client::open(&geometry, &option).await?;
client.send(Clear).await?;
client.send(Synchronize).await?;
client.send(ForceFan { value: true }).await?;