public class Config extends java.lang.Object
As an example, an important difference for the framework is regarding the i2c bus number.
Between the model B Rev 1 and Rev 2 versions of the Pi, they changed the signals
that where sent to Pin 3 and Pin 5 on the GPIO header. This changed the device
number that needs to be used with i2c from 0 to 1.
By setting the the correct model of Raspberry Pi executing the program (with the
setRaspberryPiModel(RaspberryPiModel) method), you can easily avoid any problem
regarding this selection of the right i2c bus number for your Pi.
|Modifier and Type||Method and Description|
This method allows you to retrieve the selected Raspberry Pi model executing the program.
This method allows you to set the selected Raspberry Pi model executing the program.
public static RaspberryPiModel getRaspberryPiModel()
public static void setRaspberryPiModel(RaspberryPiModel model)
model- the selected Raspberry Pi model.