     clock = millis();
     diff = clock - lastClock;
 
-    expectedDelay = map(pots.var, 1, 255, 250, 1);
+    expectedDelay = map(speed, 1, 255, 250, 1);
     if (diff >= expectedDelay) {
         lastClock = clock;
         return 1;

}

// animation animates from 0-255.
uint8_t animation() {
    static uint8_t an = 0;
    an += animate();
    return an;
}


#endif

// animate returns true if the animation should be stepped.
uint8_t animate(uint8_t speed) {
    static uint32_t lastClock = 0;
    uint32_t diff;
    uint32_t clock;
