   }
 
   inline uint16_t ticksToPos(int32_t ticks) {
-    if (ticks < 0) ticks += TICKS_PER_REVOLUTION;
-    return (ticks * 360 / TICKS_PER_REVOLUTION) % 360;
+    if (ticks < 0) ticks += ticksPerRevolution;
+    return (ticks * 360 / ticksPerRevolution) % 360;
   }
   
   inline void handleEncA() {
     enca_val = digitalRead(enca);
-    if (enca_val != encb_val) tickCount = (tickCount-1+TICKS_PER_REVOLUTION)%TICKS_PER_REVOLUTION;
-    else tickCount = (tickCount+1)%TICKS_PER_REVOLUTION;
+    if (enca_val != encb_val) tickCount = (tickCount-1+ticksPerRevolution)%ticksPerRevolution;
+    else tickCount = (tickCount+1)%ticksPerRevolution;
   }
 
   inline void handleEncB() {
     encb_val = digitalRead(encb);
-    if (enca_val == encb_val) tickCount = (tickCount-1+TICKS_PER_REVOLUTION)%TICKS_PER_REVOLUTION;
-    else tickCount = (tickCount+1)%TICKS_PER_REVOLUTION;
+    if (enca_val == encb_val) tickCount = (tickCount-1+ticksPerRevolution)%ticksPerRevolution;
+    else tickCount = (tickCount+1)%ticksPerRevolution;
   }
 
   void setState(int s) {

void do_panel_set(uint8_t strip, uint8_t panel, uint8_t intensity, const CRGB &color, AnywareEasing::EasingType  easing)
{
  CRGB newcol = applyIntensity(color, intensity);
  Serial.print(strip);Serial.print(" ");Serial.println(panel);
  const Pair &p = LEDStripInterface::mapToLED(strip, panel);
  if (p.stripid < 0 || p.pixelid < 0) {
    printError(F("client error"), F("Strip or panel out of range"));

DISK 0 DIR 0 USER 1
DISK 0 DIR 1 USER 1
DISK 0 DIR -1 USER 1
DISK 0 DIR 1 USER 1
DISK 1 DIR -1 USER 1
DISK 2 DIR 1 USER 1
DISK-EXIT

PANEL-SET 4 0 100 user0 easein
PANEL-SET 4 1 100 user1 easein
PANEL-SET 4 2 100 user2 easein
PANEL-SET 4 0 100 white pulse
PANEL-SET 4 0 100 white pop
PANEL-SET 3 0 100 error easein
PANEL-SET 3 1 100 white pulse
PANEL-SET 3 2 100 user0 easein
PANEL-SET 3 3 100 user1 easein
PANEL-SET 3 4 100 user2 easein
PANEL-SET 3 5 100 user2 easein


PANEL-SET 3 0 100 error
PANEL-SET 3 1 100 white
PANEL-SET 3 2 100 user0
PANEL-SET 3 3 100 user1
PANEL-SET 3 4 100 user2
PANEL-SET 3 5 100 user2

*/

