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