use super::MotorPort;
#[cfg(target_os = "linux")]
use crate::wait;
use crate::{Attribute, Device, Driver, Ev3Error, Ev3Result};
use std::time::Duration;
#[derive(Debug, Clone, Device)]
pub struct MediumMotor {
driver: Driver,
}
impl MediumMotor {
fn new(driver: Driver) -> Self {
Self { driver }
}
findable!(
"tacho-motor",
"lego-ev3-m-motor",
MotorPort,
"MediumMotor",
"out"
);
tacho_motor!();
}