public class RaspbianGPIO
extends java.lang.Object
Constructor and Description |
---|
RaspbianGPIO() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getRaspPinName(int gpio_number)
Get the Name of the GPIO pin in Pi4J
|
static void |
protectProvisionedPin(com.pi4j.io.gpio.GpioPin gpioPin,
boolean protect)
Add or remove protection of removal of provisioned pin
|
void |
setBroadcomPinNumbering(boolean use_broadcom)
Enables provisioning of GPIO pin numbers using Broadcom numbering scheme
Note that actual physical pin numbers can change over board revisions when using Broadcom scheme so it is not recommended
The following URLs give more detail
http://pi4j.com/pin-numbering-scheme.html and
http://wiringpi.com/pins/ for further explanation
|
public static java.lang.String getRaspPinName(int gpio_number)
gpio_number
- the pin Numberpublic static void protectProvisionedPin(com.pi4j.io.gpio.GpioPin gpioPin, boolean protect)
gpioPin
- the GPIO pin to modify its protection statusprotect
- true to protect or false to remove protectionpublic void setBroadcomPinNumbering(boolean use_broadcom)
use_broadcom
- set to true if you want to change to broadcom numbering scheme