Package jpigpio.devices
Class LCD
java.lang.Object
jpigpio.devices.LCD
public class LCD
extends java.lang.Object
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
clear()
void
functionModeSet()
void
home()
void
setBlink(boolean value)
Set whether or not the cursor blinks.void
setCursor(boolean value)
Set whether or not the cursor is shown.void
setDisplay(boolean value)
Set the display visibility of the LCD.void
setFontHeight(int height)
Set the height of the font.void
setLines(int lines)
Set the number of display lines ...void
write(java.lang.String text)
Write a text string to the LCD.
-
Constructor Details
-
LCD
public LCD(JPigpio pigpio, int registerSelect, int readWrite, int enable, int db4, int db5, int db6, int db7) throws PigpioException- Throws:
PigpioException
-
-
Method Details
-
clear
- Throws:
PigpioException
-
home
- Throws:
PigpioException
-
functionModeSet
- Throws:
PigpioException
-
write
Write a text string to the LCD.- Parameters:
text
- The string of text to write.- Throws:
PigpioException
- when write fails
-
setDisplay
Set the display visibility of the LCD.- Parameters:
value
- True means the display is shown, false means it is switched off.- Throws:
PigpioException
-
setCursor
Set whether or not the cursor is shown.- Parameters:
value
- True means the cursor is shown, false means the cursor is hidden.- Throws:
PigpioException
-
setBlink
Set whether or not the cursor blinks.- Parameters:
value
- True means the cursor blinks, false means it does not blink.- Throws:
PigpioException
-
setLines
Set the number of display lines ... either 1 or 2.- Parameters:
lines
- The number of lines to display.- Throws:
PigpioException
-
setFontHeight
Set the height of the font. Either 8 or 10.- Parameters:
height
- The height of the font. Either 8 or 10.- Throws:
PigpioException
-