public interface Gpio
int init(int[] gpio)
gpio
- An array defines the directions of GPIO pins. The GPIO direction will be:
GPIO_OUTPUT
GPIO_INPUTint read(int portNum, boolean[] bValue)
portNum
- GPIO port number.bValue
- A variable of typeBOOL which receives the value of the GPIO pin.int write(int portNum, boolean bValue)
portNum
- GPIO port number.bValue
- The output value.