Class BaseLcdGpioAdapter
java.lang.Object
com.ibasco.ucgdisplay.drivers.clcd.BaseLcdGpioAdapter
- All Implemented Interfaces:
LcdGpioAdapter
- Direct Known Subclasses:
GpioLcdAdapter
,Mcp23008LcdAdapter
,Mcp23017LcdAdapter
,Pcf8574LcdAdapter
,ShiftRegisterLcdAdapter
Base class for
LcdGpioAdapter
- Author:
- Rafael Ibasco
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.pi4j.io.gpio.Pin
getMappedPin(LcdPin pin)
Retrieve the mappedLcdPin
protected boolean
Check if theLcdPin
is mapped to aPin
protected abstract void
validate(LcdPinMapConfig pinMapConfig)
Verify that we have the required lcd pins mappedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibasco.ucgdisplay.drivers.clcd.LcdGpioAdapter
initialize, setEnableState, setReadWriteState, setRegSelectState, write4Bits, write8Bits
-
Constructor Details
-
BaseLcdGpioAdapter
-
-
Method Details
-
validate
Verify that we have the required lcd pins mapped- Throws:
IllegalArgumentException
- Thrown if one of the required LCD Pins are not mappedInvalidPinMappingException
-
isMapped
Check if theLcdPin
is mapped to aPin
-
getMappedPin
Retrieve the mappedLcdPin
- Parameters:
pin
- TheLcdPin
to use for lookup- Returns:
- Returns the mapped
Pin
instance
-