def __init__()

in device_info_pkg/device_info_pkg/gpio_module.py [0:0]


    def __init__(self, gpio_base_path, gpio, logger, direction="out"):
        """Create a GPIO object.

        Args:
            gpio_base_path (str): Base path to the GPIO port.
            gpio (int): GPIO port number.
            logger (rclpy.rclpy.impl.rcutils_logger.RcutilsLogger):
                Logger object of the device_info_node.
            direction (str, optional): GPIO input/output direction. Defaults to "out".
        """
        self.base_path = gpio_base_path
        self.gpio = gpio
        self.direction = direction
        self.logger = logger
        self.root_path = f"{gpio_base_path}/gpio{gpio}"
        self.value_path = f"{self.root_path}/value"