syact 0.12.1-alpha

A library to control motors (mainly stepper motors) and components, read data from sensors and more
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::prelude::*;

#[test]
#[ignore = "Value display, run manually ... "]
fn gear_basic() {
    let mut gear = Gear::new(
        Stepper::new_gen(),
        2.0
    );
    gear.set_config(StepperConfig::GEN);
    gear.setup().unwrap();

    println!("Gear - Basics");
    gear.drive_rel(Delta(1.0), Factor::MAX).unwrap();
}