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, setTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTagpublic PiFaceBase(byte spiAddress,
int spiChannel)
throws IOException
IOExceptionpublic GpioController getGpio()
public PiFaceGpioProvider getGpioProvider()
public GpioPinDigitalInput[] getInputPins()
getInputPins in interface PiFacepublic GpioPinDigitalInput getInputPin(int index)
getInputPin in interface PiFacepublic GpioPinDigitalOutput[] getOutputPins()
getOutputPins in interface PiFacepublic GpioPinDigitalOutput getOutputPin(int index)
getOutputPin in interface PiFacepublic Relay getRelay(int index)
public Relay getRelay(PiFaceRelay relay)
public Switch[] getSwitches()
getSwitches in interface PiFacepublic Switch getSwitch(int index)
public Switch getSwitch(PiFaceSwitch switchValue)
Copyright © 2012-2013 Pi4J. All Rights Reserved.