Class UpDownCounter

java.lang.Object
edu.wpi.first.wpilibj.counter.UpDownCounter
All Implemented Interfaces:
Sendable, AutoCloseable

public class UpDownCounter extends Object implements Sendable, AutoCloseable
Up Down Counter.

This class can count edges on a single digital input or count up based on an edge from one digital input and down on an edge from another digital input.

  • Constructor Details

    • UpDownCounter

      public UpDownCounter(int channel, EdgeConfiguration configuration)
      Constructs a new UpDown Counter.
      Parameters:
      channel - The up count source (can be null).
      configuration - The edge configuration.
  • Method Details