public interface Potentiometer extends Component
Modifier and Type | Method and Description |
---|---|
void |
decrease()
Decrease the wiper's value by one step.
|
void |
decrease(int steps)
Decrease the wiper's value by n steps.
|
int |
getCurrentValue()
The implementation should cache to wiper's value and therefore should
avoid accessing the device to often.
|
int |
getMaxValue() |
void |
increase()
Increase the wiper's value by one step.
|
void |
increase(int steps)
Increase the wiper's value by n steps.
|
boolean |
isRheostat() |
void |
setCurrentValue(int value)
Set wiper's value.
|
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
int getMaxValue()
boolean isRheostat()
void setCurrentValue(int value) throws IOException
value
- The wiper's value.IOException
- If communication with the device failsgetMaxValue()
int getCurrentValue() throws IOException
IOException
- If communication with the device failsvoid increase() throws IOException
IOException
- If communication with the device failsgetMaxValue()
void increase(int steps) throws IOException
steps
- How many steps to increase.IOException
- If communication with the device failsvoid decrease() throws IOException
IOException
- If communication with the device failsvoid decrease(int steps) throws IOException
steps
- How many steps to decrease.IOException
- If communication with the device failsCopyright © 2012–2016 Pi4J. All rights reserved.