Function create_stepper_2pin

Source
pub fn create_stepper_2pin<P1, P2, D>(
    p1: P1,
    p2: P2,
    delay: D,
    number_of_steps: u32,
) -> Stepper<StepperMotor2<P1, P2>, D>
where P1: OutputPin, P2: OutputPin<Error = P1::Error>, D: DelayNs,
Expand description

Factory: build a Stepper2 from two pins and a delay. Build a 2-pin stepper controller.

  • number_of_steps: steps per revolution (or per full cycle of your sequence)