 
 // Number of LEDs in the strip.
 #define NUM_LEDS 60
+
+#define ANIMATION_SPEED 50
 
 // This variable holds the LED color state.
 CRGB leds[NUM_LEDS];

    uint32_t clock;
    uint32_t expectedDelay;

    // Animations are disabled when speed is zero.
    if (settings.var == 0) {
        return 0;
    }

    clock = millis();
    diff = clock - lastClock;


void modeSolid();
void modeTemperature();

// Current state
struct {
    bool on;
    uint8_t brightness;
    uint8_t temperature;
    void (*effectFunc)();
    char* effect;
    uint8_t r;
    uint8_t g;
    uint8_t b;
} state;

// MQTT client handles
WiFiClient wifi_client;
PubSubClient mqtt_client(wifi_client);

// animate returns true if the animation should be stepped.
uint8_t animate(uint8_t speed) {
