Skip to content

LED indicator flashes LED after init (AEGHB-1156) #551

@renson-thijs-dhaenens

Description

@renson-thijs-dhaenens

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Hello,

I’m working on a project that uses an RGB LED, which is controlled via the LED indicator component from esp-iot-solutions.

After creating the LED instance using led_indicator_create(), the LED briefly flashes white before starting the breathing effect. I don’t understand why the LED driver drives the pins high for a short duration—this behavior is not desired, as the LED feedback is critical in our application.

I’ve tried various configuration settings for the LED indicator, but haven’t been able to resolve the issue.

Any help or insights would be greatly appreciated.

Best regards,

#define LED_GPIO_RED 4
#define LED_GPIO_GREEN 5
#define LED_GPIO_BLUE 22

  led_indicator_rgb_config_t rgb_config = {
    .is_active_level_high = false,  // common anode, active low
    .timer_inited = false,
    .timer_num = LEDC_TIMER_0,
    .red_gpio_num = LED_GPIO_RED,
    .green_gpio_num = LED_GPIO_GREEN,
    .blue_gpio_num = LED_GPIO_BLUE,
    .red_channel = LEDC_CHANNEL_0,
    .green_channel = LEDC_CHANNEL_1,
    .blue_channel = LEDC_CHANNEL_2,
  };

  led_indicator_config_t config = {
    .mode = LED_RGB_MODE,
    .led_indicator_rgb_config = &rgb_config,
    .blink_lists = led_mode,
    .blink_list_num = BLINK_MAX,
  };

  led_handle_ = led_indicator_create(&config);

  if (led_handle_ == NULL)
  {
    ESP_LOGE(TAG, "Failed to create LED indicator handle");
  }

    led_indicator_start(led_handle_, STARTUP_BREATHE);
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions