GPIO.nameAdvanced constructor
GPIO.nameAdvanced(
- String name,
- GPIOconfig config, [
- int chip = 0
Opens the character device GPIO with the specified GPIO name and the configuration config
at the default character
device GPIO with the chip number. The default chip numer is 0, with the path /dev/gpiochip0. Use GPIO.setBaseGPIOpath
to change the default character device path.
Implementation
GPIO.nameAdvanced(this.name, GPIOconfig config, [this.chip = 0])
: path = _gpioBasePath + chip.toString(),
line = -1,
direction = config.direction,
_gpioHandle = _openNameAdvancedGPIO(
_gpioBasePath + chip.toString(), name, config);