Skip to content

Instantly share code, notes, and snippets.

View Steven24K's full-sized avatar
🤹‍♂️
Enjoying life

Steven Steven24K

🤹‍♂️
Enjoying life
View GitHub Profile
@Steven24K
Steven24K / FastLED-statemachine.ino
Last active May 12, 2026 12:14
A starting point for an animation library build on top of FastLED to manage smooth transitions. Using a statemachine monad and parallel processes.
#include <FastLED.h>
#define NUM_LEDS 60
#define LED_PIN 2
struct LEDState {
CRGB* leds;
int count;
CHSV baseColor;
import csv
import math
def safe_float(x):
try:
return float(x)
except (ValueError, TypeError):
return None
def safe_div(x, y):