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 number 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,
isolate = false {
var tuple =
_openNameAdvancedGPIO(_gpioBasePath + chip.toString(), name, config);
_gpioHandle = tuple.$1;
_freeList = tuple.$2;
}