mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 14:00:51 +00:00
RC
This commit is contained in:
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
@@ -1 +1 @@
|
|||||||
15d529ee6ab26808cc722005721352e409c7524c
|
24982ab17a2e93aaef069cf032bd461cf3174dd6
|
||||||
|
@@ -144,29 +144,7 @@ static void espnow_deinit(espnow_send_param_t *send_param);
|
|||||||
|
|
||||||
static led_strip_handle_t led_strip;
|
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)
|
static void blink_led(void)
|
||||||
|
Reference in New Issue
Block a user