#define WS2812_PIN 15
#define delay_ms(ms) vTaskDelay((ms) / portTICK_RATE_MS)
void rainbow(void *pvParameters)
{
const uint8_t anim_step = 10;
const uint8_t anim_max = 250;
const uint8_t pixel_count = 10;
// Number of your "pixels"
const uint8_t delay = 25; // duration between color
changes
|