- java.lang.Object
-
- com.ibasco.ucgdisplay.drivers.glcd.GlcdPinMapConfig
-
public class GlcdPinMapConfig extends java.lang.Object
A utility class for mapping aGlcdPin
with device pin number- Author:
- Rafael Ibasco
-
-
Constructor Summary
Constructors Constructor Description GlcdPinMapConfig()
Creates a new instance of theGlcdPinMapConfig
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<GlcdPin,java.lang.Byte>
getPinMap()
GlcdPinMapConfig
map(GlcdPin glcdPin, int value)
Maps aGlcdPin
to a device pin number
-
-
-
Constructor Detail
-
GlcdPinMapConfig
public GlcdPinMapConfig()
Creates a new instance of theGlcdPinMapConfig
.
-
-
Method Detail
-
map
public GlcdPinMapConfig map(GlcdPin glcdPin, int value)
Maps aGlcdPin
to a device pin number- Parameters:
glcdPin
- AGlcdPin
to be mappedvalue
- The gpio line number. Follows the standard BCM pin numbering scheme.- Returns:
- GlcdPinMapConfig
-
getPinMap
public java.util.Map<GlcdPin,java.lang.Byte> getPinMap()
- Returns:
- A map of all the pin configurations
-
-