public abstract class GPIO
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
gpioNumber |
protected net.happybrackets.device.sensors.gpio.GPIO.PIN_TYPE |
pinType |
Modifier | Constructor and Description |
---|---|
protected |
GPIO(int gpio_number,
net.happybrackets.device.sensors.gpio.GPIO.PIN_TYPE pin_type)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
clearPinAssignment(int gpio_number)
Clears the pin assignment of a pin so it cn be assigned to another function
|
int |
getGpioNumber()
Get the Pin number of this GPIO
|
static void |
resetAllGPIO()
Clears provisioning of all GPIO
|
static void |
resetGpioListeners()
Clear any Listeners of perform any function thats required when a reset occurs
|
protected final int gpioNumber
protected final net.happybrackets.device.sensors.gpio.GPIO.PIN_TYPE pinType
protected GPIO(int gpio_number, net.happybrackets.device.sensors.gpio.GPIO.PIN_TYPE pin_type)
gpio_number
- the GPIO pin numberpin_type
- the type of pinpublic int getGpioNumber()
public static void resetGpioListeners()
public static void resetAllGPIO()
public static void clearPinAssignment(int gpio_number)
gpio_number
- the GPIO number we want to unassigned