Package com.pi4j.io.gpio
Class PinProvider
- java.lang.Object
-
- com.pi4j.io.gpio.PinProvider
-
- Direct Known Subclasses:
RaspiBcmPin
,RaspiPin
,RCMPin
public abstract class PinProvider extends Object
Pi4J pin definitions- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
-
Constructor Summary
Constructors Constructor Description PinProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Pin[]
allPins()
Get all pin instances from this provider.static Pin[]
allPins(PinMode... mode)
Get all pin instances from this provider that support one of the provided pin modes.protected static Pin
createAnalogInputPin(String providerName, int address, String name)
protected static Pin
createDigitalAndPwmPin(String providerName, int address, String name)
protected static Pin
createDigitalAndPwmPin(String providerName, int address, String name, EnumSet<PinEdge> edges)
protected static Pin
createDigitalPin(String providerName, int address, String name)
protected static Pin
createDigitalPin(String providerName, int address, String name, EnumSet<PinEdge> edges)
protected static Pin
createDigitalPin(String providerName, int address, String name, EnumSet<PinPullResistance> resistance, EnumSet<PinEdge> edges)
protected static Pin
createPin(String providerName, int address, String name, EnumSet<PinMode> modes)
protected static Pin
createPin(String providerName, int address, String name, EnumSet<PinMode> modes, EnumSet<PinPullResistance> resistance, EnumSet<PinEdge> edges)
static Pin
getPinByAddress(int address)
static Pin
getPinByName(String name)
-
-
-
Method Detail
-
createDigitalPin
protected static Pin createDigitalPin(String providerName, int address, String name)
-
createDigitalPin
protected static Pin createDigitalPin(String providerName, int address, String name, EnumSet<PinPullResistance> resistance, EnumSet<PinEdge> edges)
-
createDigitalPin
protected static Pin createDigitalPin(String providerName, int address, String name, EnumSet<PinEdge> edges)
-
createDigitalAndPwmPin
protected static Pin createDigitalAndPwmPin(String providerName, int address, String name, EnumSet<PinEdge> edges)
-
createDigitalAndPwmPin
protected static Pin createDigitalAndPwmPin(String providerName, int address, String name)
-
createAnalogInputPin
protected static Pin createAnalogInputPin(String providerName, int address, String name)
-
createPin
protected static Pin createPin(String providerName, int address, String name, EnumSet<PinMode> modes)
-
createPin
protected static Pin createPin(String providerName, int address, String name, EnumSet<PinMode> modes, EnumSet<PinPullResistance> resistance, EnumSet<PinEdge> edges)
-
getPinByAddress
public static Pin getPinByAddress(int address)
-
allPins
public static Pin[] allPins()
Get all pin instances from this provider.- Returns:
- all pin instances support by this provider
-
-