ev3dev-lang-rust 0.16.0

Rust language bindings for ev3dev
Documentation
use super::MotorPort;
use crate::{wait, Attribute, Device, Driver, Ev3Error, Ev3Result};
use std::time::Duration;

/// EV3 medium servo motor
#[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!();
}