Class Stepper

java.lang.Object
jpigpio.devices.Stepper

public class Stepper
extends java.lang.Object
Control a stepper motor
  • Constructor Summary

    Constructors 
    Constructor Description
    Stepper​(JPigpio pigpio, int blueGpio, int pinkGpio, int yellowGpio, int orangeGpio)
    Create an instance of the Stepper object used to control the stepper motor.
  • Method Summary

    Modifier and Type Method Description
    void backward()
    Move the stepper backwards one step.
    void forward()
    Move the stepper forward one step.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Stepper

      public Stepper​(JPigpio pigpio, int blueGpio, int pinkGpio, int yellowGpio, int orangeGpio) throws PigpioException
      Create an instance of the Stepper object used to control the stepper motor.
      Parameters:
      pigpio - The pigpio controller
      blueGpio - The blue gpio pin (IN1)
      pinkGpio - The pink gpio pin (IN2)
      yellowGpio - The yellow gpio pin (IN3)
      orangeGpio - The orange gpio pin (IN4)
      Throws:
      PigpioException
  • Method Details