This commit is contained in:
2025-01-05 02:58:44 -05:00
parent 24982ab17a
commit edeb1208f7
3 changed files with 1 additions and 23 deletions

View File

View File

@@ -1 +1 @@
15d529ee6ab26808cc722005721352e409c7524c
24982ab17a2e93aaef069cf032bd461cf3174dd6

View File

@@ -144,29 +144,7 @@ static void espnow_deinit(espnow_send_param_t *send_param);
static led_strip_handle_t led_strip;
static void blink_led(void)
{
/* If the addressable LED is enabled */
if (s_led_state) {
/* Set the LED pixel using RGB from 0 (0%) to 255 (100%) for each color */
led_strip_set_pixel(led_strip, 0, 16, 16, 16);
/* Refresh the strip to send data */
led_strip_refresh(led_strip);
} else {
/* Set all LED off to clear all pixels */
led_strip_clear(led_strip);
}
}
static void configure_led(void)
{
ESP_LOGI(TAG, "Example configured to blink addressable LED!");
/* LED strip initialization with the GPIO and pixels number*/
led_strip_config_t strip_config = {
.strip_gpio_num = BLINK_GPIO,
.max_leds = 1, // at least one LED on board
};
}
static void blink_led(void)