Class Potentiometer

All Implemented Interfaces:
DeviceInterface, DeviceEventConsumer<AnalogInputEvent>, AutoCloseable, Runnable, Consumer<AnalogInputEvent>

public class Potentiometer
extends AnalogInputDevice
Supports taking readings from a potentiometer.
  • Constructor Details

    • Potentiometer

      public Potentiometer​(int gpio)
      Parameters:
      gpio - GPIO which the potentiometer is connected.
    • Potentiometer

      public Potentiometer​(AnalogInputDeviceFactoryInterface deviceFactory, int gpio)
  • Method Details

    • getVoltage

      public float getVoltage()