Enum Constant and Description |
---|
ALL
To reach the two Atmel composing the BrickPi.
|
CHIP1
Address of the first Atmel.
|
CHIP2
Address of the second Atmel.
|
Modifier and Type | Method and Description |
---|---|
byte |
getAddress()
Get the Atmel chip address.
|
int |
getIndex()
Get the starting index for the sensors and motors contained in a chip.
|
static Atmel |
valueOf(byte address)
Get an Atmel object by giving its byte address.
|
static Atmel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Atmel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Atmel ALL
public static final Atmel CHIP1
public static final Atmel CHIP2
public static Atmel[] values()
for (Atmel c : Atmel.values()) System.out.println(c);
public static Atmel 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 nullpublic byte getAddress()
public int getIndex()
public static Atmel valueOf(byte address)
address
- the byte address of the chip.