Modifier and Type | Method and Description |
---|---|
static Raspberry |
InputOutput.initAllDevices(Raspberry rpi,
Server server)
initAllDevices: This method initializes all the physical devices of the raspberry.
|
Modifier and Type | Method and Description |
---|---|
static void |
InputOutput.activateGPIO(Raspberry rpi,
Device device)
activateGPIO: This method activate the GPIO port specified, according to their level activation
|
static void |
Processing.closeDevices(Server server,
Raspberry rpi)
closeDevices: this method close all OUT devices of the Raspberry.
|
static void |
InputOutput.deactivateGPIO(Raspberry rpi,
Device device)
deactivateGPIO: This method deactivate the GPIO port specified, according to their level activation and de-activation.
|
static com.pi4j.io.i2c.I2CDevice |
I2CDisplay.displayInit(Raspberry rpi,
I2CDisplay.HT16K33 blink,
I2CDisplay.HT16K33 brightness,
java.lang.String ledName)
displayInit: Turn on the HT16K33 chip, turn on the displayLED, set the blink
rate, and finally set displayLED brightness.
|
static Raspberry |
InputOutput.initAllDevices(Raspberry rpi,
Server server)
initAllDevices: This method initializes all the physical devices of the raspberry.
|
static Response |
Processing.processPOSTCommand(ServerStatus server,
Raspberry rpi,
Request objRequest)
processPOSTCommand: this method process the command send by POST http method
|
static Device |
InputOutput.readGPIO(Raspberry rpi,
Device device)
readGPIO: This method read the GPIO port specified.
|
static Device |
InputOutput.readI2C(Raspberry rpi,
Device device)
readI2C: This method return the device with the data value read from the I2C device
|
static Device |
InputOutput.setDefault(Raspberry rpi,
Device device)
setDefault: this method set the GPIO port to the default value.
|
static void |
I2CDisplay.testLCD(Raspberry rpi,
java.lang.String led)
testLCD: this method test a LED display counting from 0 to 9 on every position
|
static ServerStatus |
Processing.updateStatus(ServerStatus server,
Raspberry rpi)
updateStatus: this method update the server status.
|
Constructor and Description |
---|
AutonomousMode(Raspberry rpi,
ServerStatus server)
AutonomousMode: This class implements the autonomous mode.
|