public class Potentiometer extends AnalogInputDevice
gpio
Constructor and Description |
---|
Potentiometer(AnalogInputDeviceFactoryInterface deviceFactory,
int gpio) |
Potentiometer(int gpio) |
Modifier and Type | Method and Description |
---|---|
float |
getVoltage() |
addListener, addListener, close, disableDeviceListener, enableDeviceListener, getScaledValue, getUnscaledValue, getVRef, run
addListener, removeAllListeners, removeListener, valueChanged
getGpio
public Potentiometer(int gpio)
gpio
- GPIO which the potentiometer is connected.public Potentiometer(AnalogInputDeviceFactoryInterface deviceFactory, int gpio)
Copyright © 2016–2017 mattjlewis. All rights reserved.