diff --git a/main/osc_control.c b/main/osc_control.c --- a/main/osc_control.c +++ b/main/osc_control.c @@ -5,6 +5,7 @@ #include #include "display.h" #include +#include "ledstrip.h" #define WIFI_SSID "" #define WIFI_PASS "" @@ -53,6 +54,10 @@ static bool callback(const char *topic, case 'f': snprintf(out+strlen(out), 128-strlen(out), "Value: %f", values[i].f); ESP_LOGI(TAG, "==> f: %f", values[i].f); + uint8_t val = values[i].f * 255; + // ledstrip_set(val, val, val); + ledstrip_set_modifier(values[i].f); + break; case 'd': ESP_LOGI(TAG, "==> d: %f", values[i].d);