public enum I2CPin extends java.lang.Enum<I2CPin>
The I2C bus was designed by Philips in the early ’80s to allow easy communication between components which reside on the same circuit board. Only two bus lines are required:
Those bus lines can easily be accessed through this enumeration.
Enum Constant and Description |
---|
SCL1
Serial Clock Line pin.
|
SDA1
Serial Data Line pin.
|
Modifier and Type | Method and Description |
---|---|
Pin |
getPin()
Get the Raspoid pin abstraction for this I2CPin.
|
static I2CPin |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static I2CPin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final I2CPin SDA1
public static final I2CPin SCL1
public static I2CPin[] values()
for (I2CPin c : I2CPin.values()) System.out.println(c);
public static I2CPin valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null