public class MCP4452 extends MicrochipPotentiometerBase implements MicrochipPotentiometer
INITIALVALUE_LOADED_FROM_EEPROM, nonVolatileMode, PIN_NOT_AVAILABLE
Constructor and Description |
---|
MCP4452(I2CBus i2cBus,
boolean pinA0,
int initialValue)
Builds an instance which is ready to use.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxValue() |
MicrochipPotentiometerChannel[] |
getSupportedChannelsByDevice() |
boolean |
isCapableOfNonVolatileWiper() |
boolean |
isRheostat() |
static int |
maxValue() |
buildI2CAddress, decrease, decrease, equals, getChannel, getCurrentValue, getDeviceStatus, getNonVolatileMode, getNonVolatileValue, getTerminalConfiguration, increase, increase, initialize, isChannelSupportedByDevice, setCurrentValue, setNonVolatileMode, setTerminalConfiguration, setWiperLock, setWriteProtection, toString, updateCacheFromDevice
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChannel, getDeviceStatus, getNonVolatileMode, getTerminalConfiguration, isChannelSupportedByDevice, setTerminalConfiguration, setWiperLock, setWriteProtection, updateCacheFromDevice
decrease, decrease, getCurrentValue, increase, increase, setCurrentValue
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
public MCP4452(I2CBus i2cBus, boolean pinA0, int initialValue) throws IOException
i2cBus
- The Pi4J-I2CBus to which the device is connected topinA0
- Whether the device's address pin A0 is high (true) or low (false)initialValue
- Initial value of wiperIOException
- Thrown if communication fails or device returned a malformed resultpublic boolean isCapableOfNonVolatileWiper()
isCapableOfNonVolatileWiper
in interface MicrochipPotentiometer
isCapableOfNonVolatileWiper
in class MicrochipPotentiometerBase
public int getMaxValue()
getMaxValue
in interface Potentiometer
public static int maxValue()
public boolean isRheostat()
isRheostat
in interface Potentiometer
public MicrochipPotentiometerChannel[] getSupportedChannelsByDevice()
getSupportedChannelsByDevice
in interface MicrochipPotentiometer
getSupportedChannelsByDevice
in class MicrochipPotentiometerBase
Copyright © 2012–2016 Pi4J. All rights reserved.