public abstract class PinProvider extends Object
Constructor and Description |
---|
PinProvider() |
Modifier and Type | Method and 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) |
public PinProvider()
protected static Pin createDigitalPin(String providerName, int address, String name)
protected static Pin createDigitalPin(String providerName, int address, String name, EnumSet<PinPullResistance> resistance, EnumSet<PinEdge> edges)
protected static Pin createDigitalPin(String providerName, int address, String name, EnumSet<PinEdge> edges)
protected static Pin createDigitalAndPwmPin(String providerName, int address, String name, EnumSet<PinEdge> edges)
protected static Pin createDigitalAndPwmPin(String providerName, int address, String name)
protected static Pin createAnalogInputPin(String providerName, int address, String name)
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)
public static Pin getPinByName(String name)
public static Pin getPinByAddress(int address)
public static Pin[] allPins()
Copyright © 2012–2019 Pi4J. All rights reserved.