GPIO.advanced constructor

GPIO.advanced(
  1. int line,
  2. GPIOconfig config,
  3. [int chip = 0]
)

Opens the character device GPIO with the specified GPIO line and 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.advanced(this.line, GPIOconfig config, [this.chip = 0])
    : path = _gpioBasePath + chip.toString(),
      name = '',
      direction = config.direction,
      _gpioHandle =
          _openAdvancedGPIO(_gpioBasePath + chip.toString(), line, config);