add simulation to UI

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-09-30 21:53:40 +02:00
parent 9ae568c2f4
commit 0f7686d5a5
13 changed files with 113 additions and 131 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <stdint.h>
#include <sys/cdefs.h>
typedef struct
{
@@ -16,7 +17,9 @@ typedef struct
uint8_t v;
} hsv_t;
__BEGIN_DECLS
rgb_t interpolate_color_rgb(rgb_t start, rgb_t end, float factor);
rgb_t interpolate_color_hsv(rgb_t start, rgb_t end, float factor);
hsv_t rgb_to_hsv(rgb_t rgb);
rgb_t hsv_to_rgb(hsv_t hsv);
__END_DECLS

View File

@@ -88,6 +88,8 @@ esp_err_t led_strip_init(void)
return ESP_FAIL;
}
set_all_pixels((rgb_t){.red = 0, .green = 0, .blue = 0});
xTaskCreate(led_strip_task, "led_strip_task", 4096, NULL, tskIDLE_PRIORITY + 1, NULL);
ESP_LOGI(TAG, "LED strip initialized");