def __init__()

in status_led_pkg/status_led_pkg/led_control.py [0:0]


    def __init__(self, index, logger):
        """Create the LEDControl object.

        Args:
            index (int): Index identifying the Status LED light.
            logger (rclpy.rclpy.impl.rcutils_logger.RcutilsLogger):
                Logger object of the status_led_node.
        """
        # Create the specific GPIO objects for r, g, b channels.
        self.r = gpio_module.GPIO(constants.GPIO_ROOT_PATH,
                                  constants.LED_PORTS[index][0],
                                  logger)
        self.g = gpio_module.GPIO(constants.GPIO_ROOT_PATH,
                                  constants.LED_PORTS[index][1],
                                  logger)
        self.b = gpio_module.GPIO(constants.GPIO_ROOT_PATH,
                                  constants.LED_PORTS[index][2],
                                  logger)