public abstract class PiFaceBase extends DeviceBase implements PiFace
DEFAULT_ADDRESS
Constructor and Description |
---|
PiFaceBase(byte spiAddress,
int spiChannel) |
Modifier and Type | Method and Description |
---|---|
GpioController |
getGpio() |
PiFaceGpioProvider |
getGpioProvider() |
GpioPinDigitalInput |
getInputPin(int index) |
GpioPinDigitalInput[] |
getInputPins() |
LED |
getLed(int index) |
LED |
getLed(PiFaceLed led) |
LED[] |
getLeds() |
GpioPinDigitalOutput |
getOutputPin(int index) |
GpioPinDigitalOutput[] |
getOutputPins() |
Relay |
getRelay(int index) |
Relay |
getRelay(PiFaceRelay relay) |
Relay[] |
getRelays() |
Switch |
getSwitch(int index) |
Switch |
getSwitch(PiFaceSwitch switchValue) |
Switch[] |
getSwitches() |
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
public PiFaceBase(byte spiAddress, int spiChannel) throws IOException
IOException
public GpioController getGpio()
public PiFaceGpioProvider getGpioProvider()
public GpioPinDigitalInput[] getInputPins()
getInputPins
in interface PiFace
public GpioPinDigitalInput getInputPin(int index)
getInputPin
in interface PiFace
public GpioPinDigitalOutput[] getOutputPins()
getOutputPins
in interface PiFace
public GpioPinDigitalOutput getOutputPin(int index)
getOutputPin
in interface PiFace
public Relay[] getRelays()
public Relay getRelay(int index)
public Relay getRelay(PiFaceRelay relay)
public Switch[] getSwitches()
getSwitches
in interface PiFace
public Switch getSwitch(int index)
public Switch getSwitch(PiFaceSwitch switchValue)
Copyright © 2012–2014 Pi4J. All rights reserved.