Enum LcdPin
- All Implemented Interfaces:
Serializable
,Comparable<LcdPin>
,java.lang.constant.Constable
Enumeration for LCD Pins.
Note: Order is important, DO NOT CHANGE!
- Author:
- Rafael Ibasco
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LcdPin[]
Get all Data Pinsstatic LcdPin[]
Get allLcdPin
static LcdPin[]
Get Data Pins used in 4-Bit OperationgetName()
Get the Name of theLcdPin
boolean
static LcdPin
Returns the enum constant of this type with the specified name.static LcdPin[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATA_0
Data Pin 0. Note: Only Used in 8-bit mode. -
DATA_1
Data Pin 1. Note: Only Used in 8-bit mode. -
DATA_2
Data Pin 2. Note: Only Used in 8-bit mode. -
DATA_3
Data Pin 3. Note: Only used in 8-bit mode. -
DATA_4
Data Pin 4 -
DATA_5
Data Pin 5 -
DATA_6
Data Pin 6 -
DATA_7
Data Pin 7 -
RS
Register Select Pin -
EN
Enable Pin -
RW
Read/Write Pin. Note: This pin is rarely used and preferably should be tied to ground and be excluded from the pin map. -
BACKLIGHT
LCD Backlight Pin
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isRequired
public boolean isRequired()- Returns:
- Returns
true
if theLcdPin
is required
-
getFourBitDataPins
Get Data Pins used in 4-Bit Operation- Returns:
- Returns all data pins from DATA 4 to DATA 7
-
getAllDataPins
Get all Data Pins- Returns:
- Returns all data pins from DATA 0 to DATA 7
-
getAllPins
Get allLcdPin
- Returns:
- Returns all pins
-
getName
Get the Name of theLcdPin
- Returns:
- The name associated with the
LcdPin
-