Package com.diozero.devices
Class HD44780Lcd.PCF8574LcdConnection
java.lang.Object
com.diozero.devices.HD44780Lcd.PCF8574LcdConnection
- All Implemented Interfaces:
HD44780Lcd.LcdConnection
,Closeable
,AutoCloseable
- Enclosing class:
- HD44780Lcd
public static class HD44780Lcd.PCF8574LcdConnection extends Object implements HD44780Lcd.LcdConnection
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_DEVICE_ADDRESS
-
Constructor Summary
Constructors Constructor Description PCF8574LcdConnection(int controller)
PCF8574LcdConnection(int controller, int deviceAddress)
-
Method Summary
Modifier and Type Method Description void
close()
int
getBacklightBit()
int
getDataReadWriteBit()
int
getEnableBit()
int
getRegisterSelectBit()
boolean
isDataInHighNibble()
void
write(byte values)
-
Field Details
-
DEFAULT_DEVICE_ADDRESS
public static final int DEFAULT_DEVICE_ADDRESS- See Also:
- Constant Field Values
-
-
Constructor Details
-
PCF8574LcdConnection
public PCF8574LcdConnection(int controller) -
PCF8574LcdConnection
public PCF8574LcdConnection(int controller, int deviceAddress)
-
-
Method Details
-
write
public void write(byte values)- Specified by:
write
in interfaceHD44780Lcd.LcdConnection
-
isDataInHighNibble
public boolean isDataInHighNibble()- Specified by:
isDataInHighNibble
in interfaceHD44780Lcd.LcdConnection
-
getRegisterSelectBit
public int getRegisterSelectBit()- Specified by:
getRegisterSelectBit
in interfaceHD44780Lcd.LcdConnection
-
getDataReadWriteBit
public int getDataReadWriteBit()- Specified by:
getDataReadWriteBit
in interfaceHD44780Lcd.LcdConnection
-
getEnableBit
public int getEnableBit()- Specified by:
getEnableBit
in interfaceHD44780Lcd.LcdConnection
-
getBacklightBit
public int getBacklightBit()- Specified by:
getBacklightBit
in interfaceHD44780Lcd.LcdConnection
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceHD44780Lcd.LcdConnection
- Throws:
RuntimeIOException
-