public enum RaspberryPiModel extends java.lang.Enum<RaspberryPiModel>
Some specific aspects for the utilization of the framework depends on the version of the RPi where the program is running.
Enum Constant and Description |
---|
A
Raspberry Pi Model A.
|
APLUS
Raspberry Pi Model A+.
|
B512
Raspberry Pi Model B512.
|
BPLUS
Raspberry Pi Model B+.
|
BREV1
Raspberry Pi Model B Rev1.
|
BREV2
Raspberry Pi Model B Rev2.
|
PI2
Raspberry Pi 2 Model B.
|
PI3
Raspberry Pi 3 Model B.
|
PIZERO
Raspberry Pi Zero.
|
Modifier and Type | Method and Description |
---|---|
int |
getBusNumber()
Get the bus number used by this model of Raspberry Pi.
|
static RaspberryPiModel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RaspberryPiModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RaspberryPiModel A
public static final RaspberryPiModel APLUS
A
public static final RaspberryPiModel BREV1
public static final RaspberryPiModel BREV2
BREV1
public static final RaspberryPiModel B512
public static final RaspberryPiModel BPLUS
public static final RaspberryPiModel PI2
public static final RaspberryPiModel PIZERO
public static final RaspberryPiModel PI3
public static RaspberryPiModel[] values()
for (RaspberryPiModel c : RaspberryPiModel.values()) System.out.println(c);
public static RaspberryPiModel 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 int getBusNumber()